Comunidad de diseño web y desarrollo en internet online

detencion de movimiento para dos Clip de Peliculas

Citar            
MensajeEscrito el 21 Oct 2008 10:00 pm
Hola, :wink:
estoy desarrollando una aplicacion parecida a eso de Wii......
[url] http://rapidshare.com/files/156282515/lorena.rar.html [/url]
como hago para montar otro cilp de pelicula, el cual genera una animacion sin sonido, como el que se ve en el ejemplo que monte.....

es decir que pueda husar el impact y otro impact1
donde en este caso impact es un circulo rojo y impact1 sea cualquier cosa

GRACIAS........

:D :D :wink: :wink: ^^ ^^

Por lorenaFLASH

45 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Oct 2008 10:04 pm
No postees un link a tu flash, sino un link a tu página colgada en internet y de ser posible el código que utilizas y explica mejor cual es tu duda o problema.

Por elchininet

Claber

3921 de clabLevel

17 tutoriales

Genero:Masculino  

Front-end developer at Booking.com

firefox
Citar            
MensajeEscrito el 21 Oct 2008 10:12 pm
Grancias por la pronto respuesta...... por otra parte no tengo web.....
y el codigo es

Código :


 import flash.display.*;
import flash.geom.*;
cam = Camera.get();
vid.attachVideo(cam);
now = new BitmapData(cam.width, cam.height);
before = new BitmapData(cam.width, cam.height);
rect = new Rectangle(0, 0, cam.width, cam.height);
pt = new Point(0,0);
_onEnterFrame = function ()
{
   if (!cam.muted) 
      {
         now.draw(vid);
         now.draw(before, new Matrix(), new ColorTransform(), 'difference');
         now.threshold(now, rect, pt, '>', 0xff111111, 0xffffffff);
         before.draw(vid);
         var val = now.getPixel(impact._x, impact._y);
         if (val>10000000)
            {
               tt.text = "LORENA JAJAJA";
               impact._alpha = 100;
               my_sound.start();
            }
         else 
            {
               impact._alpha = 100;
               tt.text = "...";
            }
      }
};

inter = setInterval(this, "_onEnterFrame", 50);
var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc.attachBitmap(now, 10);
mc._visible = true;
mc._x = 160;
this.attachMovie("impact", "impact", this.getNextHighestDepth(), {_x:100, _y:10});
var my_sound:Sound = new Sound(this);
my_sound.attachSound("bip");
my_sound.setVolume(100);

Por lorenaFLASH

45 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Oct 2008 10:56 pm
si te entendi es esto ....

Código :

import flash.display.*;
import flash.geom.*;
cam = Camera.get();
vid.attachVideo(cam);
now = new BitmapData(cam.width, cam.height);
before = new BitmapData(cam.width, cam.height);
rect = new Rectangle(0, 0, cam.width, cam.height);
pt = new Point(0, 0);
_onEnterFrame = function () {
if (!cam.muted) {
now.draw(vid);
now.draw(before, new Matrix(), new ColorTransform(), 'difference');
now.threshold(now, rect, pt, '>', 0xff111111, 0xffffffff);
before.draw(vid);
var val = now.getPixel(impact._x, impact._y);
var val2 = now.getPixel(impact2._x, impact2._y);
if (val>10000000 || val2>10000000) {
tt.text = "LORENA JAJAJA";
impact._alpha = 20;
impact2._alpha = 20;
my_sound.start();
} else {
impact._alpha = 100;
impact2._alpha = 100;
tt.text = "...";
}
}
};
inter = setInterval(this, "_onEnterFrame", 50);
var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc.attachBitmap(now, 10);
mc._visible = false;
mc._x = 160;
this.attachMovie("impact", "impact", this.getNextHighestDepth(), {_x:10, _y:10});
impact.duplicateMovieClip("impact2", 25, {_x:130});
var my_sound:Sound = new Sound(this);
my_sound.attachSound("bip");
my_sound.setVolume(10);
this.onMouseDown = function() {
mc._visible = !mc._visible;
};


oye tueres LOERNA FLASH .... por algun arazon estudias en LA Univ. EAFIT de Medellin

Por cristinanime

0 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Oct 2008 11:00 pm
Graicas....es algo parecido pero no es lo que busco... pero en este caso impact1 es otra animacion mayor un fotograma.... es decir una animacion con mas de un fotograma....

SI soy de la EAFIT..... te conosco???

Por lorenaFLASH

45 de clabLevel



 

firefox
Citar            
MensajeEscrito el 21 Oct 2008 11:00 pm
en tu caso es impac2 perdon

Por lorenaFLASH

45 de clabLevel



 

firefox
Citar            
MensajeEscrito el 22 Oct 2008 09:43 pm
lorena, no entiendo lo que deseas hacer, según tu código capturas la imagen de la webcam y tratas de chequear si la imagen toca un movieClip en la escena, es esto?

Explica bien que tienes hecho hasta ahora y que deseas hacer.

Por elchininet

Claber

3921 de clabLevel

17 tutoriales

Genero:Masculino  

Front-end developer at Booking.com

firefox
Citar            
MensajeEscrito el 23 Oct 2008 01:04 pm
Gracias..... Ya lo Resolvi..... Una de las mejores experiencias es saber que uno lo Resuelve!!!!!

Gracias :) :) :) :)

Por lorenaFLASH

45 de clabLevel



 

firefox

 

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