Hey Olli,
One way to do it without using movieclips is to create an off screen
buffer image the size of the stage and draw your rectangle to it at the
proper location.
If you clear the buffer black and draw a white rectangle to it, you can
then test the coord to see if it's not black.
James O'Reilly — Consultant
Adobe Certified Flash Expert
http://www.jamesor.com
Design • Code • Train
Oliver Müller wrote:
Hi all,
I'm looking for a mathematic way to check if a point resides within a
rectangle.
The rectangle is not parallel to the axes, instead its rotating all the
time.
It's not a movieclip so hitTest is out of the question.
Any suggestions how I could solve this problem ?
cheers,
olli
_______________________________________________
[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