This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > March 2005 > Re: FLASH MASTERS NEEDED! - Loading Dynamic Images into





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: FLASH MASTERS NEEDED! - Loading Dynamic Images into
jolyon_russ

2005-02-27, 6:31 pm

The way I see it you have a couple of options.

The first is to use XML to hold the locations of your images, load the XML
into an array, cycle through the array and load you images into a MC. The XML
file will need manual updating but your swf won't. This is a tried and tested
method to load dynamic content and is well documented on the web.

The second option I'm not 100% sure about but is probably possible. You use
PHP to look at your dir and write the XML file every 24 hours. Then all you
would need to do then upload the pics to the right dir.

Hope this helps.


Jolyon

MyFlashMXIN

2005-03-16, 6:47 pm

You can see how it works by glancing at...

http://www.rjbagan.com/

I have a few variations of it there.
merlinvicki

2005-03-18, 4:24 am

Check out this function(include this in your first frame):

_global.rotator = function() {
filename = ["avril1_banner.swf", "avril2_banner.swf",
"angelina_banner.swf"];//put ur file names here
path = "images/banner/";//put ur file path here
i = 1;
l = filename.length;
k = Math.floor(Math.random()*l);
random_mc.loadMovie(path+filename[k]);//random_mc is the instance name of a
movieclip in yous swf into which the external file loads.
rotator();//calls the function

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews