HI,

If the Movie is already existing one (Not created by Script), U have to use 
swapDepths to change the depth then remove it. Becose there is some problem 
with Depths. Instance having depth -1 and some higher depths wouldn't be 
removed correctly. So follow this code

    var evt = this.getInstanceAtDepth(0);
    this.swapDepths(0);
    this.removeMovieClip();
    if (evt != undefined) {
        evt.swapDepths(0);
    }

Regards
Devendran.I

Andreas Rønning <[EMAIL PROTECTED]> wrote: Ok this is the first time i've had 
this issue with removemovieclip so 
bear with my amazement.
I have an application with popup windows created with attachMovie. These 
windows have the following script on frame 1 of their movieclip:

closer.onPress = function() {
    this.gotoAndStop(2);
};
closer.onReleaseOutside = function() {
    this.gotoAndStop(1);
};
closer.onDragOut = function() {
    this.gotoAndStop(1);
};
closer.onRelease = function() {
    this.gotoAndStop(1);
    this._parent.closeMe();
};
function closeMe() {
    removeMovieClip(this);
}

closer being the close button instance name.
The closeMe function is called, but removeMovieClip does nothing. I did 
a trace(this); removeMovieClip(this); trace(this); and both traces show 
up, showing the correct path, but nothing is removed.
Is there a good reason for this? What am i missing.

- Andreas
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



                        
---------------------------------
Yahoo! Shopping
 Find Great Deals on Holiday Gifts at Yahoo! Shopping 
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to