开发者

Activate tweenlite plugins inside class file

开发者 https://www.devze.com 2023-04-06 06:44 出处:网络
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

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

精彩评论

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