-1

I created a sample application to test UDP speed from my local machine to server. to achieve same i created Action Script Project for Web using Adobe flash Builder where i am unable to get class flash.net.DataGramSocket.

and same package is available in Window based Action Script Project.

Why DataGramSocket is not available for web based project ? is there any restriction ?

Yogesh Prajapati
  • 4,770
  • 2
  • 36
  • 77
  • You cannot use any `AIR` code within browser SWF (only if you export as **.exe**, **air** or some Android **.apk** or as iOS app). – VC.One Jun 12 '16 at 23:42

1 Answers1

1

In the flash.net package description there is an AIR icon near the DatagramSocket link meaning

Only available in AIR runtime


Also the reference says:

AIR profile support: This feature is supported on all desktop operating systems, on iOS (starting with AIR 3.8), and on Android (starting with AIR 3.8). This feature is not supported on AIR for TV devices. You can test for support at run time using the DatagramSocket.isSupported property. See AIR Profile Support for more information regarding API support across multiple profiles.

www0z0k
  • 4,444
  • 3
  • 27
  • 32