[haXe] Weird bug...

Sean Charles sean.charles at objitsu.com
Mon Apr 2 14:18:39 CEST 2007


Wierd things happen on non-pixel boundaries sometimes... text suffers  
particularly badly sometimes, or it used to.  There is also a limit  
on the actual precision of a coordinate, the details slip me now but  
its in the Adobe help text somewhere about the minimum unit being  
0.05 or something.



On 2 Apr 2007, at 13:05, Mikael Säker wrote:

> Hi all,
>
> I'm pretty new to both Flash and Haxe and I have run into a strange  
> thing with movieclip positions that I cannot find any info about on  
> the list.
>
> Try the code below. I run haxe 1.12 and I get the same results in  
> Flash Player 7, 8 and 9...:
>
>
> class Test extends flash.MovieClip {
>     public function new() {
> 		_x = 0.25;
> 		trace(_x);				// --> 0.25
> 		_x = _x + 0.05;
> 		trace(_x);				// --> 0.3
> 		_x = _x + 0.05;
> 		trace(_x);				// --> 0.35
> 		_x = _x + 0.05;
> 		trace(_x);				// --> 0.35   (What the heck is happening here???)
> 		_x = _x + 0.05;
> 		trace(_x);				// --> 0.35
> 		_x = _x + 0.05;
>     }
>     static function main() {
>          // create an instance
>          var parent = flash.Lib.current;
>          var m = cast(parent.attachMovie("Test","instance",0),Test);
>     }
> }
>
>
> --
> Mikael Säker <mikael at sicher.org>
> http://www.sicher.org
>
> "Strangers have the best candy."
>
>
>
>
> -- 
> haXe - an open source web programming language
> http://haxe.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070402/75ae23ed/attachment.htm


More information about the Haxe mailing list