Hey so I'm having trouble with this :
ActionScript Code:
var rect = new Rectangle(b2.grid.x,b2.grid.y,b2.grid.width,b2.grid.height);
rect.addEventListener(MouseEvent.CLICK,test);
I have a new Object "b2". It comes from my class DrawGrid.as,
which generates a bmp, and a lot more bmps copyPixeled to it.
I'm trying to make that bmp clickable, so I made a rectangle to click on,
but its returning this error
1069
Property addEventListener not found on flash.geom.Rectangle and there is no default value.
So I was wondering why I can't add evenlistener to my rectangle or if I'm just doing something wrong.
Thanks a million.