激活类文件中的tweenlite插件

时间:2011-09-20 09:53:06

标签: flash actionscript-3 actionscript

所以我有一个公共类,我已经将TweenLite导入其中并且它工作得很好但是我如何激活TweenLite插件?通常的语法TweenPlugin.activate([ShortRotation]);在这里不正确。

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;

收到的错误是

  

第13行1120:访问未定义的属性ShortRotation。

1 个答案:

答案 0 :(得分:0)

正确的语法是:

TweenPlugin.activate([ShortRotationPlugin]);