PHP/Flash MX Question
- Started
- Last post
- 12 Responses
- fogle
I am trying to load some .jpg files from a php database into a movie clip in flash. I want the jpgs to be lined up horizontily* and then scroll automaticaly or on roll over. which ever is easier.
what is the best way to do this? I have searched on both NT and Ultrashock on how to do this, but have been unsuccesful thus far. I would appriciate any help you can give me.
*dont bother telling me i can spell, i know this!
- fogle0
bump
- ilmarine0
try flashkit.com?
- fogle0
i have tried flashkit as well. sorry, i forgot to mention that in my first post. i am only finding tutorials on how to grab text from php and not jpg and i need the jpgs.
- ave0
Where are you having problems? Loading the images in? or Aligning the images?
- fogle0
for right now, loading the images in, but im sure with my luck, ill have problems aligning them once the first part get figured out. can you help me ave?
- 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
- lyrek0
wow.
- cinder0
thought it'd be easy eh??
you gotta load em into movieclips before you can manipulate em.
the scrolling is a whole different deal
- fogle0
thank you kinetic for taking the time to type all that out. it is very much appriciated. i will play with all that tommorrow. it sounds like it's going to be fun!
- monrodesign0
Let us know how you get on with this Fogle?
Your original post saved me doing it :)
- frow0
Why not use this'n:
- kinetic0
hey no problem mate. good luck with it :)