Jump to content

php flash loader / gallery


gibbon

Recommended Posts

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
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
Link to comment
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!
Link to comment
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
Link to comment
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!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.