Comunidad de diseño web y desarrollo en internet online

problema con captura de pantalla

Citar            
MensajeEscrito el 25 Nov 2010 08:41 am
Hola amigos de cristalab lleva ya un tiempo dandole vueltas a este codigo

Código ActionScript :

function capture(nr)
{
   
   
   snapshot = new BitmapData(950, 520);
   //draw the current state of the Video object into 
   //the bitmap object with no transformations applied
   snapshot.draw(_root ,new Matrix());
   
   var t:MovieClip = createEmptyMovieClip("bitmap_mc", 0);
   t._x = 0;
   t._y = 0;
   t._xscale = t._yscale = 100;
   //display the specified bitmap object inside the movie clip
   t.attachBitmap(snapshot,1);
   var filterArray = new Array(myFilters[nr]);
   t.filters = filterArray;
   attachMovie("print_but","bot",100,{_x:t._x + t._width -450, _y:t._y + t._height / 2});
   
   
}


el tema es que necesito hacer una captura de pantalla de mi swf y luego enviarla al servidor con php. Funciona bien pero tarda muchisimo, evidentemente si hago la captura del _root mas pequeña, aqui es de 950*520px, va mas rapido. He probado a redimensionarla mediante AS pero tarda lo mismo, solo tarda menos, si le cambio las parametros que antes mencione. No se necesito alguna opinion de como podria hacer para que tarde menos. Gracias de antemano.

Por hachedocho

16 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 25 Nov 2010 01:26 pm

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 25 Nov 2010 01:35 pm
ok jorge muchas gracias ya no me da tiempo a probarlo ya que termino de currar pero mañana a las 7am lo pruebo del tiron a ver que pasa por lo pronto veo que la parte flash es AS3 y yo estoy utilizando AS2 pero mirare la parte php a ver que pasa muchas gracias de nuevo!

Por hachedocho

16 de clabLevel



Genero:Masculino  

firefox
Citar            
MensajeEscrito el 25 Nov 2010 01:41 pm
Nop, es AS2

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 25 Nov 2010 01:51 pm
Pues entonces estupendo la verdad que tiene muy muy buena pinta muchas gracias mañana te digo algo

Por hachedocho

16 de clabLevel



Genero:Masculino  

firefox

 

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