|
-
Hi there again,
I have been able to get both windows working with content !!! but addressing them with two functions instead of one:
YET, now the Timers are not working ???
<mx:Script>
<![CDATA[
import mx.core.Window;
import mx.events.FlexEvent;
private var ma:MyWinOne;
private var myTimerOne:Timer;
private var countOne:int=0;
protected function app_creationCompleteHandlerOne(event:FlexEvent):vo id {
ma = new MyWinOne();
ma.open();
myTimerOne=new Timer(1000, 6);
myTimerOne.start();
myTimerOne.addEventListener(TimerEvent.TIMER, popupHandlerOne);
}
private function popupHandlerOne(event:TimerEvent):void {
if (countOne == 12) {
ma.close();
myTimerOne.removeEventListener(TimerEvent.TIMER, popupHandlerOne);
}
countOne++;
}
]]>
</mx:Script>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|