2010-10-12 37 views

回答

0

它看起來像一個安全問題,您需要使用跨域策略文件。

<?xml version="1.0"?> 
<!DOCTYPE cross-domain-policy SYSTEM 
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"> 

<cross-domain-policy> 
    <site-control permitted-cross-domain-policies="master-only"/> 
    <allow-access-from domain="yourDomainName.com"/> 
</cross-domain-policy> 

,並在加載聲音時,你這樣做:

 
private var sound:Sound = new Sound(); 
private var bufferTime:Number = 1000;// set your bufferTime here 
// the second argument sets checkPolicyFile to true 
private var context:SoundLoaderContext 
        = new SoundLoaderContext(bufferTime , true); 

//anywhere in your code 
//assuming you have defined your URLRequest variable. 
sound.load(request , context); 
相關問題