how to export my movieclip (contains action script, mask,animation path) for stage.starling

New Here ,
Jan 04, 2021 Jan 04, 2021

Copy link to clipboard

Copied

hello,
I have an project, it records stage as a video. but it crahes everytime because of using "draw()", I think. Then I start to use starling.In starling  "drawtobitmapdata" really does not crash anymore .But this time my movieclip ( embedded video inside, contains actionscrip inside, loading mage and a mask for image and used for its bounds, height,width, angle and follows an animation path according to video) is problem. my movieclip stays at native overlay stage, and I can not record it. because it does not belong starling stage.then, when I create texture atlas, no addition containing inside(codes  not worked)
 
my movieclip like this,
 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.

TOPICS
ActionScript, Code, How to, Import and export, Performance

Views

223

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation