03.07.2013 Views

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

Guide de reference du langage ActionScript 2.0 - PowWeb

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

error_txt.con<strong>de</strong>nseWhite = false<br />

...<br />

error_txt.maxscroll = 1<br />

error_txt.scroll = 1<br />

*/<br />

Fonction unescape<br />

unescape(string:String) : String<br />

Evalue le paramètre x en tant que chaîne, déco<strong>de</strong> la chaîne qui est au format codé en URL (en<br />

convertissant toutes les séquences hexadécimales en caractères ASCII) et renvoie la chaîne.<br />

Disponibilité : Flash Player 5 ; <strong>ActionScript</strong> 1.0<br />

Paramètres<br />

string:String - Une chaîne comportant <strong>de</strong>s séquences d'échappement hexadécimales.<br />

Renvoie<br />

String - Une chaîne décodée à partir d'un paramètre codé au format URL.<br />

Exemple<br />

L'exemple suivant illustre le processus <strong>de</strong> conversion escape/unescape :<br />

var email:String = "user@somedomain.com";<br />

trace(email);<br />

var escapedEmail:String = escape(email);<br />

trace(escapedEmail);<br />

var unescapedEmail:String = unescape(escapedEmail);<br />

trace(unescapedEmail);<br />

Le résultat suivant s'affiche dans le panneau <strong>de</strong> sortie.<br />

user@somedomain.com<br />

user%40somedomain%2Ecom<br />

user@somedomain.com<br />

Fonction unloadMovie<br />

unloadMovie(target:MovieClip) : Void<br />

unloadMovie(target:String) : Void<br />

Supprime le clip qui a été chargé par l'intermédiaire <strong>de</strong> la fonction loadMovie() <strong>de</strong> Flash<br />

Player. Pour décharger un clip chargé avec loadMovieNum(), utilisez unloadMovieNum() au<br />

lieu <strong>de</strong> unloadMovie().<br />

Disponibilité : Flash Player 3 ; <strong>ActionScript</strong> 1.0<br />

114 Chapitre 1: Eléments <strong>du</strong> <strong>langage</strong> <strong>ActionScript</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!