Search code examples
actionscript-3sslactionscripttls1.2flexbuilder

Import flash.net.SecureSocket throwing error "Definition XXX could not be found"


My requirement is to make connection using SSL and TLS from my flexbuilder AS code. I google it and found that SecureSocket() will be used to communicate with SSL and TLS from the below url,

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

While trying to implement the same in my code, I am not able to import the namespace SecureSocket (import flash.net.SecureSocket;) and while referring it throws the error as "Definition flash.net.SecureSocket could not be found"

FYI - I'm using Flex Builder version 3


Solution

  • Flex Builder 3 supports Flash Player version 10 here and SecureSocket will be available Flash Player version 11 or Higher here.