Create interactive video using Flash
Interestingly, the author attended a Party, in the recommendations of friends inspired to create an interactive video. The writer is through the application access to the video pixel color value function, the realization of the video track. In each specific "onEnterFrame" incident on the use of "draw" method, the interactive video applications. Operation results fairly successful, although in some places also needs optimizing. Author its network with the camera and film used in parallel to create Below the name "air piano" simple charming small video.
The author also on the record-flv, at all times, pay attention to Oh, that the video, three red circle is the question of access to image pixel location.
Below is the code_root.map New flash.display.BitmapData = (320, 240, true, 0);
_root.createEmptyMovieClip (\ "Fake \", 2);
_root.fake.attachBitmap (Map, 0, \ "auto \", true);
_root.fake._visible = False;
Balls = [];
For (var i = 0; i <3; i)
(
Balls _root [i] = [\ "ball \" i];
)
_root.my_video.gotoAndPlay (1);
_root.onEnterFrame = Function ()
(
Map.draw (my_video);
For (var i = 0; i <3; i)
(
Var clr = _root.map.getPixel (balls [i]. _x, Balls [i]. _y);
Balls [i]. Outclr clr =;
If (clr <12895941)
(
Balls [i]. Kill ();
)
)
);
Tags: css Video Guide






Leave a Reply