Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Location
    San Francisco
    Posts
    455
    Thanks
    19
    Thanked 15 Times in 15 Posts

    removeChildAt(1) not working

    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:

    Code:
    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?
    Last edited by marilynn.fowler; 06-24-2009 at 03:09 AM.
    Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    San Francisco
    Posts
    455
    Thanks
    19
    Thanked 15 Times in 15 Posts
    Figured out a different way to do what I needed to do
    Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •