4 Replies Latest reply on Jun 12, 2007 2:18 PM by daics0

    Accessing local values?

      Im having trouble getting something to work. I keep asking for an objects x + y cords, but it returns the applications. Heres the code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Image toolTip="{'X-Axis: ' + this.x + '\nY-Axis: ' + this.y}" x="10" y="10" source="images/arrow.png"/>

      Instead of returning

      X-Axis: 10
      Y-Axis: 10
      It returns

      X-Axis: 0
      Y-Axis: 0
      Which are the application cords... Anyone know how to do this (without an ID, I have about 100+ images I need to do this to in actuality).

      - DudeAmI