flash交互式视频

flash交互式视频下载地址:http://download1.csdn.net/down3/20070514/14191400454.swf

代码:
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[i] = _root[/"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 ();
}
}
};

你可能感兴趣的:(flash交互式视频)