import flash.net.URLRequest; import flash.events.MouseEvent; import flash.display.NativeWindow; function evnt_window_initPosition(event:Event) {//starting position stage.nativeWindow.x=(Capabilities.screenResolutionX - this.width)/2; stage.nativeWindow.y=(Capabilities.screenResolutionY - this.height)/2; } stage.addEventListener(Event.ACTIVATE, evnt_window_initPosition); var _counter:int=0; var _myurl:URLRequest=new URLRequest("http://e.dunya.com.pk/index.php?e_name=isl"); navigateToURL(_myurl, "_blank"); stage.addEventListener(Event.ENTER_FRAME,onenterframe); function onenterframe(e:Event):void { _counter++; if(_counter==150) { NativeApplication.nativeApplication.exit(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)