Hi,
Colon was a typo, sorry.
Also, I think the /onComplete/ bit is a pasting problem...
It should say onComplete - no slashes:
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});
If you want your thumb to "yoyo" or repeat tweening, you can do that
with the TweenMax too - look for examples of "yoyo" and "repeat" in the
docs for TweenMax.
Useful page? http://blog.greensock.com/get-started-tweening/
Glen
beno - wrote:
On Tue, Feb 2, 2010 at 9:03 AM, Glen Pike <[email protected]> wrote:
So you are adding the myThumb and Tweening it somewhere?
You might want to make myThumb do the Tween again from other frames in your
movie?
Maybe define a function in your class that is not depending on the
ENTER_FRAME event?
public function doTween():void {
addChild(myThumb):
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,/onComplete/:onFinishTween});
}
That looks like the idea I need. However, I changed this line:
addChild(myThumb):
to this:
addChild(myThumb);
(colon to semicolon)
I still get errors with this line:
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,/onComplete/:onFinishTween});
1084: Syntax error: Expecting identifier before /onComplete/
1084: Syntax error: Expecting colon before rightbrace
1084: Syntax error: Expecting identifier before rightbrace
Please advise.
TIA,
beno
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders