Bonjour, 
je manilpue actuellement un hyperlien (que je "draggue" dans mon application). Alors voila, j'arrive a obtenir le lien (url) avec la variable : 
	
	1 2
   | if (event.clipboard.hasFormat(ClipboardFormats.URL_FORMAT){
	                var droppedUrl:String = event.clipboard.getData(ClipboardFormats.URL_FORMAT) as String; | 
 Le soucis c'est que j'aimerais obtenir le texte du lien hypertext 
ex un lien "home" redirige vers "http://home.com", et bien je voudrais obtenir "home" mais je n'obtiens que "http://home.com". 
Comme le Clipboard a 2 format (un URL et un TEXT) j'ai pense qu en recuperant le texte je recupererais ce que je voudrais, mais non, 
	
	event.clipboard.getData(ClipboardFormats.TEXT_FORMAT) as String;
  renvoit aussi l url ("http://...")
Quelqu'un saurait-il comment faire ? 
Merci d'avance !!!
						
					
Partager