Comunidad de diseño web y desarrollo en internet online

impresion de 1 pagina y 1 copia

Citar            
MensajeEscrito el 12 Sep 2007 03:04 am
stop();
cerebro();
myBtn_btn.onRelease = function(){
print("", "bmovie");

loadMovieNum("/home.swf", 0);

};

Hola a todos ........ :o tengo un problemilla tengo este codigo pero necesito que se imprima 1 pagina y 1 copia alguien me puede ayudar.........................???

Por Lila03

3 de clabLevel



Genero:Femenino  

msie
Citar            
MensajeEscrito el 12 Sep 2007 03:28 am

Ayuda de Flash escribió:


PrintJob, constructor
public PrintJob()

Crea un objeto PrintJob que puede utilizar para imprimir una o varias páginas.

Para implementar un trabajo de impresión, utilice los siguientes métodos en el orden indicado. Debe colocar todos los comandos relativos a un trabajo de impresión concreto en el mismo fotograma, desde el constructor a través de PrintJob.send() y eliminar. Reemplace los [params] de las llamadas al método my_pj.addPage() por sus parámetros personalizados.

Código :

// create PrintJob object
var my_pj:PrintJob = new PrintJob();

// display print dialog box, but only initiate the print job
// if start returns successfully.
if (my_pj.start()) {

    // use a variable to track successful calls to addPage
    var pagesToPrint:Number = 0;

    // add specified area to print job
    // repeat once for each page to be printed
    if (my_pj.addPage([params])) {
    pagesToPrint++;
    }
    if (my_pj.addPage([params])) {
    pagesToPrint++;
    }
    if (my_pj.addPage([params])) {
    pagesToPrint++;
    }

    // send pages from the spooler to the printer, but only if one or more
    // calls to addPage() was successful. You should always check for successful 
    // calls to start() and addPage() before calling send().
    if (pagesToPrint > 0) {
    my_pj.send();  // print page(s)
    }
}

// clean up
delete my_pj;  // delete object

No puede crear un segundo objeto PrintJob mientras el primero continúa activo. No puede crear un segundo objeto PrintJob (llamando a new PrintJob()); mientras continúe activo el primer objeto PrintJob, el segundo objeto PrintJob no se creará.

Disponibilidad: ActionScript 1.0; Flash Player 7

Espero que esto te sirva

Por The Fricky!

Presidente

6168 de clabLevel

3 tutoriales
8 articulos

Genero:Masculino   Bastard Operators From Hell Héroes

Piccola Venezia...

firefox
Citar            
MensajeEscrito el 12 Sep 2007 08:38 pm
Gracias :oops: por contestar¡¡¡
pero lo pude resolver asi

stop();

cerebro();

myBtn_btn.onRelease = function(){

// printNum(0, "bframe");

print(this._parent.plano, "bframe");

};

lo pongo por si alguien tiene el mismo problema :D

Por Lila03

3 de clabLevel



Genero:Femenino  

msie

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.