Flash DisplayObjects not so precise…


Well, i dont know if this is old news or what but i just found out that  DisplayObjects, on their X and Y properties (and mabe others) do not behave as a normal Numeric propertie.  Here some screenshots:

Using a MovieClip to store Numeric values:

Using a Point object to store the values and then pasting it on the MovieClip:

After a closer look with the old friend trace()

Conclusion: if you need precision to set the path of a DisplayObject, dont rely on DisplayObjects numeric properties.

Advertisements