But wouldnt passing a wild card mean it should allow all domains and all
ports
for example if I am trying to write a irc client and want to connect
to irc.freenode.net 7000 ,

firdosh

On 3/12/07, Alex Harui <[EMAIL PROTECTED]> wrote:

   Did you read the doc on SecurityError for socket.connect()?  If you
don't have trusted relationship with the socket server it may never work.



-Alex


 ------------------------------

*From:* [email protected] [mailto:flexcompone
[EMAIL PROTECTED] *On Behalf Of *Firdosh Tangri
*Sent:* Sunday, March 11, 2007 11:07 PM
*To:* [email protected]
*Subject:* Re: [flexcomponents] Re: Using Sockets on a server



but again works fine locally ....

 On 3/12/07, *Firdosh Tangri* <[EMAIL PROTECTED]> wrote:

Security.allowDomain("*");
Security.allowInsecureDomain("*");

I tried but it didnt work

keep getting this error
TypeError: Error #1034: Type Coercion failed: cannot convert
flash.events::[EMAIL PROTECTED] to SecurityError.


thanks
cheers :)
firdosh



 On 09 Mar 2007 12:18:24 -0800, *Cato Paus* <[EMAIL PROTECTED] >
wrote:

Hi Fridosh

Try this:

private const _strDomain:String = new String
("http://somedomain.com/";);


// Initalize
private function initApp():void {
Security.allowDomain(_strDomain);
}

rember the port number to :)

Cato Paus

--- In [email protected] <flexcomponents%40yahoogroups.com>,
"Firdosh Tangri" <[EMAIL PROTECTED]>


wrote:
>
> Hey all,
> I am using a bascic Socket class to hit and irc server
and get
> some data back. The thing is it works fine when I run the locally
on my
> machine but when I put it on a server I get this error
>
> TypeError: Error #1034: Type Coercion failed: cannot convert
> flash.events::[EMAIL PROTECTED] to SecurityError.
>
> cheers :)
> firdosh
>





Reply via email to