creating array of Bitmaps from loaded swf
so ive got swf, quite contains embedded video object, flv. need load in (done) goto each of frames in turn , convert said frames bitmaps, creating single, unique bitmap each frame of flv video.
crikey, how hell can this? :)
crikey, how hell can this? :)
so i've discovered that, on webpage somewhere said 'bitmapdata friend. having discovered found answer. code's bit rood, test code crudely c&p'ed heres seems broad answer own question:
private function completehandler(event:event):void
{
var mc:movieclip = movieclip(loader.content);
mc.gotoandstop(1);
var bmd1:bitmapdata = new bitmapdata(320,240);
var bm1:bitmap = new bitmap(bmd1, "auto", true);
bmd1.draw(mc);
mc.gotoandstop(1000);
var bmd2:bitmapdata = new bitmapdata(320,240);
var bm2:bitmap = new bitmap(bmd2, "auto", true);
bmd2.draw(mc);
addchild(bm1);
addchild(bm2);
bm2.y = 240;
}
private function completehandler(event:event):void
{
var mc:movieclip = movieclip(loader.content);
mc.gotoandstop(1);
var bmd1:bitmapdata = new bitmapdata(320,240);
var bm1:bitmap = new bitmap(bmd1, "auto", true);
bmd1.draw(mc);
mc.gotoandstop(1000);
var bmd2:bitmapdata = new bitmapdata(320,240);
var bm2:bitmap = new bitmap(bmd2, "auto", true);
bmd2.draw(mc);
addchild(bm1);
addchild(bm2);
bm2.y = 240;
}
More discussions in ActionScript 3
adobe
Comments
Post a Comment