Solved

Xml And Duplicate MC

Posted on 2006-11-14
2
243 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now