Re: [swfmill] Bug with numbers in text fields...

2006-05-12 Thread Quentin
If you can submit a pre-release, I would appreciate it very much !And I'll let you know if it fixes the bug in my hundreds of flash animations...On 5/11/06, 
daniel fischer [EMAIL PROTECTED] wrote:Hey Quentin,
i found the little bugger responsible for that mistake, and put a lot of bugspray on it. seems fixed in svn. do you need/want a prerelease?-danQuentin [EMAIL PROTECTED]
 (on Fri, 21 Apr 2006 11:56:43 +0200): I'll post that bug... On 4/21/06, Steve Webster [EMAIL PROTECTED] wrote: 
  Hi erixtekila/mark,On 4/21/06, Quentin [EMAIL PROTECTED] wrote:Here is what I did, according to what you suggested :
   Put together a FLA with only a dynamic textfield on the stage with aninstance name tfWrote an ActionScript class that simply sets the textfield content to
  9.8Injected the code via MTASCThe updated SWF works fine, the textfielddisplays 9.8.Then I placed the SWF with a simple swfmill XML file and the bug I had
appears : the textfield is filled with 9.8019073486 ! Wow... this is strange. I don't have time to look at the swfml-ll of   the SWF before and after swfmill import right now, unfortunately, but
   I suspect it has something to do with black magick.   Maybe Dan or Steve can help?   I suspect this is due to C++ handling of float values, but I can't be
  sure. Can someone please post this as a bug on the Trac site?--http://0xDF.com/http://iterative.org/___
swfmill mailing listswfmill@osflash.orghttp://osflash.org/mailman/listinfo/swfmill_osflash.org

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bug with numbers in text fields...

2006-05-11 Thread daniel fischer

Hey Quentin,

i found the little bugger responsible for that mistake, and put a lot of 
bugspray on it. seems fixed in svn. do you need/want a prerelease?

-dan


Quentin [EMAIL PROTECTED] (on Fri, 21 Apr 2006 11:56:43 +0200):

   I'll post that bug...
   
   On 4/21/06, Steve Webster [EMAIL PROTECTED] wrote:
   
Hi erixtekila/mark,
   
 On 4/21/06, Quentin [EMAIL PROTECTED] wrote:
  Here is what I did, according to what you suggested :
 
  Put together a FLA with only a dynamic textfield on the stage with an
  instance name tf
  Wrote an ActionScript class that simply sets the textfield content to
9.8
  Injected the code via MTASCThe updated SWF works fine, the textfield
  displays 9.8.
  Then I placed the SWF with a simple swfmill XML file and the bug I had
  appears : the textfield is filled with 9.8019073486 !

 Wow... this is strange. I don't have time to look at the swfml-ll of
 the SWF before and after swfmill import right now, unfortunately, but
 I suspect it has something to do with black magick.
 Maybe Dan or Steve can help?
   
I suspect this is due to C++ handling of float values, but I can't be
sure. Can someone please post this as a bug on the Trac site?

-- 
http://0xDF.com/
http://iterative.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bug with numbers in text fields...

2006-04-21 Thread Quentin
Thanks for the link !Sorry to bother, but how can you explain the SWF generated by the Flash IDE works fine, but the one rendered via swfmill has this floating point problem ?Cheers !
On 4/20/06, Mark Winterhalder [EMAIL PROTECTED] wrote:
On 4/20/06, Quentin [EMAIL PROTECTED] wrote: Hi ! I have a very simple FLA with only a dynamic textfield on the stage, and some actionscript that says 
tfVal.text = 9.8; but when I placed the generated SWF with swfmill the textfield is not filled with 9.8 but with 9.8019073486 ! Quite weird !Ah, the magic of floatingpoint precision...
http://en.wikipedia.org/wiki/Floating_point#Problems_with_floating-point ps : I posted a ticket here : 
http://mirror1.cvsdude.com/trac/osflash/swfmill/ticket/10It's not a bug. If you create a TextField by ActionScript, or take onemade with the IDE you'll get the same result. It's not a FlashPlayer
bug, either, but a very general problem.Mark--http://snafoo.org/___swfmill mailing list
swfmill@osflash.orghttp://osflash.org/mailman/listinfo/swfmill_osflash.org
___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bug with numbers in text fields...

2006-04-21 Thread Mark Winterhalder
On 4/21/06, Quentin [EMAIL PROTECTED] wrote:
 Thanks for the link !
 Sorry to bother, but how can you explain the SWF generated by the Flash IDE
 works fine, but the one rendered via swfmill has this floating point problem
 ?

The one generated by the IDE does *not* have this problem? I have no
idea how this could be possible. I tested by creating a TextField by
script, and it had the same problem. I can't test with the IDE
(Linux), but would be *very* surprised if it wouldn't behave the same
way -- are you sure you didn't set the text to 9.8 (*with* the
quotes)?

Mark

--
http://snafoo.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bug with numbers in text fields...

2006-04-21 Thread Quentin
No, no quotes ! I sent a FLA on the Trac site, but if you are on Linux you might not be able to open it, but the only actionscript line in it is what I posted before (
tfVal.text = 9.8;) !The textfield was not created by actionscript, but within the IDE, maybe this is the difference that wreaks havoc ?On 4/21/06, 
Mark Winterhalder [EMAIL PROTECTED] wrote:
On 4/21/06, Quentin [EMAIL PROTECTED] wrote: Thanks for the link ! Sorry to bother, but how can you explain the SWF generated by the Flash IDE works fine, but the one rendered via swfmill has this floating point problem
 ?The one generated by the IDE does *not* have this problem? I have noidea how this could be possible. I tested by creating a TextField byscript, and it had the same problem. I can't test with the IDE
(Linux), but would be *very* surprised if it wouldn't behave the sameway -- are you sure you didn't set the text to 9.8 (*with* thequotes)?Mark--http://snafoo.org/
___swfmill mailing listswfmill@osflash.orghttp://osflash.org/mailman/listinfo/swfmill_osflash.org

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bug with numbers in text fields...

2006-04-21 Thread Mark Winterhalder
On 4/21/06, Quentin [EMAIL PROTECTED] wrote:
 No, no quotes ! I sent a FLA on the Trac site, but if you are on Linux you
 might not be able to open it, but the only actionscript line in it is what I
 posted before ( tfVal.text = 9.8;) !
 The textfield was not created by actionscript, but within the IDE, maybe
 this is the difference that wreaks havoc ?

Possibly -- if you had the AS in the IDE then it's a different
compiler. Maybe MMC is smart enough to cast it to a string? Could you
try generating the textfield with the IDE and then compiling some AS
with mtasc to set the text, please?

Mark

--
http://snafoo.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bug with numbers in text fields...

2006-04-21 Thread Mark Winterhalder
On 4/21/06, Quentin [EMAIL PROTECTED] wrote:
 Here is what I did, according to what you suggested :

 Put together a FLA with only a dynamic textfield on the stage with an
 instance name tf
 Wrote an ActionScript class that simply sets the textfield content to 9.8
 Injected the code via MTASCThe updated SWF works fine, the textfield
 displays 9.8.
 Then I placed the SWF with a simple swfmill XML file and the bug I had
 appears : the textfield is filled with 9.8019073486 !

Wow... this is strange. I don't have time to look at the swfml-ll of
the SWF before and after swfmill import right now, unfortunately, but
I suspect it has something to do with black magick.
Maybe Dan or Steve can help?

Mark

--
http://snafoo.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org


Re: [swfmill] Bug with numbers in text fields...

2006-04-20 Thread Mark Winterhalder
On 4/20/06, Quentin [EMAIL PROTECTED] wrote:
 Hi !
 I have a very simple FLA with only a dynamic textfield on the stage, and
 some actionscript that says tfVal.text = 9.8; but when I placed the
 generated SWF with swfmill the textfield is not filled with 9.8 but with
 9.8019073486 !

 Quite weird !

Ah, the magic of floatingpoint precision...
http://en.wikipedia.org/wiki/Floating_point#Problems_with_floating-point

 ps : I posted a ticket here :
 http://mirror1.cvsdude.com/trac/osflash/swfmill/ticket/10

It's not a bug. If you create a TextField by ActionScript, or take one
made with the IDE you'll get the same result. It's not a FlashPlayer
bug, either, but a very general problem.

Mark

--
http://snafoo.org/

___
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org