Jump to content
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

problème avec UrlLoader

Featured Replies

Bonjour,

j'essaye de récupérer un texte sur une url avec urlloader. Mon code est le suivant :

//Click on the button

public function Envoyer():void

{

AmazonService = new URLLoader();

AmazonService.dataFormat = URLLoaderDataFormat.TEXT;

AmazonService.addEventListener(Event.COMPLETE, AmazonCompleteHandler);

AmazonService.load(new URLRequest("http://joomla-world.123.fr/ami.php"));

}

private function AmazonCompleteHandler(event:Event):void{

ResultLabel = AmazonService.data

}

ce code me génère l'erreur suivante :

Error #2044: securityError non pris en charge : text=Error #2048: Violation de la sécurité Sandbox : file:///C:/Users/admin/Documents/Flex Builder 3_afterMaven/RunMyServer/bin-debug/RunMyServer.swf ne peut pas charger de données à partir de http://joomla-world.123.fr/ami.php.

at RunMyServer/Envoyer()[C:\Users\admin\Documents\Flex Builder 3_afterMaven\RunMyServer\src\RunMyServer.mxml:18]

at RunMyServer/___RunMyServer_Button1_click()[C:\Users\admin\Documents\Flex Builder 3_afterMaven\RunMyServer\src\RunMyServer.mxml:46]

Alors qu'il n'y a aucun contrôle d'accès sur la page http://joomla-world.123.fr/ami.php (vous pouvez vérifier)

Je n'ai pas encore fait joujou avec Flash/Flex/AIR pour le moment, mais à juger du message qui t'es retourné, le problème de sécurité en question n'est pas dû au serveur sur 123.fr mais à la politique de sécurité par défaut du SWF. Si tu le mets sur le serveur puis que tu le visites, est-ce que ça marche ?

Je ne peux pas t'aider plus que ça par contre. Regarde comment la sandbox est gérée au niveau de la machine virtuelle qui exécute ton code.

Archived

This topic is now archived and is closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.