Hi guys,
je cherche à charger une webradio depuis deux domaines différents :
1/ mon swf utilise la syntaxe suivante
Ce bout de script marche en exécution locale... mais plus une fois en ligne.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 System.security.allowDomain(); System.security.loadPolicyFile("http://www.radio.com/crossdomain.xml"); var webradio:Sound = new Sound(); webradio.loadSound("http://fg.impek.tv:80", true); webradio.start(); webradio.setVolume(100); id3.text = "Radio started"; stop();
Mon fichier de sécurité locale crossdomain.xml est le suivant :
La webradio ne se lance pas... qu'ai-je oublié ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 <cross-domain-policy> <allow-access-from domain="*" to-ports="80" /> <allow-access-from domain="fg.impek.tv" to-ports="*" /> </cross-domain-policy>
Partager