Hi Firdosh

do you load the policy file by using 
flash.system.Security.loadPolicyFile().

like this?

Security.loadPolicyFile("http://www.yourdomene.com/crossdomain.xml";);


and i think you have to tell the flash player wath port to use or it 
will use port 80 for all socket trafic.

here is an crossdomain sample.

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy 
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
<cross-domain-policy>
 <allow-access-from domain ="*" to-ports="80,110" />
</cross-domain-policy>


if I'm right it opens the ports to 80-110.

Cato Paus

--- In [email protected], "Firdosh Tangri" <[EMAIL PROTECTED]> 
wrote:
>
> yup
> 
> <?xml version="1.0"?>
> <cross-domain-policy>
> <allow-access-from domain="*" />
> </cross-domain-policy>
> 
> On 11 Mar 2007 23:21:58 -0700, Josh Tynjala <[EMAIL PROTECTED]> wrote:
> >
> >    Is there a crossdomain.xml on the server to which you're 
connecting?
> >
> > -Josh
> >
> >
> > Firdosh Tangri wrote:
> >
> >  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" <ftangri@> <ftangri@>
> > > >
> > > > 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