Solved

Xml And Duplicate MC

Posted on 2006-11-14
2
245 Views
Last Modified: 2008-03-06
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.
0
Comment
Question by:phlackee
  • 2
2 Comments
 
LVL 4

Accepted Solution

by:
teddysetiawan earned 500 total points
ID: 17945694
If you place text inside your MC and try to load it with value from external source , I would recommend to use "createTextField" function.

There are lots problem to manipulate/animated text if its you already put your textfields in MC.
and don't forget to embed the text in your flash project.

0
 
LVL 4

Assisted Solution

by:teddysetiawan
teddysetiawan earned 500 total points
ID: 17963732
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question