Welcome Guest [Log In] [Register]
Welcome to Brackenwood. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
beginBitmapFill (again)
Topic Started: Mar 13 2006, 02:15 AM (186 Views)
Krob
Brackenwood Lightweight
Code:
 

import flash.display.BitmapData;
import flash.geom.Matrix;

var bmp:BitmapData;

var matrix:Matrix;


matrix = new Matrix();
 
bmp = BitmapData.loadBitmap("textuur");


this.beginBitmapFill(bmp, matrix, true, true);
trace(bmp instanceof BitmapData);


when i do this, nothing happens

when i put

this.attachBitmap(bmp) it draws the bitmap, but i cant apply matrix stuff on it :-/

how would i do this? :worry:
Offline Profile Quote Post Goto Top
 
flash_bass
Member Avatar
Brackenwood Lightweight
Krob
Mar 13 2006, 02:15 AM
trace(bmp instanceof BitmapData);


im not sure what this code does but would it have anything to do with this line
Offline Profile Quote Post Goto Top
 
Vector
Member Avatar
Resident Actionscript Guru ♂
Admin
@ Flash_Bass
That line of code, trace(bmp instanceof BitmapData);, checks to see if the variable called "bmp" is that type of object (in this case a BitmapData object). It'll give you a true or false value.

@ Krob
I'd help you out, but I'm er not really sure what you're trying to achieve. Are you sure that the fact that you haven't defined the matrix doesn't have anything to do with your problem?
Offline Profile Quote Post Goto Top
 
Krob
Brackenwood Lightweight
i thought that if i make a new matrix that it automatically makes a standard matrix
-> (a=1, b=0, c=0, d=1, tx=0, ty=0)

and that i wouldnt be a problem with that matrix :-/
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Actionscript · Next Topic »
Add Reply