Package | com.greensock.plugins |
Class | public class CirclePath2DPlugin |
Inheritance | CirclePath2DPlugin TweenPlugin Object |
autoRotate
is true
, the target will automatically
be rotated so that it is oriented to the angle of the path. To offset this value (like to always add
90 degrees for example), use the rotationOffset
property.autoRotate
is true
, this value will always
be added to the resulting rotation
of the target.Direction.CLOCKWISE
("clockwise"), Direction.COUNTER_CLOCKWISE
("counterClockwise"), or Direction.SHORTEST
("shortest").USAGE:
import com.greensock.*; import com.greensock.plugins.*; import com.greensock.motionPaths.*; TweenPlugin.activate([CirclePath2DPlugin]); //activation is permanent in the SWF, so this line only needs to be run once. var circle:CirclePath2D = new CirclePath2D(150, 150, 100); TweenLite.to(mc, 2, {circlePath2D:{path:circle, startAngle:90, endAngle:270, direction:Direction.CLOCKWISE, extraRevolutions:2}});
Copyright 2008-2013, GreenSock. All rights reserved. This work is subject to the terms in http://www.greensock.com/terms_of_use.html or for Club GreenSock members, the software agreement that was issued with the membership.