Fantastic, don't know how I missed this.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of John VanHorn
Sent: 15 December 2006 04:33
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Attaching bitmap data to arbitary coords
http
For future search purposes here's a litlle AS3 function to clone a
snapshot of any mc into a new mc:
[as3]
//
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Point;
import flash.geom.Matrix;
//
function cloneMC(mc, padding){
var bounds:Object =
offset from the TL.
Cheers
M
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Charles Parcell
Sent: 11 December 2006 17:30
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Attaching bitmap data to arbitary coords
You can of course use
Of Charles Parcell
Sent: 11 December 2006 17:30
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Attaching bitmap data to arbitary coords
You can of course use copyPixels() as well.
http://livedocs.macromedia.com/flash/8/main/1948.html
Charles P.
On 12/11/06, Charles Parcell
Yeah, I think you are looking for the draw() method of BitmapData.
http://livedocs.macromedia.com/flash/8/main/1950.html
See the comments as well.
Charles P.
On 12/10/06, Martin Jonasson [EMAIL PROTECTED] wrote:
This is what i use in i a project of mine:
var myMatrix:Matrix = new
You can of course use copyPixels() as well.
http://livedocs.macromedia.com/flash/8/main/1948.html
Charles P.
On 12/11/06, Charles Parcell [EMAIL PROTECTED] wrote:
Yeah, I think you are looking for the draw() method of BitmapData.
] Attaching bitmap data to arbitary coords
var w=200
var h=200
holder=this.createEmptyMovieClip(bmp1,
this.getNextHighestDepth()); var bmpData1:BitmapData = new
BitmapData(w, h, true, 0x); bmp1.attachBitmap(bmpData1, 2,
auto, true);
This will attach the bitmapdata so it's top
7 matches
Mail list logo