You can of course use copyPixels() as well.

http://livedocs.macromedia.com/flash/8/main/00001948.html

Charles P.


On 12/11/06, Charles Parcell <[EMAIL PROTECTED]> wrote:

Yeah, I think you are looking for the draw() method of BitmapData.

http://livedocs.macromedia.com/flash/8/main/00001950.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 Matrix();
> myMatrix.rotate(clip._rotation * 0.0174532925199433);
> var translateMatrix:Matrix = new Matrix();
> translateMatrix.translate(clip._x, clip._y);
> myMatrix.concat(translateMatrix);
> myBitmapData2.draw(clip, myMatrix)
>
> (this is stolen straight from my code, with nothing added to make it
> more understandable, but it should be rather self explanatory)
>
>
> Mike Mountain skrev:
> > Consider the following, Flash 8:
> >
> > var w=200
> > var h=200
> > holder=this.createEmptyMovieClip ("bmp1", this.getNextHighestDepth());
> > var bmpData1:BitmapData = new BitmapData(w, h, true, 0xFFFF0000);
> > bmp1.attachBitmap(bmpData1, 2, "auto", true);
> >
> > This will attach the bitmapdata so it's top left is situated at the
> reg
> > point of the mc, how do I attach it, or later move it so the reg point
> > of the MC is situated at any point I wish, without using nested MC's?
> >
> > The problem being I want to make an exact bitmap copy of the contents
> of
> > an MC, which could have it reg point set anywhere - and I want the new
> > copy to inherit the same registration point, but like I said before -
> > without having to resort to nested MC's - surely this is possible and
> > I'm missing something blindingly obvious?
> >
> > Cheers
> >
> > M
> >
> > _______________________________________________
> > [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
>


_______________________________________________
[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

Reply via email to