0 Replies Latest reply on Oct 14, 2011 7:36 AM by kopaacabana

    NetStream.send()

    kopaacabana Level 1

      Hello,

       

      I'm trying to send via NetStream a reference of a class instance.

      Class instance are transform in an Object.

       

      Is it possible to keep the same type.

       

      Ex :

      var gamer:Gamer = new Gamer("name", "score", ...);

       

      var ns:NetStream = new NetSrream(...)

      ns.send("function", gamer);

       

      I have always an error. My instance is converted to an Object when I test to transtype as an 'Gamer' !.

      Someone have a solution !

       

      Sorry for my english.

      Thanks

       

      Loïc