actionscript 3 - Extract bitmap (or bitmapdata) from Shape -


i got swf has simplebuttons in stage, , need bitmap or bitmapdata information button states.

when load symbol, seems no matter composes button states, shapes, @ least that's in expression panel.

so, how can bitmap or bmpdata shape?.

thanks.

you can use bitmapdata#draw() bitmapdata displayobject. bitmapdata raster, aware lose features of vector shape

var bd:bitmapdata = new bitmapdata( shape.width, shape.height ); bd.draw( shape ); 

Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -