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.

La propriété tabIn<strong>de</strong>x peut être un entier positif. Les objets sont triés selon leurs propriétés<br />

tabIn<strong>de</strong>x, par ordre croissant. Un objet ayant une valeur tabIn<strong>de</strong>x <strong>de</strong> 1 précè<strong>de</strong> un objet<br />

tabIn<strong>de</strong>x d'une valeur <strong>de</strong> 2. L'ordre <strong>de</strong> tabulation personnalisé ignore les relations<br />

hiérarchiques <strong>de</strong>s objets contenus dans un fichier SWF. Tous les objets <strong>du</strong> fichier SWF dotés<br />

<strong>de</strong> propriétés tabIn<strong>de</strong>x sont placés dans l'ordre <strong>de</strong> tabulation. N'appliquez pas la même<br />

valeur tabIn<strong>de</strong>x à plusieurs objets.<br />

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

Exemple<br />

Le co<strong>de</strong> <strong>ActionScript</strong> suivant met en place un ordre <strong>de</strong> tabulation personnalisé pour trois<br />

occurrences <strong>de</strong> clip.<br />

myMC1_mc.onRelease = function() {};<br />

myMC2_mc.onRelease = function() {};<br />

myMC3_mc.onRelease = function() {};<br />

myMC1_mc.tabIn<strong>de</strong>x = 2;<br />

myMC2_mc.tabIn<strong>de</strong>x = 1;<br />

myMC3_mc.tabIn<strong>de</strong>x = 3;<br />

Voir également<br />

tabIn<strong>de</strong>x (propriété Button.tabIn<strong>de</strong>x), tabIn<strong>de</strong>x (propriété<br />

TextField.tabIn<strong>de</strong>x)<br />

_target (propriété MovieClip._target)<br />

public _target : Chaîne [lecture seule]<br />

Renvoie le chemin cible <strong>de</strong> l'occurrence <strong>de</strong> clip, en notation avec barre oblique. Utilisez la<br />

fonction eval() pour convertir le chemin cible en notation avec point.<br />

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

Exemple<br />

L'exemple suivant affiche les chemins cibles <strong>de</strong>s occurrences <strong>de</strong> clip dans un fichier SWF, en<br />

notation à barre oblique aussi bien que point.<br />

for (var i in this) {<br />

if (typeof (this[i]) == "movieclip") {<br />

trace("name: " + this[i]._name + ",\t target: " + this[i]._target + ",\t<br />

target(2):"<br />

+ eval(this[i]._target));<br />

}<br />

}<br />

MovieClip 967

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

Saved successfully!

Ooh no, something went wrong!