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.

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

public maxscroll : Number [lecture seule]<br />

Indique la valeur maximale <strong>de</strong> TextField.scroll.<br />

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

Exemple<br />

L'exemple suivant définit la valeur maximale <strong>du</strong> champ texte à défilement my_txt. Créez <strong>de</strong>ux<br />

boutons, scrollUp_btn et scrollDown_btn, pour faire défiler le champ texte Ajoutez à<br />

votre fichier FLA ou AS le co<strong>de</strong> <strong>ActionScript</strong> suivant.<br />

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

20);<br />

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

240);<br />

my_txt.multiline = true;<br />

my_txt.wordWrap = true;<br />

for (var i = 0; i

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

Saved successfully!

Ooh no, something went wrong!