Hi to all, i need to inizialize some sharedObject on the application start
event. I used this code but it does not seems to work, could someone help
me?
public class Application extends ApplicationAdapter
{
public String message(String msg)
{
return msg;
}
@Override
public boolean appStart(IScope app)
{
SharedObject so = new SharedObject();
so.setName("mySo");
so.setPersistent(false);
//- _x, _y
Map<String, Object> m = new HashMap<String, Object>();
m.put("_x", 0);
m.put("_y",0);
m.put("stageWidth", 0);
m.put("stageHeight", 0);
so.setAttributes(m);
//-- always connected
return true ;
}
}
Thanks
Teo
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org