Link to home
Start Free TrialLog in
Avatar of dhmderuiter
dhmderuiter

asked on

Load xml listed images in Flash

Hi,

I'm currently using a flash script  (I don't have the source) which displays a looping and fading images slideshow (see www.therapeutisch-centrum.nl). The images are in a folder and can easily be changed with an xml file:

<!--  
'timer' :: number of seconds between each image transition
'order' :: how you want your images displayed. choose either 'sequential' or 'random'
'looping' :: if the slide show is in sequential mode, this stops the show at the last image (use 'yes' for looping, 'no' for not)
'fadeTime' :: velocity of image crossfade. Increment for faster fades, decrement for slower. Approximately equal to seconds.
'xpos' :: _x position of all loaded clips (0 is default)
'ypos' :: _y position of all loaded clips (0 is default)
-->
<gallery timer="3" order="sequential" fadetime="2" looping="yes" xpos="0" ypos="0">
<image path="photo/1.jpg" />
<image path="photo/2.jpg" />
<image path="photo/3.jpg" />
<image path="photo/4.jpg" />
<image path="photo/5.jpg" />
<image path="photo/6.jpg" />
<image path="photo/7.jpg" />
<image path="photo/8.jpg" />
</gallery>

I was wondering if anyone knows if it's possible to use such a xml file also for other kinds of animation, like a scrollbar with images (also a loop). How could this be accomplished?
Avatar of ArulPrasad1
ArulPrasad1

Hi,

The SWF file (the flash script you are talking about) that you have right now has the compiled code to 'parse' the XML you have posted above, and do animations based on the information in it.

If you'd want to have a new XML file for some different kind of animation, you'll need a new SWF - which can understand the new XML that you create, and do actions based on the information available.

Helps?

Cheers,
Arul Prasad
http://arulprasad.blogspot.com
Avatar of dhmderuiter

ASKER

Hi Arul,

Yeah it helps, I understand a new SWF is needed for such. Do you know how the XML can be read in the SWF file (which is the main purpose of my question)?

Thanks,
Martin
ASKER CERTIFIED SOLUTION
Avatar of ArulPrasad1
ArulPrasad1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial