FireworksColdFusionDreamweaverFreehandFlashMXHome
Latest New Content

Latest Free Content
View All
Free Content
Accessibility
CMX Learning Guides
Hosted by enterhost

Loading SWFs Randomly - Part 1: JavaScript [Registration never required for free content]

By: David Stiller on Thursday, November 12, 2009
Reader Level: Reader Level

Primary Category: FlashWith Flash, interactivity isn't always about the content itself. Sometimes it's understated. Sometimes, for example, it's merely about picking a SWF at random when the user decides to reload the HTML page — regardless if the Flash content is programmed or not. You might use an approach like this to randomly display a set of Flash banner ads or cartoons, just to keep the page "fresh."

Whatever your intent, if you've ever wanted to try something like this but didn't know where to begin, this article is for you. The free SWFObject embedding solution, and a few lines of custom JavaScript, are all you need.

The Loading SWFs Randomly Series:
Loading SWFs Randomly - Part 1: JavaScript
Loading SWFs Randomly - Part 2: ActionScript
Loading SWFs Randomly - Part 3: Improvements
Loading SWFs Randomly - Part 4: Improvements (Cont)
Loading SWFs Randomly - Part 5: Improvements (Concluded)

More ...

Member's Sign In

Remember Me

Retrieve Password

Current Articles
and Tutorials

3419

Most Recent JumpStarts

Newsletter

View the archive

CMX Suite

New every Tuesday!CMX Weekly Cartoon
View the archive

RSS Feed

Syndicate CMX

Our feeds