User Tag List

Results 1 to 4 of 4

Thread: Arrays, fastloops and floating point

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrays, fastloops and floating point

    I stumbled across that when trying to write values to a array while a loop nothing arrives. The array stays empty.

    Another thing i stumbled across is that i can write floating point values but just retreive integers as it seems.

    Question: is there a type of array that works while a fastloop?
    Question: is there a type of array that can handle floating point values?

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Arrays, fastloops and floating point

    Arrays work with fastloops, no problem. Check your code, something must be wrong.

    The Array object of MMF2 only handles integers and strings. Maybe you could use strings to store your floating point values? (but it may be slow).

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Arrays, fastloops and floating point

    Ah thanks, that's the troublemaker. I try to write floating point values. A quick test with string worked. Phew

    A shame though that the array just can handle integer numbers.

    Anyway, using text array and converting from and to string may really be too slow here. I need to deal with lots of values. 30000 for a normal case. Any idea what to use instead?

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Arrays, fastloops and floating point

    Got it working. The Storefloat Object stores floatings into a numeric array

Similar Threads

  1. Floating Point Movement & Fastloops
    By MasochisticGamer in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th December 2013, 04:59 AM
  2. Having problems with fastloops and arrays
    By RickyRombo in forum File Archive
    Replies: 18
    Last Post: 21st February 2009, 03:23 AM
  3. [Bug]Floating Point issues
    By xyzzy in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 10th January 2008, 12:13 AM
  4. Floating Point Arrays?
    By Dines in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 1st January 2008, 11:00 PM
  5. Don't know how to use floating point values
    By garciafigueres in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th January 2007, 07:30 AM

Posting Permissions

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