...

View Full Version : Resolved removeChildAt(1) not working



marilynn.fowler
06-23-2009, 10:01 AM
I have a slideshow. Once the next image is done loading I want to unload the old and fade in the new. I'm assuming my slideshow_mc first photo is loading at 1, the next at 2; however, the very first time there's only one photo. I wrote my code thus, but it did not work:



if (slideshow_mc.children > 1) {
slideshow_mc.removeChildAt(1);
}


It doesn't work. I even tried slideshow_mc.children.length, and I just got a different error message. How do I properly write it?

marilynn.fowler
06-24-2009, 03:08 AM
Figured out a different way to do what I needed to do



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum