Just create the mm.cfg file if it doesnt exist,
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sidney
de Koning
Sent: 24 January 2008 16:13
To: Flash Coders List
Subject: Re: [Flashcoders] AIR Sandbox while loading sounds
No such files here, tried looking for it but no luck.
Still cant find the bug i was looking for, maybee tomorrow. Any other
sugestions i can try?
cheers, Sid
Matthew James Poole wrote:
> Your policy file looks good, heres something you could try to see if
> there is a problem with the policy file:
>
> Find this file 'mm.cfg' here :
>
> C:\Documents and Settings\{username}
>
> And add to it these lines:
>
> PolicyFileLog=1 # Enables policy file logging
> PolicyFileLogAppend=1 # Optional; do not clear log at startup
>
> Then when you test a swf have a look here:
>
> C:\Documents and Settings\{username}\Application Data\Macromedia\Flash
> Player\Logs
>
> For a file called 'policyfiles.txt'. It logs info about policy files
> that have been loaded, so that will confirm whether or not your file
> is ok.
>
> Cheers
> Matt
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Sidney
> de Koning
> Sent: 24 January 2008 12:42
> To: Flash Coders List
> Subject: Re: [Flashcoders] AIR Sandbox while loading sounds
>
> Download the CS3 Air extension :)
>
> Code is pasted below, this works in AS3, but not in AIR.
> The radio stream sits on port 8000 (shoutcast). But its not a socket
> connection im making just a http call.
>
> the stream i want to use is a different url than below, but that real
> domain does had a crossdomain.xml (with the new policies) I hope i
> have the syntax right for the new c.d file, if its wrong, please
correct me:
>
> <cross-domain-policy>
> <allow-access-from domain="*" to-ports="8000"/> </cross-domain-policy>
>
>
>
> // Sandbox error in AIR, AS3 publish works fine, grmbl AIR!
> //
http://livedocs.adobe.com/labs/flex3/html/Working_with_Sound_11.html
> var lounge = new URLRequest("http://207.200.96.226:8000");
>
> var context:SoundLoaderContext = new SoundLoaderContext(100, true);
> var s:Sound = new Sound(); s = new Sound(lounge, context);
> trace(lounge.url); var sc:SoundChannel = s.play();
> s.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
>
> stop_btn.addEventListener(MouseEvent.MOUSE_DOWN, stopStream);
>
> function errorHandler(errorEvent:IOErrorEvent):void { trace("The
> sound could not be loaded: " + errorEvent.text);} function
> stopStream(evtObj:MouseEvent) { s.close(); }
>
>
> Cheers Sid
>
> Matthew James Poole wrote:
>
>> I think what it was basically saying is that same domain socket
>> servers need to have policy files now, where before they didn't. So
>> really if you have a policy file you should be ok.
>>
>> With the port nunber, what it was saying is that if you have a policy
>> file on a server that listens on ports above 1024 the policy file is
>> only valid for connections coming in to ports above that 1024. So in
>> this case connections made for that ports 1024 and below are no
>> longer
>>
>
>
>> considered secure. So this shouldn't effect you so long as you have a
>> policy file and you continue to make connections above port 1024 (I
>> assume you are only connecting to port 8080)
>>
>> Regarding streaming audio, I'd have to have a test (which would be in
>> flex) so Im not sure I can help you - remind me to down load the CS3
>> Air extention!
>>
>> Is that radio URL availble to everyone? i.e. could I test (though it
>> would have to be at home - work are pretty strict about portts)
>>
>> Cheers
>> Matt
>>
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of
>> Sidney
>>
>
>
>> de Koning
>> Sent: 24 January 2008 10:54
>> To: Flash Coders List
>> Subject: Re: [Flashcoders] AIR Sandbox while loading sounds
>>
>> He Matt,
>>
>> Ofcourse they changed it :)
>> Still does not work; this is inside my policy file:
>> <cross-domain-policy>
>> <site-control permitted-cross-domain-policies="all"/>
>> </cross-domain-policy>
>>
>> Cant find in the doc if i need to specify the port, since it is above
>> 1024? And does '|to-ports' |work on normal connections aswell as only
>> XML Socket connection?
>>
>> Been trying everything and notthing seems to work, is there anything
>> specific to AIR and loading sounds?
>>
>> Cheers,
>> Sid
>>
>>
>> Matthew James Poole wrote:
>>
>>
>>> Hey sid,
>>>
>>> There are new security rules for build 115 (update 3) of FP9:
>>>
>>>
>>>
>>>
>>
http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.ht.
>> m
>>
>>
>>> l
>>>
>>> Bit of a long read, but it may help you... Though if you;ve got the
>>> poilcy file it ought to be ok
>>>
>>> Cheers
>>> Matt
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of
>>> Sidney
>>>
>>>
>>
>>
>>> de Koning
>>> Sent: 24 January 2008 10:09
>>> To: Flash Coders List
>>> Subject: [Flashcoders] AIR Sandbox while loading sounds
>>>
>>> Hi List,
>>>
>>> I'm trying to load a sound stream into my air application, it is a
>>> radio stream bound to a port (ie: http://radio.example.com:8000/).
>>> When publishing to flash 9, it works smooth as silk, but when
>>> publishing to AIR i get errors (I work work with the Flash IDE):
>>>
>>> *** Security Sandbox Violation ***
>>> SecurityDomain 'app:/soundRadio.swf' tried to access incompatible
>>> context 'http://adobe.com/apollo'
>>>
>>> However everytime i load a stream it throws me a security error. How
>>> do i get past this, and make it work in a good manner?
>>> And i have done all the usual stuff like, set up a crossdomain file,
>>> and i make use of the SoundLoaderContext.
>>>
>>> Help is advised!
>>>
>>> Cheers,
>>>
>>> Sid
>>>
>>>
>>> _______________________________________________
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> ____________________________________________________________________
>>> _ _ This e-mail has been scanned for viruses by the Virtual Universe
>>> e-mail security system - powered by MessageLabs.
>>> http://www.virtual-universe.net
>>>
>>> ____________________________________________________________________
>>> _
>>> _
>>>
>>> Virtual Universe Ltd, 28-39 The Quadrant, 135 Salusbury Road, London
>>> NW6 6RJ
>>>
>>> Tel: +44 (0) 870 788 6000
>>>
>>> Fax: +44 (0) 870 788 6689
>>>
>>> Web: www.virtual-universe.net
>>>
>>> --------------------------------------------------------------------
>>> -
>>> -
>>> -------------------
>>>
>>> CONFIDENTIALITY NOTICE
>>>
>>> This e-mail may contain information which is confidential and
>>>
>>>
>> privileged. If you are not the named addressee of this e-mail, you
>> may
>>
>
>
>> not copy or use it, or forward or otherwise disclose it to anyone
>>
> else.
>
>> If you have received this e-mail in error, please e-mail the sender
>> by
>>
>
>
>> replying to this message and then fully delete it from your system.
>>
>>
>>> Any views or opinions presented in this e-mail are solely those of
>>> the
>>>
>>>
>> author and do not necessarily represent those of Amplefuture Group.
>> Amplefuture Group reserves the right to monitor e-mail communications
>> from both external and internal sources for the purposes of ensuring
>> correct and appropriate use of our communication equipment.
>>
>>
>>> ____________________________________________________________________
>>> _ _ This e-mail has been scanned for viruses by the Virtual Universe
>>> e-mail security system - powered by MessageLabs.
>>> http://www.virtual-universe.net
>>>
>>> _______________________________________________
>>> Flashcoders mailing list
>>> [email protected]
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>>
>>>
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> _____________________________________________________________________
>> _ This e-mail has been scanned for viruses by the Virtual Universe
>> e-mail security system - powered by MessageLabs.
>> http://www.virtual-universe.net
>>
>> _____________________________________________________________________
>> _
>>
>> _____________________________________________________________________
>> _ This e-mail has been scanned for viruses by the Virtual Universe
>> e-mail security system - powered by MessageLabs.
>> http://www.virtual-universe.net
>>
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> ______________________________________________________________________
> This e-mail has been scanned for viruses by the Virtual Universe
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
> ______________________________________________________________________
>
> ______________________________________________________________________
> This e-mail has been scanned for viruses by the Virtual Universe
> e-mail security system - powered by MessageLabs.
> http://www.virtual-universe.net
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
______________________________________________________________________
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs.
http://www.virtual-universe.net
______________________________________________________________________
______________________________________________________________________
This e-mail has been scanned for viruses by the Virtual Universe e-mail
security system - powered by MessageLabs. http://www.virtual-universe.net
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders