jossaric Posted July 11, 2011 Report Posted July 11, 2011 import flash.desktop.*; try{ NativeApplication.nativeApplication.startAtLogin = true; }catch(e:Error){ trace(e); } Ne mogu da ovo implementujem u as3 klasu package { import flash.desktop.*; import flash.display.MovieClip; import air.net.URLMonitor; import flash.net.URLRequest; import flash.events.StatusEvent; import flash.events.Event; public class Main extends MovieClip{ private var monitor:URLMonitor; private var myURL:URLRequest = new URLRequest('blablabla'); public function Main() { NativeApplication.nativeApplication.startAtLogin = true; myURL.method = "HEAD"; monitor = new URLMonitor(myURL); monitor.start(); monitor.addEventListener(StatusEvent.STATUS, on_Connection); } protected function on_Connection(event:Event):void{ if(event.target.available == true){ trace('da'); }else{ trace('ne'); } } } } Ovako ne ide, ali kako ide :) Znam, opet amatersko pitanje, Tnx unaprijed
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now