Hi again,

After hours and hours of trying I ONLY can come up with one working solution to get two separate windows and these two windows actually working and doing what I want them to do.

This is the code:

<mx:Script>
<![CDATA[
import mx.core.Window;
import mx.events.FlexEvent;

private function openWindows(evt:Event):void {

new MyWinOne().open();
new MyWinTwo().open();

onStartTimer();
}
]]>
</mx:Script>


Now I have still recurring the same problem HOW TO CLOSE THESE TWO windows in the main App or from each within itself !!!

I know this code is wrong BUT the ONLY version without Error messages, but still NOT working using timer code as previously supplied!

<mx:Script>
<![CDATA[

private var myTimer:Timer;
private var count:int = 0;
private function onStartTimer():void {

myTimer = new Timer(1000, 6);
myTimer.start();

myTimer.addEventListener(TimerEvent.TIMER, popupHandler);

}
private function popupHandler(event:TimerEvent):void {

if (count == 5) {

new MyWinOne().close();
}
if (count == 7) {

new MyWinTwo().close();

myTimer.removeEventListener(TimerEvent.TIMER, popupHandler);
}
count++;
}
]]>
</mx:Script>