User Tag List

Results 1 to 6 of 6

Thread: Setting global string via an expression

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Setting global string via an expression

    ...works fine in MMF2, but is not working in swf.

    Set global string(value) to "1234"

    value is a number larger than or equal to 1

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting global string via an expression

    You should use STR$ to convert a number to a string, do you mean this?

    I'm using a global string to store pathnames, so far it works.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting global string via an expression

    No, that's not what i mean.

    When you set a global string, you can either select the string manually from the drop down list (like global string A, global string B, etc) or use an expression to point to a global string based on a numeric value. Value of 1 would be the first global string, regardless of what name has been given for it. You can see this functionality in MMF2 in "set global string" --> "use expression".

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting global string via an expression

    Quote Originally Posted by MJK
    Value of 1 would be the first global string
    Wrong. The first Global String has ID 0. Same for Global Variables.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    MJK's Avatar
    Join Date
    Jun 2006
    Location
    Espoo, Finland
    Posts
    1,162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting global string via an expression

    Quote Originally Posted by LB
    Quote Originally Posted by MJK
    Value of 1 would be the first global string
    Wrong. The first Global String has ID 0. Same for Global Variables.
    Well, MMF2 says: "Please enter the number of the value...Enter expression to calculate: Result should be greater or equal than 1"

    And it really doesn't matter whether is is 0 or 1, because I've checked the behavior when run both in MMF2 and swf, and it's not the same (when using the same value), so something must be wrong somewhere.

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting global string via an expression

    Hmmm, that is strange! I have used everything except that feature in terms of globals by ID, and it has always been 0-based. it's 1 based? That doesn't make sense to me. :\
    Working as fast as I can on Fusion 3

Similar Threads

  1. Problem setting a Global Variable to use decimals
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th February 2011, 06:29 PM
  2. Setting a string to the value of a variable
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th February 2009, 06:31 PM
  3. Setting Animation via String
    By astrospoon in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th August 2008, 10:15 PM
  4. Bug: setting the timer from an expression
    By EnigmaWave in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd March 2007, 12:23 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
  •