Quantcast
Viewing all articles
Browse latest Browse all 21156

"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.

 

Thanks,

Kyle


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>