A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: getProperty Value Precision

  1. #1
    Junior Member
    Join Date
    Nov 2003
    Location
    Cincinnati, OH
    Posts
    1

    getProperty Value Precision

    Prolly an easy question for everyone, I must just be looking past it:

    I use getProperty("curClip", _x); to get the specific X and Y of various objects in my Flash Document. Is there a way to increase the precision of the values returned?

    Thanks.

  2. #2
    avatar free
    Join Date
    Jul 2002
    Location
    UK
    Posts
    835
    If you want to do something with higher precision, you'll have to store it in seperate variables. x and y, say. Then use those to set the _x and _y coords. But flash will "round" ordinary _x and _y position variables to a few decimal places. So to read back the numbers, read the x, y variables, not the _x, _y properties.
    jonmack
    flash racer blog - advanced arcade racer development blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center