[osflash] SharedObject - java server side script

Matteo Lanzi lanzi.matteo at okpress.it
Thu Jun 21 20:32:43 EDT 2007


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20070622/fea0edfd/attachment-0001.htm


More information about the osflash mailing list