Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4056346
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:48:57+00:00 2026-05-20T14:48:57+00:00

I have a simple flash image gallery. The way it works, is it uses

  • 0

I have a simple flash image gallery. The way it works, is it uses a movieClip called “picContain” that it loads an image into, alphas it up, waits a few seconds, then alpha down, and repeats the process.

The code loops through an array for the image sources. It loops through the same number of times as items in the array. The problem is, as time goes by (about 15 minutes or so), it takes longer and longer to load the image. I’m guessing this is because it doesn’t unload the last picture that was loaded into the containing movie clip. Here’s the part of my code that loads the image:

  function imageLoaded(e:Event) {
    imageLoader.width = 1013;
    imageLoader.height = 760;
    Bitmap(imageLoader.content).smoothing = true;
    picContain.addChild(imageLoader);
    alphUp(picContain); // my alpha up function
}

Thing is, even if I wanted to use picContain.removeChild(), I couldn’t because removeChild requires an instance name in the parentheses- and these clips don’t have em. Is removeChild the solution? If so, how can I get it to remove whatever is in the containing clip without specifying?

Thanks for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:48:57+00:00Added an answer on May 20, 2026 at 2:48 pm

    Simple, get a reference of ImageLoader by using the picContain display object container’s getChildAt() method. You have to specify the index of the ImageLoader in your picContain display object container as getChildAt()’s only argument(for the following I assume its at 0):

    picContain.removeChild(picContain.getChildAt(0));
    

    or you can simply use the removeChildAt() method:

    picContain.removeChildAt(0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a very simple animation in flash CS4. My image travels from point
I built an image gallery in Flash and it loads the XML just fine
I have a simple html/javascript based Android app that loads with the following code:
I am about to create a simple demo in flash where I have 3
I have simple win service, that executes few tasks periodically. How should I pass
I have simple issue setting a two-way databinding of a checkbox in Silverlight 3.0.
I have simple SSIS package which reads data from flat file and insert into
EDIT (for clarification): I have a vector image with a simple contour, an irregular
I am using Flex 4. I have created an image gallery with TileList When
I have a very simple flash movie. 24 png images in the Library The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.