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:[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] <mailto:[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]
<mailto:[EMAIL PROTECTED]> > wrote:

Hi Fridosh

Try this:

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


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

rember the port number to :)

Cato Paus

--- In [email protected]
<mailto: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