开发者

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

开发者 https://www.devze.com 2023-02-27 06:33 出处:网络
How can I开发者_StackOverflow中文版 use TweenLite to implementeffectof Flex\'s PopUpManager?I am using greensock tweenlite for sample

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

精彩评论

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