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.

}<br />

}<br />

}<br />

}<br />

}<br />

}<br />

}<br />

dance_mc._yscale = 50;<br />

if (my_pj.addPage("dance_mc",<br />

{xMin:0,xMax:400,yMin:0,yMax:600},null, 3)){<br />

pageCount++;<br />

}<br />

dance_mc._xscale = x;<br />

dance_mc._yscale = y;<br />

// If addPage() was successful at least once, print the spooled pages.<br />

if (pageCount > 0){<br />

my_pj.send();<br />

}<br />

<strong>de</strong>lete my_pj;<br />

Voir également<br />

send (métho<strong>de</strong> PrintJob.send), start (métho<strong>de</strong> PrintJob.start)<br />

orientation (PrintJob.orientation, propriété)<br />

orientation publique : String [lecture seule]<br />

Orientation <strong>de</strong> l'image pour l'impression. Cette propriété peut être soit "landscape", soit<br />

"portrait". Cette propriété n'est disponible qu'après un appel <strong>de</strong> la métho<strong>de</strong><br />

PrintJob.start().<br />

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

pageHeight (propriété PrintJob.pageHeight)<br />

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

La hauteur <strong>de</strong> la zone imprimable réelle <strong>de</strong> la page, en points. Les marges éventuellement<br />

définies par l'utilisateur sont ignorées. Cette propriété n'est disponible qu'après un appel <strong>de</strong> la<br />

métho<strong>de</strong> PrintJob.start().<br />

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

1060 Chapitre 2: Classes <strong>ActionScript</strong>

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

Saved successfully!

Ooh no, something went wrong!