This content has been marked as final. Show 3 replies
By using Popupmanager you can block user interaction....
create panel component
<?xml version="1.0" encoding="utf-8"?>
<mx:Panel xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="400" x="200" y="100">
<mx:Button id="cancel" label="Cancel" x="300" y="320" click="PopUpManager.removePopUp(this);"/>
create a AS3 variable globally
var popup:PopUpPanel = new PopUpPanel(); // declare as globally
add following code whenevr you want to block user interaction
add following code whenever you want to allow user interaction
you may add swf components such as loading symbols.....
Thanks for your help. The idea is obiviously good.. though I cant incorporate it in my system as if I make popup's modal option ON, the background became greyed.. and in your example since the modal option is OFF, the click can be done anywher in time of an effect is playing.
But anyway, thanks for your response.
you can do Application.application.disabled=true
and when animation is done
or if that is too radical use "disabed" otpnio on some other container that is covering controls of user overreaction.