This content has been marked as final. Show 4 replies
A simple sample with source code reproducing the symptom would be helpful.
Hi! I have the exact same problem.
A very simple sample can be seen here: http://www.norbykovacs.com/flextest/testLabel.html
Open up the popup, the close it, then move your mouse over the handle of the divider. It throws the same error as above. Check out the source, it's nothing special unless I'm missing something.
In your sample, you are calling createPopup() which will create the popup and add it as well. If you comment out your call to addPopup() your problem should be fixed. (Actually, you new Pop() would be wasted because createPopup does that as well)
Ideally, you should remove the event listener for cancel as well in your closeHandler (no anonymous event handlers please!) so that garbage collector can free that memory .
Please see the code below:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" borderStyle="inset" viewSourceURL="srcview/index.html">
private function closeHandler(evt:Event):void
popup = null;
private function openpop():void
popup = PopUpManager.createPopUp(this,Pop,true) as Pop;
<mx:HDividedBox x="0" y="0" width="100%" height="200">
<mx:Label text="asda" />
<mx:Button label="open" click="openpop()" />
I guess that's what I get for not reading the documentation thoroughly. :)