Skip to main content
Participating Frequently
January 4, 2021
Question

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

  • January 4, 2021
  • 0 replies
  • 308 views
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.

This topic has been closed for replies.