Link to home
Start Free TrialLog in
Avatar of phlackee
phlackee

asked on

Xml And Duplicate MC

OK

this is my question:

I have a MC called image_dropzone, with a image container and caption text that duplicate it self for slideshow. so when next image is loaded it will be placed on duplicated MC and current image will fade out next image fade in. this works without captions. I need captions to be faded too, so I put captions inside MC and create a mc for image a text for caption, so this is code below loads Images only. I have something wrong loading text.

My idea is to  Load all the images and captions from the XML data

for(var i=1; i<=numImages; i++){
      _root.image_dropzone.duplicateMovieClip("image_dropzone" + i, i);
      _root["image_dropzone" + i].container.loadMovie(_root.image_folder + xmlData.slideshow[1].images[i-1].image[0].file.value);
      
_root["image_dropzone" + i].tb_caption.text.LoadVars(xmlData.slideshow[1].images[i-1].image[1].caption.value);

}


Make it simple: How to load XML text in tb_caption.
ASKER CERTIFIED SOLUTION
Avatar of teddysetiawan
teddysetiawan

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
SOLUTION
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