Workarounds for setting the size of an empty display object?

You can work with the drawing api to draw shapes with extremely low alpha values, this will give you the values without being visible to the eye.

You can work with the drawing api to draw shapes with extremely low alpha values, this will give you the values without being visible to the eye. BUT Perhaps a better solution would be to register your mouse listeners on the stage from within the drawing surface sprite, and have it handle the mouse events on it's own. I don't know enough about what you are trying to do, but if possible, it would be a cleaner / simpler solution.

Even if you can't put the listeners in the drawing surface sprite, you should be able to add them to the stage from where ever you are working, rather than using an extra object.

Oops, you beat me by 10 seconds :P – Cay Aug 4 '09 at 21:26 I need local coordinates. The drawing surface is effectively acting as a boundary so the user can only draw in a specific location above the image. – Soviut Aug 4 '09 at 21:34.

If you only need the limits for your drawing, I think the easiest solution would be listening for the stage mouse events, and programaticaly limit your drawing... If you still think you need that transparent sprite, you can draw a transparent rectangle (beginFill(0, 0)) or create a transparent bitmap (new BitmapData(width,height,true,0)). Not sure which would be the "best practice"....

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions