2011-09-20 66 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 –