PHP/Flash MX Question
Out of context: Reply #6
- Started
- Last post
- 12 Responses
- kinetic0
MovieClip.prototype.loadJpeg = function (jpeg, x, y) {
this.createEmptyMovieClip("holde... 1);
this.holder._x = x;
this.holder._y = y;
loadMovie(jpeg, holder);
}thats a decent load jpg function. to get the shit from the db. call a php script that will put all the db elements into an array..and pass that array back to flash in the form of a string with each element separated by a comma
then, in flash create an array and assign the elements to it like this imgArray = phpArrayName.split(",")
after you've done that...duplicate a movie clip that will hold the holder clip based on how many array elements there are. each time moving the new duplication element._x = element._x + 20 or something like that.
hope that helps a bit. it will give you a good start anyway