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.

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

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

La largeur <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 />

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

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

La hauteur globale <strong>de</strong> la page, en points. Cette propriété n'est disponible qu'après un appel <strong>de</strong><br />

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

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

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

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

La largeur globale <strong>de</strong> la page, en points. Cette propriété n'est disponible qu'après un appel <strong>de</strong><br />

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

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

PrintJob, constructeur<br />

public PrintJob()<br />

Crée un objet PrintJob permettant d'imprimer une ou plusieurs pages.<br />

Pour implémenter une tâche d'impression, utilisez les métho<strong>de</strong>s suivantes en séquence. Vous<br />

<strong>de</strong>vez placer toutes les comman<strong>de</strong>s propres à une tâche d'impression spécifique dans la même<br />

image, <strong>du</strong> constructeur jusqu'à Delete en passant PrintJob.send(). Remplacez les<br />

paramètres [params] <strong>de</strong>s appels <strong>de</strong> la métho<strong>de</strong> my_pj.addPage() par vos paramètres<br />

personnalisés.<br />

// create PrintJob object<br />

var my_pj:PrintJob = new PrintJob();<br />

// display print dialog box, but only initiate the print job<br />

// if start returns successfully.<br />

if (my_pj.start()) {<br />

// use a variable to track successful calls to addPage<br />

var pagesToPrint:Number = 0;<br />

PrintJob 1061

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

Saved successfully!

Ooh no, something went wrong!