Skip to main content
Known Participant
August 19, 2011
Question

How move Stage content to a MC?

  • August 19, 2011
  • 1 reply
  • 382 views

Is there anyway that I can save what I'm seeing on the screen to a MC in order to manipulate it?

I thought that

var holderThumb:MovieClip = new MovieClip()
holderThumb.addChild(stage.stage)

will work but hung's...

What I need is take a Big Landscape picture and handle (already done) (Scale/Move/etc) but then I need to keep just the portion of image showed in screen. Any ideas?

Thak you

This topic has been closed for replies.

1 reply

Known Participant
August 19, 2011

Ok I answer myself again:

Stage cannot be passed toa MC directly, you need to define a DATA, Bitmap and MovieClip Variables

var bitmap:Bitmap = new Bitmap();                         // to convert BitmapData to graphic

var holderThumb:MovieClip = new MovieClip()          // para contener el MC
var bitmapData:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight); // to capture screen

bitmapData.draw(stage);  // Capture Stage (screen)
bitmap.bitmapData = bitmapData; // conviert to graphic
holderThumb.addChild(bitmap)   // pass to a MC

If anybody needs.

Bye