Skip to main content
May 17, 2008
Question

Removing MovieClip

  • May 17, 2008
  • 2 replies
  • 390 views
Hello, I'm making my first attempt at using classes to create a generic movieclip object. This movieclip clip simply displays an externally loaded jpg. When you click on the jpg, the movieclip should remove itself. I don't fully understand targeting properly. The code for the class attached to the movieclip is attached. Thankyou
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
May 19, 2008
is that code in your class file??
kglad
Community Expert
Community Expert
May 18, 2008
"this" is probably out of scope in closebigimage(). in addition, if it were within scope you'd be trying to remove it from itself instead of its parent. you could use:

May 19, 2008
Thank You

I was/am getting really confused with scope, especially inside of methods. I've solved this issue with using the code attached.