导入flash.net.SecureSocket抛出错误“Definition XXX could not be found”

问题描述:

我的要求是使用我的flexbuilder AS代码中的SSL和TLS进行连接。我google一下,发现的SecureSocket()将用于从以下网址SSL和TLS进行沟通,导入flash.net.SecureSocket抛出错误“Definition XXX could not be found”

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SecureSocket.html

同时努力实现同样的在我的代码,我不能导入命名空间的SecureSocketimport flash.net.SecureSocket;),并参照它抛出的错误作为“的定义flash.net.SecureSocket找不到”

仅供参考 - 我使用Flex Builder 3版

+0

文档指出Flex Builder 3支持Flash Player版本10(这里是:http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_fb.html),而SecureSocket需要Flash Player版本11(这里:http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SecureSocket.html)。这可能是为什么。 – Organis

+0

谢谢,但我如何检查我的服务器(Windows Server 2008 R2)中安装的FlashPlayer版本?请咨询 –

+1

您需要支持Flash Player 11或更高版本的Flex SDK或AIR SDK,只有这样您才能编译**代码。我建议放弃已经过时的老式Flex Builder 3,并转向最新的Flash Builder(如果您可以负担得起的话),或者免费的也支持Flex和MXML的FlashDevelop。 – Organis

Flex Builder 3支持Flash Player版本10 here并且SecureSocket将可用Flash Player版本11或更高版本here