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.

scrollLeft_btn.onRelease = function() {<br />

my_txt.hscroll -= 10;<br />

scroll_txt.text = my_txt.hscroll+" of "+my_txt.maxhscroll;<br />

};<br />

scrollRight_btn.onRelease = function() {<br />

my_txt.hscroll += 10;<br />

scroll_txt.text = my_txt.hscroll+" of "+my_txt.maxhscroll;<br />

};<br />

La métho<strong>de</strong> MovieClip.getNextHighestDepth() utilisée dans cet exemple requiert Flash<br />

Player 7 ou version ultérieure. Si votre fichier SWF comporte un composant <strong>de</strong> la version 2,<br />

utilisez la classe DepthManager <strong>de</strong>s composants <strong>de</strong> la version 2 au lieu <strong>de</strong> la métho<strong>de</strong><br />

MovieClip.getNextHighestDepth().<br />

Voir également<br />

maxhscroll (propriété TextField.maxhscroll), scroll (propriété<br />

TextField.scroll)<br />

html (propriété TextField.html)<br />

public html : Boolean<br />

Indicateur qui signale si le champ texte contient une représentation HTML. Si la propriété<br />

html est true, le champ texte est un champ texte HTML. Si html est false, le champ texte<br />

n'est pas un champ texte HTML.<br />

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

Exemple<br />

L'exemple suivant crée un champ texte qui définit la propriété html sur true. Le texte au<br />

format HTML s'affiche dans le champ texte.<br />

this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160,<br />

22);<br />

my_txt.html = true;<br />

my_txt.htmlText = " this is bold text ";<br />

La métho<strong>de</strong> MovieClip.getNextHighestDepth() utilisée dans cet exemple requiert Flash<br />

Player 7 ou version ultérieure. Si votre fichier SWF comporte un composant <strong>de</strong> la version 2,<br />

utilisez la classe DepthManager <strong>de</strong>s composants <strong>de</strong> la version 2 au lieu <strong>de</strong> la métho<strong>de</strong><br />

MovieClip.getNextHighestDepth().<br />

Voir également<br />

htmlText (propriété TextField.htmlText)<br />

TextField 1229

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

Saved successfully!

Ooh no, something went wrong!