myBitmapData.draw();

Hi,
could someone point me how can i move my bitmap, to for example x:100, y:100 ? i tried everything, and i cant do such an easy thing :confused: my head hurts from thinking and searchingā€¦
my code:

ActionScript Code:
[LEFT][COLOR=#000000]**var**[/COLOR] Bmp:BitmapData = [COLOR=#000000]**new**[/COLOR] BitmapData[COLOR=#000000]([/COLOR][COLOR=#000080]390[/COLOR], [COLOR=#000080]540[/COLOR], [COLOR=#000000]**true**[/COLOR], 0xFF000000[COLOR=#000000])[/COLOR];

[COLOR=#000000]var[/COLOR] clip = [COLOR=#0000FF]this[/COLOR].[COLOR=#0000FF]createEmptyMovieClip[/COLOR][COLOR=#000000]([/COLOR][COLOR=#FF0000]ā€œpā€[/COLOR], [COLOR=#000080]1[/COLOR][COLOR=#000000])[/COLOR];
clip.[COLOR=#0000FF]_x[/COLOR]=[COLOR=#000080]92[/COLOR];
clip.[COLOR=#0000FF]_y[/COLOR]=[COLOR=#000080]80[/COLOR];
clip.[COLOR=#000080]attachBitmap[/COLOR][COLOR=#000000]([/COLOR]Bmp, [COLOR=#000080]clip[/COLOR].[COLOR=#0000FF]getNextHighestDepth[/COLOR]COLOR=#000000[/COLOR], auto, [COLOR=#000000]true[/COLOR][COLOR=#000000])[/COLOR];
Bmp.[COLOR=#000080]draw[/COLOR]COLOR=#000000[/COLOR];
[/LEFT]

i have tried many things, like draw(mc, mymatrix) with translate properity, clip._x /_y, but everything dont want to work, always some wierd clipping occursā€¦

please help and sorry for my poor english.

Ah yes I have this problem too.

It seems bitmapData only draws right and down from the registration point of the source movie clip, so if theres any graphics in the negative quadrants it doenst draw, but gets clippedā€¦

Id also love to know how to get around this

i think its should be some combination of matrix tx & ty and position of clip mc, but i cant really figure it out.

ye me neither, i tried messing around with the matrix stuff but to no availā€¦

anyone got any advice?

bump :wink:

bmd.scroll(x,y)

its not working as it should i think, bitmapdata object is still created at x:0 y:0, only its content are moved by some x/y from scroll functionā€¦


var myMatrix:Matrix = new Matrix();
myMatrix.translate(100, 100);
var clip:MovieClip = this.createEmptyMovieClip("p", 1);
var Bmp:BitmapData = new BitmapData(200, 200, true, 0xFFFF00FF);
clip.attachBitmap(Bmp, clip.getNextHighestDepth(), auto, true);
Bmp.draw(mc, myMatrix);

i think its something with matrix but cant really get it to work :frowning:

please help