I have a nested object (an HBox) in my app, and I'm trying to figure out the global x/y position of it.
 
I've tried this:
 
           var pt:Point = new Point(this.x,this.y);
           this.localToGlobal(pt);
 
But it always returns 0/0. Even if I do this:
 
           var pt:Point = new Point(parent.x,parent.y);
           this.localToGlobal(pt);
It's returning an odd value, like 0/90.... the actual x/y position of the object is somewhere around 350/275
 
Any ideas?
 
Shan
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.7/411 - Release Date: 8/7/2006

Reply via email to