Re: [Flashcoders] Loading SWF file via Socket class / ByteArray

2010-06-08 Thread Juan Pablo Califano
Yes, URLLoader will trigger a standard HTTP request. Meaning, you can see it with firebug, charles, etc. It's also possible to sniff a socket connection, but it requires Wireshark or similar software. Not sure if you gain much by using sockets, really, but anyway I'd just add that setting up the

Re: [Flashcoders] Loading SWF file via Socket class / ByteArray

2010-06-08 Thread Tom Gooding
Thanks Juan - I will try this out - the reason behind investigating this is for obfuscation; I'm interested in finding a way to load an asset into flash without triggering a standard http request (I guess URLLoader will trigger one). You're right about LoaderContext too - I think it needs to be s

Re: [Flashcoders] Loading SWF file via Socket class / ByteArray

2010-06-08 Thread Juan Pablo Califano
You don't need to use a socket for this. Load the data with a URLLoader, setting URLLoader.dataFormat to URLLoaderDataFormat.BINARY. You'll get a ByteArray. Pass that to Loader::loadBytes() wait for the complete event to fire and you're all set. Well, almost. If the loaded swf is in a different

[Flashcoders] Loading SWF file via Socket class / ByteArray

2010-06-08 Thread Tom Gooding
Hi, Does anyone know how to get an external swf (hosted on a regular webserver) into the Loader class - accessed via the low-level flash.net.Socket class into a ByteArray. It seems this is possible, but I can't find any examples of how to handle it either server side (we use Java here) or how