Surely - by Pythagoras

w2 = square root of (width - x)^2 + (x2 - x)^2

Also might help to know the _rotation angle of the containing element


 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: 28 April 2008 14:43
To: Flash Coders List
Subject: [Flashcoders] { AS3 } Reading position info X, Y, H & W

Hi i need some help reading position info X, Y, H & W of a desired
object. Now i know some of you are going to jump streight in with
answeres like... instanceName.y, instanceName.x etc... but i would like
you to take a look at the following link first, you will see a number of
lines drawn to explanin the valuse i am after!

http://79.170.40.163/flashdev.com/


I already have X, Y & bounding box H/W values. I need to read W2, H2 &
X2 if possible?

Regards
SM
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to