PDA

View Full Version : I'm desperate for removeMovieClip HELP!!!


qristopher
08-11-2005, 04:55 AM
I have three container clips at the bottom of my page. they statically contain an actionscripted movieclip that transitions external .jpgs via an .xml file. This works beautifully.

Some of the buttons in the load movieclips containing static images into the container clips, which also works.

//////partial movieclip loading code/////////////////////
container1.attachMovie("ria1", "newname1", 0);
container2.attachMovie("ria2", "newname1", 0);
container3.attachMovie("ria3", "newname1", 0);
////////////////////////////////////////////////////////////

The problem is that when you click a button that does not load a static image movieclip, I want it to remove whatever clip was previously attached, thus revealing the original photo transition clip (that is statically contained in the container clip). This is NOT working. At the most, I have been able to remove the clip, but it appears as though everything is removed from the movie, as the transition movieclip is not visible.

http://www.whitepetaldesign.com/southpoint/WWW

Here's the link. If you navigate SITE>ROOSEVELT ISLAND ARCHITECTURE you will see an example of static images replacing (technically overlapping) the transition effect.

I'm so stumped, and I'm reaching my deadline. any ideas anyone?????????

Flash Gordon
08-11-2005, 05:09 AM
what is the code you are using to try and remove it?
maybe something like
for (i in _root) {
trace (i);
}

qristopher
08-11-2005, 05:41 AM
So far I've only tried things like:

container1.removeMovieClip();

or

{
container1.swapDepths(666);
container1.removeMovieClip();
};

I'm assuming I need to do some sort of array maybe, but I'm teaching myself all of this as I go, so I'm clueless as to how i would do that.

malik
08-11-2005, 06:23 AM
I just did this. try

unloadMovie(container1)

mambenanje
08-11-2005, 11:16 AM
you can create the container clip and the transition clip on stage,set the transition clip direclty beneath the container clip, so when there is nothing in the container the, the transition will show up, or am I not getting you clear

qristopher
08-11-2005, 06:35 PM
mambenanji......OMG! Thanks you do much. I knew it was something ridiculously obvious that I just wasn't getting.

So I placed the photo transition clips underneath the transparent conatiner clips, on their own layer. Then I just used container1.unloadMovie(); and everything works awesomely now!

Thank you all so much. I can breathe again. Phew.

Ciao!