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
精彩评论