2011-09-20 61 views
0

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

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的访问。

+0

为什么这个平常的语法是不正确的吗? – moropus

+0

你会得到哪个错误? – Kodiak

+0

@Kodiak Line 13 \t 1120:**访问未定义属性ShortRotation。** –

回答

0

正确的语法是:

TweenPlugin.activate([ShortRotationPlugin]); 
+0

非常感谢:P –