RE: [Flashcoders] Attaching bitmap data to arbitary coords

2006-12-15 Thread Mike Mountain
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

RE: [Flashcoders] Attaching bitmap data to arbitary coords

2006-12-15 Thread Mike Mountain
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 =

Re: [Flashcoders] Attaching bitmap data to arbitary coords

2006-12-14 Thread John VanHorn
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

RE: [Flashcoders] Attaching bitmap data to arbitary coords

2006-12-12 Thread Mike Mountain
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

Re: [Flashcoders] Attaching bitmap data to arbitary coords

2006-12-11 Thread 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

Re: [Flashcoders] Attaching bitmap data to arbitary coords

2006-12-11 Thread Charles Parcell
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.

RE: [Flashcoders] Attaching bitmap data to arbitary coords

2006-12-07 Thread Mike Mountain
] 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