سؤال

I getting this error(s) when I'm trying to compile Adobe's UDP socket example:
- Definition flash.net:DatagramSocket could not be found.

I am using these software:
FlashDevelop IDE 4.3.0,
Adobe AIR SDK 3.6, Flex 4.6.0; (installed with FlashDevelop)

Project properties:
Platform - Flash Player 10.3,
Compilation mode - Application,
ActionScript 3

Am I missing something? How to get it work?

EDIT: Reference used in my project: http://help.adobe.com/en_US/as3/dev/WSb2ba3b1aad8a27b0-181c51321220efd9d1c-8000.html#WSb2ba3b1aad8a27b0-181c51321220efd9d1c-7ffe

هل كانت مفيدة؟

المحلول

Try adding import at the beginning of your code:

import flash.net.DatagramSocket;
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top