PDA

View Full Version : AS3 Slideshow Help


mrducksworth
06-06-2009, 09:40 AM
Howdy.

I've created a flash slide show, that loads the images from an xml file as they are needed. But it keeps downloading the images, from how I've used a timer to start the URLRequest, and then added the image as a child to a container once it's loaded.

How do I access these children 'post' adding them? is there an array notation for accessing elements in AS3?

jaystansell
07-06-2009, 10:32 PM
How do I access these children 'post' adding them? is there an array notation for accessing elements in AS3?

Hi there,

I use variations of this AS to target XML nodes, hope it helps:


var my_xml = new XML();
my_xml.load("thefile.xml");
my_xml.onLoad = function(success){
if (success){
myVar = my_xml.firstChild.childNodes[0].nodeValue;
}

mrducksworth
13-06-2009, 09:04 AM
hmm, what I mean is. I've already added these images to a parent element on the stage. After the slideshow finishes, i'll need to remove some event listeners and start a new timer.

The new function will have to deal with the images already on the stage.

Though, what you said looks like it would still apply. I'll play around with some trace statements and what you've posted on the container for these images.