You can do it with a Delegate:
import mx.transitions.Tween;
import mx.transitions.easing.*;
import mx.utils.Delegate;
class tweeny extends MovieClip {
private var theClass;
function test() {
theClass = this;
}
function onLoad() {
this["mc"].onRelease = function():Void {
var p:Tween = new Tween(_parent["mc2"],, "_y",Regular.easeOut, 0, 50, 10,
false);
var ch = function(){
trace(this);
}
p.onMotionChanged = Delegate.create(theClass, ch);
};
};
}
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com