RemoveMovieClip can be buggy.  Are you using v2 components as well or have any 
in your library?  If so, there is a depth conflict with them. 

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_19435

I worked around it using unloadMovie instead. The swapDepths approach never 
seemed to work for me.


Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com




>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Andreas Rønning
>>Sent: Monday, December 05, 2005 9:16 AM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] removemovieclip failure
>>
>>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
NOTICE:
This message is for the designated recipient only and may contain privileged or 
confidential information. If you have received it in error, please notify the 
sender immediately and delete the original. Any other use of this e-mail by you 
is prohibited.
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to