开发者

Activate tweenlite plugins inside class file

So I have a public class and I have imported TweenLite into it and it works great but how would I activate a TweenLite plugin? The usual syntax TweenPlugin.activate([ShortRotation]); isn't correct in here.

package com.George.MegaAmazingApp.Components
{
    import flash.display.Stage;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import flash.display.MovieClip;

    // Import TweenEngine
    import com.greensock.TweenLite;
    import com.greensock.easing.Expo;
    import com.greensock.plugins.ShortRotationPlugin;
    import com.greensock.plugins.TweenPlugin开发者_如何学JAVA;

Error recieved is

Line 13 1120: Access of undefined property ShortRotation.


The correct syntax is:

TweenPlugin.activate([ShortRotationPlugin]);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜