Loading random images


show more Loading random images provides you with in-depth training on Web. Taught by Paul Trani as part of the Creating a Portfolio Web Site Using Flash CS4 Professional show less
please wait ...

Loading random images

One thing you will always want to consider is how to keep your site fresh and visitors returning. One easy way to do this is by loading in different content for each visit. And that's what I want to do, in this case. I want to load in a different background each time the page is refreshed. Okay, and I really want to pick from a pool of about 10 backgrounds I already have set up. So let's go ahead and take a look at how this is currently set up. The background is being loaded in, using this UILoader component.

So if I go to Window down to Component Inspector, you can see that the source says that it's pulling from images/Bkgd1.jpg. Well, it's not realistic from you to come in here and change this every 15 minutes and then republish the file. But I could, I guess, do that, but what you're probably thinking, "There should be an easier way," and there is. And this way is done in ActionScript. Okay, so I'm going to use Flash's programming language to change t...

Loading random images
Video duration: 10m 22s 4h 4m Intermediate

Viewers:

Loading random images provides you with in-depth training on Web. Taught by Paul Trani as part of the Creating a Portfolio Web Site Using Flash CS4 Professional

Subject:
Web
Software:
Flash Professional
Author:
please wait ...