- Home /
Unity 3.5 with AS3
On the faq for the current preview release, http://unity3d.com/unity/preview/faq it says that while networking is not currently supported for flash compilation, we can write our own in AS3 using the Flash API. I can't seem to find the docs for this API or figure out the right way to work in both AS3 and Unity. Can anyone point me in the right direction?
I have the same problem, if you figure it out would you please be so kind an post the answer here? Thx
Answer by catburton · Aug 09, 2012 at 04:32 PM
Networking via WWW and WWWForm is supported in the recent Unity 3.5 builds. Raknet networking is not supported, so this would be something you'd need to implement yourself in AS3 (or use an ActionScript networking library).
Here are some examples which should help you with AS3/Unity communication:
Loading textures from web: http://forum.unity3d.com/threads/128057-Flash-Simple-AS3-Bridge-Demo-Loading-textures-from-web.?p=864642&viewfull=1#post864642
Browser JS Communication: http://docs.unity3d.com/Documentation/Manual/flashexamples-browserjavascriptcommunication.html
Calling AS3 functions from Unity (C#/JS): http://docs.unity3d.com/Documentation/Manual/flashexamples-callingflashfunctions.html
Custom Preloader: http://forum.unity3d.com/threads/116650-UnityShared.swc-Communicating-between-Unity-Flash-Content-and-AS3.?p=922340&viewfull=1#post922340
Supplying data from Flash to Unity: http://docs.unity3d.com/Documentation/Manual/flashexamples-supplyingdata.html