User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: Static variables

  1. #11
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Static variables

    You know there is a SDK runtime function for global data?

  2. #12
    No Products Registered

    Join Date
    Jun 2007
    Location
    Croatia
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Static variables

    no, what is it? (in standard MMF SDK)... i was using rSDK but I think I'll be able to find it there...

  3. #13
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Static variables

    mvSetExtUserData

  4. #14
    Clickteam Clickteam

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

    Re: Static variables

    Yes, if you have a variable that is global to the application, you should store it with mvSetExtUserData and retrieve it with mvGetExtUserData.

    Because if you use a global variable in the global heap of the extension, you have to know that :

    - it will be shared by all the sub-applications too.

    - if your extension is played in a Vitalize! 4 application, then the variable will be shared by all the CCN applications played in the same instance of the browser (as V4 is executed in multi-thread mode).

  5. #15
    No Products Registered

    Join Date
    Jun 2007
    Location
    Croatia
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Static variables

    I want it to be shared by all subapplications...

    Another question - If I use the global variable (and NOT using the mvGetExtUserData), will it be shared with the same extension in another instance of the same application?

    For my game I will not allow another instance, but I just wanted to know if it is shared even across applications.

  6. #16
    Clickteam Clickteam

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

    Re: Static variables

    No, the global variable won't be shared with other stand-alone applications.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. New static array module
    By Retriever2 in forum Lua Scripting
    Replies: 5
    Last Post: 6th May 2010, 07:50 AM
  2. Static Text is, er, not so static.
    By alxmrg in forum Hardware Accelerated Runtime
    Replies: 6
    Last Post: 8th March 2010, 11:16 PM
  3. Static Platform Test help.
    By N64Mario in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 6th May 2009, 06:00 PM
  4. Static position
    By ayejes in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 5th March 2008, 06:36 PM
  5. Static
    By Guitaristinmakin in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 14th October 2007, 08:15 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
  •