This content has been marked as final. Show 3 replies
When you define the pop-up, set its scaleX and scaleY to zero. Then assign its showEffect to a <mx:Zoom> effect. If you don't set the initial scale to 0, you may briefly see the pop-up at full size before the Zoom effect re-scales it to zero.
Note that your text may not scale: it depends on the font and if the Flash player can scale it; you can always embed the font and it will work correctly.
You can make the Zoom effect either an MXML tag or create it with ActionScript when you make the pop-up.
Thanks any more.
I followed your steps, and make a TitleWinodw like this:
<mx:TitleWindow title="test" scaleX="0" scaleY="0" showEffect="Zoom">
then in Ascript:
var popup: MyComp = new MyComp();
PopupManager.addPopup(popup, this, true);
then running, however, the dialog is not shown, it is still scaled by zero.
Now I try it in ActionScript code:
popup = new MyComp();
popup.scaleX = 0;
popup.scaleY = 0;
var zoom: Zoom = new Zoom(popup);
then the Zoom effect works, but, the dialog is out from the left top corner of the window. it can't be centred anyhow.