gibbon Posted September 30, 2006 Share Posted September 30, 2006 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?ThanksAndy Link to comment https://forums.phpfreaks.com/topic/22593-php-flash-loader-gallery/ Share on other sites More sharing options...
obsidian Posted September 30, 2006 Share Posted September 30, 2006 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. Link to comment https://forums.phpfreaks.com/topic/22593-php-flash-loader-gallery/#findComment-101382 Share on other sites More sharing options...
gibbon Posted September 30, 2006 Author Share Posted September 30, 2006 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.ThanksAndy Link to comment https://forums.phpfreaks.com/topic/22593-php-flash-loader-gallery/#findComment-101494 Share on other sites More sharing options...
obsidian Posted September 30, 2006 Share Posted September 30, 2006 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! Link to comment https://forums.phpfreaks.com/topic/22593-php-flash-loader-gallery/#findComment-101497 Share on other sites More sharing options...
gibbon Posted October 1, 2006 Author Share Posted October 1, 2006 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.ThanksAndy Link to comment https://forums.phpfreaks.com/topic/22593-php-flash-loader-gallery/#findComment-101758 Share on other sites More sharing options...
obsidian Posted October 1, 2006 Share Posted October 1, 2006 [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.ThanksAndy[/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! Link to comment https://forums.phpfreaks.com/topic/22593-php-flash-loader-gallery/#findComment-101941 Share on other sites More sharing options...
gibbon Posted October 2, 2006 Author Share Posted October 2, 2006 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.thanksAndy Link to comment https://forums.phpfreaks.com/topic/22593-php-flash-loader-gallery/#findComment-102728 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.