Cheers Muzak and Sherif - thanks for all your help.
I am just leaving work now, but I am going to try this at home that
now at home.
Cheers
Steve
On 23 Apr 2007, at 16:20, Muzak wrote:
The following will create a copy of "graphics_mc" and draw it in a
new movieclip "graphicsCopy_mc"
import flash.display.BitmapData;
var graphics_mc:MovieClip;
var bmp:BitmapData = new BitmapData(graphics_mc._width,
graphics_mc._height, true, 0);
bmp.draw(graphics_mc);
var bmp_mc:MovieClip = this.createEmptyMovieClip("graphicsCopy_mc",
this.getNextHighestDepth());
bmp_mc._x = graphics_mc._width + 100;
bmp_mc.attachBitmap(bmp, bmp_mc.getNextHighestDepth());
If you want to alter the BitmapData, look into:
BitmapData (flash.display.BitmapData)
ColorTransform (flash.geom.ColorTransform)
Matrix (flash.geom.Matrix)
Rectangle (flash.geom.Rectangle)
Transform (flash.geom.Transform)
all the filters under flash.filters.*
There's plenty of samples in the docs.
regards,
Muzak
----- Original Message -----
From: "Stephen Matthews" <[EMAIL PROTECTED]>
To: "[email protected]"
<[email protected]>
Sent: Monday, April 23, 2007 3:24 PM
Subject: [Flashcoders] Grabbing cached Bitmaps and using creating
newBitmapData objects from
Hello,
I am trying to use the cachedBitmap data of a movieClip which has
bitmaps text and graphics in it.
I want to create a new bitmapData object and attach it from the
cached BitmapData so that I can do things with it at a bitmap
level leaving the original intact.
I am having a little trouble. This is where you guys come in.
Thanks
Gingerman
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com