2017-04-25 54 views
-1

我的要求是使用我的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

回答

0

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

相關問題