how can I add display.movieclip(include as3 inside and embedded video, means lots of video frames) to starling?

203 Views Asked by At

I created a movieclip, I imported a video inside it ,as3 code that loads an image, and animate that image on the video.I use as3 codes like below

 import flash.filesystem.File;
 import flash.filesystem.FileMode;
 import flash.filesystem.FileStream;

 var imgLoader:Loader = new Loader();  
 imgLoader.load(new URLRequest(File.applicationStorageDirectory.resolvePath("imagem.jpeg").url));  
 imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,imageLoaded1);

because of performence issues, I choose Starling to record that movieclip. and I use below code for that,

var kmcv2:mcv2 = new mcv2();
kmcv2.x=304;
kmcv2.y=208;
kmcv2.width=750;
kmcv2.height=382;
        Starling.current.nativeOverlay.addChild(kmcv2);

but this code does not record it, because my movieclip is on the top.

      stage.drawToBitmapData( _bmp );

how can I handle it?

thank you.

0

There are 0 best solutions below