sure... say you have a movie clip named contentMc, with the reg point in the center. that would mean that the upper left most content within that movie clip would have a negative _x and _y, say -50,-50. if you use: bmpObject.draw(contentMc), it will only draw a bitmap starting at 0,0....so you would only get the content in the bottom right quadrant of contentMc.
one of the params you can pass the draw() method is a transformation matrix. so if you used: bmpObject.draw(contentMc, new Matrix(1,0,0,1,50,50)); it would start drawing the bitmap from -50,-50 within contentMc. the last 2 params of the matrix are the amount of offset. On 7/20/06, jim <[EMAIL PROTECTED]> wrote:
Im interested, do you have a quick example of this. Jim -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John VanHorn Sent: 19 July 2006 15:29 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Re: BitmapData.draw() peculiarity ok, luckily a friend had an answer for me. if any body is curious, you can offset the negative space by passing a transformation matrix as a param to the draw() method. On 7/18/06, John VanHorn <[EMAIL PROTECTED]> wrote: > > has anyone tried to use the BitmapData.draw() method to draw a movieclip > that has content in the negative coordinate space? it seems like no matter > what i do, i can only get the draw() method to start from the point 0,0 in a > movie clip, when i need it to start at say -20,-20. even passing the > clipRect param to the method does not do what you would expect. am i missing > something here? > > any solutions or workarounds would be appreciated. > > -- > John Van Horn > [EMAIL PROTECTED] > -- John Van Horn [EMAIL PROTECTED] _______________________________________________ Flashcoders@chattyfig.figleaf.com 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 _______________________________________________ Flashcoders@chattyfig.figleaf.com 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
-- John Van Horn [EMAIL PROTECTED] _______________________________________________ Flashcoders@chattyfig.figleaf.com 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