Jump to content

Archived

This topic is now archived and is closed to further replies.

gibbon

php flash loader / gallery

Recommended Posts

Hi, just woundered how i would have a simple php page that loads a flash file into it, then after maybe 10 seconds it loads the next flash file and so on. maybe 3 flash files in a folder?

Thanks
Andy

Share this post


Link to post
Share on other sites
you would be best off to use an actionscript loader with a timer. then, when your page loads, you can simply embed the flash loader that will then load your first flash file. after your AS timer reaches 10 seconds (or whatever), you can have that flash loader pull in the next file and so on. the beauty of doing it this way is that you can use an XML file to tell the loader which movies to rotate through, so it would be entirely dynamic. you could then use your PHP to generate the XML file that the AS is reading so that the whole gallery can be controlled via a database or CMS.

make sense? i should probably start off by asking you how much experience you have with flash, too.

Share this post


Link to post
Share on other sites
only flash experince is like the usual animation and tweening and some script for urls and stuff, only simple stuff, and ive not done much with XML but ide really like to know both so maybe this is where i start, got any good places to get me started, i know php so thats ok.
Thanks
Andy

Share this post


Link to post
Share on other sites
one of the best resources i've found for ActionScript stuff is http://www.kirupa.com. there is a great XML photo gallery tutorial [url=http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm]here on their site[/url]. basically, once you get your XML structure set, you can call a PHP page to generate the XML for you, so it's truly dynamic. also, keep in mind that when you load the movie with ActionScript, you're going to be loading an actual SWF file instead of images in your case.

otherwise, the tutorial should be a great help to you. if you're at all familiar with javascript, AS will be a cinch to pick up for you.

good luck!

Share this post


Link to post
Share on other sites
HI, ok ive messed with that image gallery and ive got it loading swf's and able to click next and it changes to the next one, but im just woundered how in AS get it to change after say 10 seconds, and then i will delete the next and previous buttons.
Thanks
Andy

Share this post


Link to post
Share on other sites
[quote author=gibbon link=topic=110075.msg444627#msg444627 date=1159695491]
HI, ok ive messed with that image gallery and ive got it loading swf's and able to click next and it changes to the next one, but im just woundered how in AS get it to change after say 10 seconds, and then i will delete the next and previous buttons.
Thanks
Andy
[/quote]
glad you asked ;) ... the next tutorial in that series on kirupa shows you how: [url=http://www.kirupa.com/developer/mx2004/xml_slideshow.htm]here it is[/url]. the only thing to keep in mind is that you'll never get a precise measurement of time since flash is limited by version and speed of the playing computer.

have fun!

Share this post


Link to post
Share on other sites
HI Any chance you could tell me a bit code to add so if the slide show reaches the end then go back to the begining.
thanks
Andy

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.