Hi list...
I have a class that has a movie clip "mc" in it that when clicked,
rotates another movie clip "mc2". As the tween progresses, I want it to
also affect some other things within the class, but I can't seem to
correctly reference instances of this class from within the
onMotionChanged handler. I've tried this and _parent. Any ideas? It
seems like there's a black hole between the Tween class and the instance
of the class it has been spawned from.
Thanks,
- Michael M.
import mx.transitions.Tween;
import mx.transitions.easing.*;
class tweeny extends MovieClip {
function tweeny() {
}
function onLoad() {
this["mc"].onRelease = function():Void {
var p:Tween = new Tween(_parent["mc2"], "_y",
Regular.easeOut, 0, 50, 10, false);
p.onMotionChanged = function():Void {
// how to reference the class here??
// this and _parent aren't working
};
};
}
}
_______________________________________________
[email protected]
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