Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

urgent--need to know how to make template for photo show 1

Status
Not open for further replies.
Bill you saved my #@( ! I have two conferences in the coming days, students griping about work they didn't complete (oh but that is somehow my fault) and this enormously puts me a little closer to being able to sleep tonight!

Now how would I modify this to not have to include the names of the images and the text? For instance, I will be talking over images that I know quite well, hence, is there a way that that I can just put a folder of my images and have this script call up each image (ie. if i label them photo1, photo2, etc.)???

thanks again!

best

julian
 
if they are just labeled photo1 photo2 etc and that they reside in the same folder as the flash file

then just have an empty clip on stage(instance name myclip) and a button (myBtn)

then all the code you need on the main timeline is

count = 0;
myBtn.onRelease = function(){
count++;
myclip.loadMovie("photo"+count+".jpg");
}


that might be all you need probably would be better to have a php file call and have the php file send back a list of all .jpg files found a folder and stick that into an array that will give you a lot more flexibility
 
how do i make a php file (i would love to learn to do this!)

and would i have to eliminate the script already on the page?

best
disfasia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top