Solved

Xml And Duplicate MC

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
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 record live broadcast.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

744 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

13 Experts available now in Live!

Get 1:1 Help Now