Hi to all, following some examples i just create a simple application in
red5

Now i need to inizialize no persistant shared object and i do it in this
way, but it does not seem to work

Why?

 

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

Reply via email to