开发者

How can I use TweenLite to implement effect of Flex's PopUpManager?

How can I开发者_StackOverflow中文版 use TweenLite to implement effect of Flex's PopUpManager?


I am using greensock tweenlite for sample

here a code for creating simple tweenlite effect on popup using PopUpManager

        import com.greensock.TweenLite;
        import mx.managers.PopUpManager;
        import mx.containers.TitleWindow;

        [Bindable]
        private var titleWindow:TitleWindow;


        private function createTweenlitePopup():void{
        titleWindow=TitleWindow(PopUpManager.createPopUp(this,TitleWindow,true));
        titleWindow.title = "This is my title window";


        TweenLite.to(titleWindow, 1.5, {x:100}); 
        }

and button calling createTweenlitePopup() to create popup is

<mx:Button click="{createPopup()}"/>

Hopes that helps

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜