User Tag List

Results 1 to 6 of 6

Thread: Transferring data between frames

  1. #1
    No Products Registered

    Join Date
    Apr 2007
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Transferring data between frames

    This might be a very simple issue but I am not that experienced with MMF2. I have been searching in the net (in websites like clickwiki.info and these forums) and I was unable to find how to resolve it.

    Well, this is what I have:

    Frame 1: I have list objects, each list object has different alterable values. At start of frame 1, The alterable values of the list objetcs are randomly taking data from an array, so anytime the frame 1 starts, the values will change. Also, there is a button that when the player click on it will jump to frame 2.

    Frame 2: I have active objects with alterable values. What I am trying to do is transferring the alterable values from frame 1 to these active objects in frame 2.

    I used the Global event editor, imported there the list objects and button from frame 1, as well as, the active objects from frame two, and created an event as follows: when button is clicked, set alterable value A of active object to alterable value A of list object.

    Well, the problem is that the data (alterable value A) is not passing from the list object (frame 1) to the active object (frame 2). I verified that it is not working by using a counter and retrieving the alterable value A of the active object in frame two, the result was zero (0) while it should be two (2).

    Other detail is that alterable value A in the objects has a name (let's day I named "element") but in the Global event editor is not appearing such name but only as alterable value A. (it might be similar as when you use a qualifier, so I guess it shouldn't affect)

    I am using MMF 2 build R244.

    Thanks

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Transferring data between frames

    it's late, and my brain is jumping to screen-saver, but you might want to look at using Global Values. That way, they can be accessed from any frame.

    Another great object for sharing data across frames is the Global Function Object.

  3. #3
    No Products Registered

    Join Date
    Mar 2007
    Location
    San Diego
    Posts
    280
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Transferring data between frames

    You will need to use global values. Gloabl Values are value that are carried through the entire application. You can access them in the Application Properties.

    Put something like this on the first frame:
    + When button is clicked
    - Jump to Frame 2
    - Set Global Value A to Alterable Value A of List Object

    and on the second frame:
    + Start of Frame
    - Set Alterable value A of Active to Global Value A

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Transferring data between frames

    I would suggest making the objects global. Then it should automatically transfer the Alterable Values if I'm not mistaken.

  5. #5
    No Products Registered

    Join Date
    Apr 2007
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Transferring data between frames

    Quote Originally Posted by KetchupMaster
    You will need to use global values. Gloabl Values are value that are carried through the entire application. You can access them in the Application Properties.

    Put something like this on the first frame:
    + When button is clicked
    - Jump to Frame 2
    - Set Global Value A to Alterable Value A of List Object

    and on the second frame:
    + Start of Frame
    - Set Alterable value A of Active to Global Value A

    Thanks to all for the help,

    That sounds good to me, however, i have 7 list objects in frame 1, each object has around 7 or more alterable values....it means at least 49 global values to be created. Will it affect the application performance?

    I will also explore the global function object.

    Thanks

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Transferring data between frames

    if you have 7 dudes,(active objects or lists or whatever) and each dude has multiple values, you could use one global string for each dude, and parse those puppies...

    dude 1 = global value "A"

    (GVa ="fred;100;red;bacon")


    Dude's name = fred
    dude's health = 100
    dude's favorite color = red
    dude's favorite food = bacon



    Then do what KetchupMaster so elequently did above...

Similar Threads

  1. How to Save data across frames.
    By TheSketchySide in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 23rd November 2013, 09:52 PM
  2. Sharing data between frames (sub-apps)
    By aidmm in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 2nd November 2011, 08:38 AM
  3. Storing data over several frames
    By Jason in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 9th November 2010, 09:18 PM
  4. Global objects not preserving data between frames?
    By Jocastus in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th February 2009, 07:33 PM
  5. transferring counter data
    By rhoymand in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th November 2006, 02:30 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
  •