Mr. Fixit
22.08.2007, 18:55
import mx.utils.Delegate;
class goToFrame {
function goToFrame (_mc:MovieClip, frame:Number) {
_mc.onRelease = Delegate.create (this, goTo);
}
private function goTo (frame:Number):Void {
trace (frame); //undefined
gotoAndStop (frame);
}
}
Почему переменную frame не видит функция goTo?:rolleyes:
class goToFrame {
function goToFrame (_mc:MovieClip, frame:Number) {
_mc.onRelease = Delegate.create (this, goTo);
}
private function goTo (frame:Number):Void {
trace (frame); //undefined
gotoAndStop (frame);
}
}
Почему переменную frame не видит функция goTo?:rolleyes: