Boujour, je cherche a recuperer l'url de ma page courante avec ce petit programme :
Mon problème est que cela m'affiche l'url du fichier swf. Est-il possible de récuperer l'url du fichier html?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ private function getURL() : String { return(mx.core.Application.application.url); } ]]> </mx:Script> <mx:Label x="358" y="208" text="{getURL()}" width="352" height="73"/> </mx:Application>
Merci d'avance.
Partager