That is how the cross domain policy for flash runs, and has run since player
7. It affects quite a few other things as well like bitmap data operations
and other stuff I don't know off the top of my head. Read up on it.

2008/12/1 Carl Welch <[EMAIL PROTECTED]>

> Does it matter that I can still hear the sound? It seems weird that I can
> hear the song playing from a different server but not have the ability to
> render the computeSpectrum.
>
>
>
> On Nov 30, 2008, at 5:58 PM, Latcho wrote:
>
>  SecurityError: Error #2123: Security sandbox violation:
>> SoundMixer.computeSpectrum:
>> http://oniricdev.com/carl/modules/audioPlayer.swf cannot access
>> http://setlist.matisyahuworld.com/2008-11-19-09_Dispatch_The_Troops.mp3.
>> No policy files granted access.
>>  at flash.media::SoundMixer$/computeSpectrum()
>>  at audioPlayer_fla::MainTimeline/*drawMyShit*()
>>
>> You have to put a crossdomain.xml file on the mp3-server that grants acces
>> to the swf-server domain:
>> http://setlist.matisyahuworld.com/crossdomain.xml  [ with xml inside, not
>> html as it renders now]
>>
>> Put it in root of the swf-server or define non-top-level xml location
>> within the swf by Security.loadPolicyFile(urltocrossdomain);
>>
>>
>> Latcho
>>
>>
>>
>> Carl Welch wrote:
>>
>>> Hi guys,
>>>
>>> I just ran into a funky problem with computeSpectrum. it appears that it
>>> won't work if the mp3 isn't located on the same server as the swf calling
>>> it. Is there a work around for this issue?
>>>
>>> I tried using this as a solution but it didn't have any effect at all:
>>>
>>> import flash.media.SoundLoaderContext;
>>> var context:SoundLoaderContext = new SoundLoaderContext();
>>> context.checkPolicyFile = true;
>>> _sound.load(new URLRequest('http://server/song.mp3'), context);
>>>
>>>
>>> Here is an example of what I have:
>>>
>>> swf and mp3 on the same server:
>>> http://oniricdev.com/carl/modules/audioPlayer_test.swf
>>>
>>> mp3 from a server other than the one that is hosting my swf:
>>> http://oniricdev.com/carl/modules/audioPlayer.swf
>>>
>>>
>>> Thanks!
>>>
>>
>> _______________________________________________
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
> --
> Carl Welch
> http://www.carlwelch.com
> http://www.jointjam.com
> [EMAIL PROTECTED]
> 805.403.4819
>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
The Random Lines
My online portfolio
www.therandomlines.com
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to