User Tag List

Results 1 to 9 of 9

Thread: the difference between EXE and SWF

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    the difference between EXE and SWF

    The result of the action to which the scale of the object is changed is different between EXE(preview in MMF2) and SWF.

    How can I make the result of both the same?

    SWF and MFA: exe_and_swf.zip


  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: the difference between EXE and SWF

    Can you send me the MFA? I will check if the scale factor is really set to zero. If it is then it is Flash fault, but I doubt.

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Re: the difference between EXE and SWF

    Francois, will you access the following address and get the mfa and swf.

    http://www7a.biglobe.ne.jp/~bp-827z/asd/temp/exe_and_swf.zip

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: the difference between EXE and SWF

    There must be a problem here, as I see no difference between the exe and the swf version.
    In your calculation, you test for Alt Variable A to be greater OR EQUAL to 1, which means that the calculation ends at 1.1. This is what happens in EXE and the same happens in SWF.
    It works very well!

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Re: the difference between EXE and SWF

    Quote Originally Posted by Francois
    There must be a problem here, as I see no difference between the exe and the swf version.
    In your calculation, you test for Alt Variable A to be greater OR EQUAL to 1, which means that the calculation ends at 1.1. This is what happens in EXE and the same happens in SWF.
    It works very well!
    Ah yes.

    However, I use the HWA with D3D9, that greater OR EQUAL to 1 is ends at 1.

    Is the calculation of D3D different from standard?

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: the difference between EXE and SWF

    I Have no clue...

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: the difference between EXE and SWF

    If you're working with fractional numbers (e.g. 0.1) then it's not perfectly accurate. e.g. for 0.1 you really get either 0.0999999 or 0.1000001 (roughly). If you get the first one and add it ten times you'll get 0.999999, which is less than 1.0. It would add one more time to get above 1.0, with a result that's nearly 1.1.

    Unfortunately, it works slightly differently on different PCs. It'll also be different between .exe/flash/java. It's also different between using a CPU's FPU and using its SSE unit, so if the HWA version is compiled with SSE optimisations and the standard one is not, they will behave slightly differently with floats.

    Yes, fractional numbers (aka floating point numbers or floats in programmer speak) are horrible. You're better off working in percents, and dividing by 100 when you want to use the result. So you'd add 10 every time, compare against 100, and set the scale to number/100.

    The alternative is to compare to greater or equal to 0.999999 instead.

  8. #8
    Firecodemonkey

    Join Date
    Aug 2006
    Location
    London, UK
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: the difference between EXE and SWF

    tl;dr If you're looking for an accurate answer then you should not rely on floats make sure you account for the precision possible with floating point numbers, it's only about 6 digits.

  9. #9
    RayMarble
    Guest

    Re: the difference between EXE and SWF

    Just as a curiosity and to confirm what Dynasoft said, when I run ASD's example it does not look like his screenshot :crazy: In fact it's hard to see the problem at all.

Similar Threads

  1. TimeStamp help - Difference!!
    By LUCKYCREATIONS in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th August 2011, 05:07 PM
  2. Difference Between Win7 and XP
    By drnebula in forum File Archive
    Replies: 9
    Last Post: 25th September 2010, 10:56 PM
  3. Difference in HWA
    By Fanotherpg in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 7th March 2010, 12:15 PM
  4. What's the difference between GF2 and MF2?
    By Nusua in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 1st March 2009, 08:12 PM

Posting Permissions

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