Hey guys,
I ran into a problem.I'm doing a GIS program using flex.
There's a map in my Application,when I click one icon on the map,windowA pops up,when I click a link inside windowA,windowB pops up,but here my problem coming out,when I close windowB and click the link inside windowA another time,Two windowB pop up...
In my windowA,I have
...
var windowBEvt:WindowBEvent = new WindowBEvent();
CairngormEventDispatcher.getInstance().dispatchEvent(windowBEvt);
...
<control:WindowBControl id='control1'>
In WindowBControl,I have
addCommand(WindowBControl.EVENT_POPUPWindowB,WindowBCommand);
In WindowBCommand,I have
public function execute(event:CairngormEvent):void
{
...
var windowB:WindowB = new WindowB();
PopUpManager.addPopUp(windowB);
...
}
Could anyone give me a hand?
Much Thanks!
Best,Shuo