| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Feb 2004
Location: Washington
Posts: 8
|
Ok, so I went out and forked up the cash for MX 2004... ouch! Now, how can I dynamically load all images in a specified folder and place each one into an array with a loop so no matter how many images there are, it will load all of them.
Thanks so much for all your help! |
|
|
|
|
|
#2 |
|
Oops I did it again
Join Date: Oct 2001
Location: Melbourne
Posts: 8,578
|
you will need php or some server side script to return the contents of a directory
for example PHP Code:
__________________
Billy Online Galleries Free Flash Video Tutorials Photo Website Template Don't email or PM me questions... |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Feb 2004
Location: Washington
Posts: 8
|
Okay, but how would I implement this into Flash MX? I want to then return the array to the flash program so it may use the array within it specifically and call each image as needed.
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Feb 2004
Location: Washington
Posts: 8
|
You know what... I think I'm going to just implement a text file where the array will be created manually and placed within flash. I think that is going to be easier for ME, maybe not as easy for the user, but, eh.
|
|
|
|
|
|
#5 |
|
Oops I did it again
Join Date: Oct 2001
Location: Melbourne
Posts: 8,578
|
can load the images array from php using LoadVars
__________________
Billy Online Galleries Free Flash Video Tutorials Photo Website Template Don't email or PM me questions... |
|
|
|
|
|
#6 |
|
Gloomy
Join Date: Sep 2002
Location: Newcastle Upon Tyne, UK
Posts: 180
|
if you name all your movies sequentially you can use AS to increment through numbers and load the appropriate movie. Break the loop if flash can't find the number. Not wonderfully efficient, but simple enough.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|