flash (?) - movieclip as button
flash (?) - movieclip as button
Out of context: Reply #10
- Started
- Last post
- 18 Responses
- kingsteven0
check you're in the right scope, 'this' inside an onRelease function refers to the button/movieclip itself.
the answer may be to declare a variable in the same scope as you define your handlers... it gets copied across & references back to the current scope.
var self = this;
my_mc.onRelease = function(){
self.doSomething(this);
}
function doSomething(mc:MovieClip){
trace("doing something with "+mc);
}