User Tag List

Results 1 to 4 of 4

Thread: Global / Nonglobal extensions

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Eliyahu's Avatar
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Global / Nonglobal extensions

    In FlagsPrefs.h you can make your extension global so things such as stored values work globally in your MMF2 application through "#define M_OePREFS_GLOBAL".

    How would you make it so some actions/expressions are global and some aren't?

    For example

    Actions:
    Global - Set Value A
    NonGlobal - Set Value B

    Where Value A is global and Value B is nonglobal.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Eliyahu's Avatar
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global / Nonglobal extensions

    Or if that's not possible, would it be possible to clear a value or table when frames switch?

    EDIT: Also, while anyone is here helping, how do you get variables and such in the MMF2 debugger? Like so you can see all the values and maybe edit them during runtime?

  3. #3
    Clicker Multimedia Fusion 2 Developer

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

    Re: Global / Nonglobal extensions

    Check out StartApp() and EndApp() in Runtime.cpp. They allow you to create and delete a global data class, separately from your normal runobject.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Global / Nonglobal extensions

    Quote Originally Posted by Dynasoft
    Check out StartApp() and EndApp() in Runtime.cpp. They allow you to create and delete a global data class, separately from your normal runobject.
    Oooh. Thanks for the info Dynasoft. I didn't know that.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


Similar Threads

  1. Global objects in global events
    By Boba Fonts in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th October 2010, 12:12 PM
  2. [BUG] Global Value and Global String the same name
    By LB in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 18th January 2010, 09:11 PM
  3. global extensions question
    By Jon_Lambert in forum Extension Development
    Replies: 2
    Last Post: 14th September 2009, 03:20 PM
  4. 241_MMF2dev -Global strings refusing being global
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th July 2006, 07:00 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
  •