Como hacer un fondo infinito
Hay veces que necesitamos que una imagen de fondo corra indefinidamente en bucle.
La primera solución a la que llegamos la mayoría es duplicar el fondo y monitorear el movimiento para saber donde posicionarlo correctamente.
El problema con esto es que debemos de hacer varias comparaciones en el ciclo donde actualizamos la posición del fondo, además que si el fondo es muy grande, Flash tendría que manejar un objeto gráfico grande incluso cuando la mayoría de éste se encuentre fuera de la pantalla.
Eso es mucho fondo para nuestro pequeño stage.
La manera de evitar esto es con algunos trucos de copiado de bitmaps.
Read more >>
Looping a background efficiently and easier with as3
Sometimes we need to have a seamless background running behind our game or site infinitely.
The first solution most of us figure out is to duplicate the background and check when it goes out of the screen to position it correctly.
The problem with this is that we must make some comparisons in the loop where we update the background position, besides if the background is really big, Flash would have to manage a large graphic object even if most of it is outside the screen.
That's a lot of background for our little stage.
The way we can avoid this is using some Bitmap copying tricks.
Read more >>
Tomar fotos de una webcam y arrastrarlas
En está entrada explicaré como hacer funcionar una webcam dentro de flash, tomar fotos y poder arrastrarlas por el stage (drag and drop).

Al final del tutorial tendremos algo como esto:
TweetFiles
- January 2013 (2)
- October 2012 (1)
- July 2012 (2)
- June 2012 (2)
- May 2012 (2)
- February 2012 (4)
- December 2011 (4)
- September 2011 (4)
- May 2011 (4)
- April 2011 (1)
- March 2011 (2)
- January 2011 (1)
- December 2010 (13)
- September 2010 (1)
- June 2010 (2)
- May 2010 (1)
- April 2010 (11)
- March 2010 (10)
- February 2010 (1)




