Archive for August 15th, 2008

ActionScript 3.0 Object class Quiz

Check following code ::
var obj1:Object = new Object();
obj1.prop1 = “Naresh”;
obj1.prop2 = “Khokhaneshiya”;
var obj2:Object = new Object();
obj2.prop2 = “Hello world”;
obj1 = obj2;
trace(obj1.prop1); //What will be output here
obj1.prop1 = “Khokhaneshiya”;
trace(obj1.prop1); //What will be output here
Be honest, Don’t trace it out using Flash.
You will have answer in following posts !

Continue reading »

AIR and Network Detection

We can detetct the network in AIR using following code ::
Need to use ‘ServiceMonitorShim’ complied clip from AIR components in your fla file.
import air.net.URLMonitor;
import flash.net.URLRequest;
import flash.events.StatusEvent;
var monitor:URLMonitor;
monitor = new URLMonitor(new URLRequest(‘http://192.168.0.57′));
monitor.addEventListener(StatusEvent.STATUS, announceStatus);
monitor.start();
function announceStatus(e:StatusEvent):void
{
         trace(“Status change. Current status: ” + monitor.available);
}

Continue reading »

A story of Yertle and Turtle

Yertle the Turtle was king of the pond.  A nice little pond. It was clean. It was neat. The water was warm. There was plenty to eat. The turtles had everything turtles might need. And they were all happy.  Quite happy indeed.
They were… until Yertle, the king of them all, Decided the kingdom he ruled [...]

Continue reading »

AIR and its Application directory

A program does not have right to write or modify into Application directory of AIR application. We can read content of Application directory.
You can find some more tip and tricks here :: http://blogs.adobe.com/simplicity/2008/06/dont_write_to_app_dir.html
Cheers!

Continue reading »