Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-24-2008, 02:24 AM   #1
Registered User
Join Date: Sep 2008
Posts: 3
Default Removing multiple children from a movie clip

First off thanks for reading , am having a problem. I'm making a gallery which uses a bit of XML to place three images into a movie clip in the centre of the stage. On the stage i have 4 buttons which tell the following code to load a different XML file and add three different images to the clip (called 'container1').

ActionScript Code:
//--XML IMAGE LOADER--// function xmlLoaded(event:Event):void {     xml = XML(event.target.data);     xmlList = xml.children();     for (var i:int = 0; i < xmlList.length(); i++) {         imageLoader = new Loader();         imageLoader.load(newURLRequest(xmlList[i].attribute("source")));         imageLoader.x = i * 141         container1.addChild(imageLoader)     } fadeTween = new Tween(container1, "alpha", None.easeNone, 0.2, 1, 0.7, true) }

The problem comes when it fades (want to do this to avoid the jerking due to loading time) into the new images as the old ones are still there and you can see them with the reduced alpha. Is there a way to get the old images out of the clip when i press any gallery button? or perhaps there is a way to only display the movie clip when a gallery button is pressed after a timer delay set long enough for all of the new images to fully load over the old?
Have searched for a while to find a solution but cant seem to, any help greatly appreciated!!!
illegalalien86 is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Movie Clip Parent Management dannyst ActionScript 2.0 3 07-27-2007 05:44 PM
Multiple images in one Movie Clip? Brownie Components 12 02-27-2006 10:37 PM
Passing Variable thebutterfly ActionScript 2.0 72 01-24-2006 04:12 PM
removing a non-duplicated movie clip rushin ActionScript 1.0 (and below) 3 04-24-2005 04:52 PM
Problem With Loading MovieClip Into SUB movie JakeMX Components 2 07-28-2004 10:07 PM

All times are GMT. The time now is 03:55 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.