Copy link to clipboard
Copied
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);
when I add to starling, it is like this
var kmcv2:mcv2 = new mcv2(); kmcv2.x=304; kmcv2.y=208; kmcv2.width=750; kmcv2.height=382; Starling.current.nativeOverlay.addChild(kmcv2);
this code records starling stage
stage.drawToBitmapData( _bmp );
how can I handle it?
thank you.
Have something to add?