Unique, Random, Serial Movies, Image Loader
While doing a randomizer for our splashes, we decided to get this out to the public and make it open for people to use it. This is a Flash SWF or an Image Loader spiced with the ability to load a default SWF or a random/serial from a list listed in an xml nodes.
The SWF/Image Unique, Random, Serial Loader will try to load an SWF or an Image either randomly or in a serial order. In order to get to the next or a random SWF, the mother Splash looks up for the splashes with the method splashDone();. Thus all splashes will need to called the method _parent.splashDone() for this example to work. In the case of an Image, it is considered single frame and thus the method is automatically called. One may be able to customize the SWFs or the images in the splash.xml available in the download.
The SWF is published to version 6 to attain high compatibility with browser-flash-plugins. Coded in ActionScript 2.0 and adorned with Model View Presenter pattern. Well, you might as well look at it as a simple MVP sample.
splash.xml
SPLASHES NODE ATTRIBUTES
1. mode : serial, random, default
serial is for ordered loading of swfs
random picks a random swf from the xml
default is to pick the default swf first
2. refreshInterval
refreshIntereval is the amount of time in seconds to pause for after the splash has completed. All splashes need to call a _parent.splashDone(); method on their timeline to indicate that the splash has completed.
3. autoRefresh
Flag indicates whether to auto-refresh the swf
When auth refresh is off, only the initial swf is loaded into the splash swf
autoRefresh : true/false
SPLASH NODE ATTRIBUTES
1. url
The url of the splash swf, either Absolute or relative url will work
2. default
Use default=”true” on the splash node to promote the splash to be displayed initially
Preview | Download
Hope, somebody finds this useful!
Update
- This example is also being distributed as a Free Friday Source on IFBIN.
- 2006 Nov 26 — Here is the Backup Download Link.
Comments
Thanks.