Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Noxres · Jul 09, 2012 at 09:50 AM · multiplayernetworkflashactionscript

Help with networking in flash

Networking is not supported when you build it to flash. Is there others way to do networking with flash? I have an experience with PlayerIO, Can i write an external actionscript to handle this? And how can it communicate with my unity flash build?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by catburton · Jul 09, 2012 at 02:05 PM

Depending on what you want to achieve, you could communicate with PlayerIO using WWW/WWWForm, which are supported for Flash export: http://docs.unity3d.com/Documentation/Manual/flash-whatssupported.html

Alternatively, you could write native AS3 code for your networking layer when exporting to Flash. To do this, you could either use AS3 classes in your Unity project or you could create an AS3 wrapper SWF. Note that if you do write your networking code in AS3, it would then only work in Flash export. An example of how to use AS3 code within your unity project is here: http://docs.unity3d.com/Documentation/Manual/flashexamples-supplyingdata.html

This shows how to supply data between AS3 and C#/JS, but should give you a good starting point and show you how to set up some basic classes. There are other examples in that Flash area of the documentation which should also help.

An example of how to create a wrapper swf and have it communicate with your unity content is here: http://forum.unity3d.com/threads/128057-Flash-Simple-AS3-Bridge-Demo-Loading-textures-from-web.

There are a few different options there, but hopefully one of those will be suitable for your project.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Noxres · Jul 11, 2012 at 06:36 AM

Hi Cat,

thanks for your reply. We got the communication between Flash and Unity working as in http://docs.unity3d.com/Documentation/Manual/flashexamples-supplyingdata.html But now Player IOs API is asking for the flash stage object and will not work without passing in the correct one from Unity. It seems possible to fix that through preloading as in http://forum.unity3d.com/threads/116650-UnityShared.swc-Communicating-between-Unity-Flash-Content-and-AS3./page6 But then the communication part doesnt work anymore :( Is there maybe a complete example with a small chat or similar in Unity exported to Flash and working through some serverside service like PlayerIO or Photon that you know of?

Would be great if you could help me with these questions too? http://answers.unity3d.com/questions/282635/how-can-i-sent-stage-from-unity-to-other-actionscr.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by catburton · Jul 11, 2012 at 11:25 AM

I don't have any examples of using flash export with PlayerIO/Photon at present. If you need to supply the stage to PlayerIO, take a look at this which shows how the stage can be accessed within your Unity project. Perhaps you can work around your issues this way:

http://docs.unity3d.com/Documentation/Manual/flashexamples-accessingthestage.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Optimize iPad multiplayer? 1 Answer

Testing my multiplayer character offline 0 Answers

Multiplayer UNet doesn't use UnityEngine.Network anymore right? 2 Answers

Add Actionscript files building for Flash 1 Answer

NetworkManagerHUD Component not found in MonoDeveloper? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges