2 Replies Latest reply on Nov 10, 2010 9:46 AM by kylecook80

    "event.target as Socket" in Javascript


      I found an example of a small webserver built with Flex in Air. I am wanting to convert this into HTML/Javascript and all has gone well except I cannot figure out how to port this line


      var socket:Socket = event.target as Socket;


      Any suggestions?


      "var socket = event.target;" doesn't seem to work.