Solved

Xml And Duplicate MC

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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.

861 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