I'm trying to find out the total distance in pixels my component is from the edge of the application. I have some code that attempts to get the x and y of the component but it doesnt work if its inside a container or containers. I still have problems trying to understand localToGlobal. It doesn't make sense to me. Can we rename it or change the signature?
var x:int = LocationClass.getLength(myComponent,Application,x); // returns 10 var y:int = LocationClass.getLength(myComponent,Application,y); // or var y:int = LocationClass.getDistanceTo(myComponent,Application,y); thanks
