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.

■ Si les variables ne sont pas déclarées dans un bloc et que la liste d'action actuelle n'a pas été<br />

exécutée à l'ai<strong>de</strong> <strong>de</strong> l'action call(), les variables sont interprétées en tant que variables <strong>de</strong><br />

scénario.<br />

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

Paramètres<br />

frame:Object - L'étiquette ou le numéro d'une image dans le scénario.<br />

Voir également<br />

Instruction function, call (métho<strong>de</strong> Function.call)<br />

Fonction chr<br />

chr(number:Number) : String<br />

Déconseillée à partir <strong>de</strong> Flash Player 5. Il est recommandé d'utiliser la métho<strong>de</strong><br />

String.fromCharCo<strong>de</strong>().<br />

Convertit les numéros <strong>de</strong> co<strong>de</strong> ASCII en caractères.<br />

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

Paramètres<br />

number:Number - Un numéro <strong>de</strong> co<strong>de</strong> ASCII.<br />

Renvoie<br />

String - La valeur <strong>de</strong> caractère <strong>du</strong> co<strong>de</strong> ASCII spécifié.<br />

Exemple<br />

L'exemple suivant convertit le nombre 65 en lettre A et l'affecte à la variable myVar : myVar =<br />

chr(65);<br />

Voir également<br />

fromCharCo<strong>de</strong> (métho<strong>de</strong> String.fromCharCo<strong>de</strong>)<br />

Fonction clearInterval<br />

clearInterval(intervalID:Number) : Void<br />

Arrête l'appel setInterval().<br />

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

52 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!