User Tag List

Results 1 to 4 of 4

Thread: Groups > Activated - Deactivated and order of execution of events

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Apr 2012
    Location
    California, USA
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Groups > Activated - Deactivated and order of execution of events

    Hi. Downloaded the demo and did the included tutorial. I'm playing with the groups now just to understand how things work. If you look at the attached you will see some groups and I activate them via key press. The last group 'WrapUp' has a timer but it seems to fire even though the group is deactivated. I explicitly deactivated it in 'Initialize' and activate it on the ESC key press - but apparently doesn't work that way.

    Can someone feed me some baby sized bites of info?

    Thanks.

    Burt
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Apr 2012
    Location
    California, USA
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WAIT! Funny how I looked at this a dozen times and only saw this after I posted. It seems like I didn't actually put those events in the group ....

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Keep in mind that events that are lined in Red, such as "Upon Pressing Any Key", do not follow the normal top to bottom order of events. These are callbacks that are triggered instantly upon their condition being met- for example a timer event checks the clock time on the computer, and triggers that regardless of the control flow. Thats how fast loops will work- when a loop is called, the compiled code only reads the loop events from top to bottom, and does a string comparison on each, then returns to the normal stack frame for the rest of the code after the loop is finished. So when you're doing something like deactivating a group of events in a key press event, it might not necessarily occur in the logical deterministic order.

    But if you have something like "While Key is Pressed" that doesn't use a keyboard event callback, but instead simply checks the state of that keypress, it won't be outlined in red.
    Dunno if that helps your problem or not, especially if you didn't have them in the group, but its just one thing to look out for

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Apr 2012
    Location
    California, USA
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Keep in mind that events that are lined in Red,
    Ah, thanks! I didn't know why some of those were red. Going to play with this tonight. Want to try to sort out loops next.

Similar Threads

  1. MMF2 can change execution order of the behaviors?
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 12th July 2013, 09:55 PM
  2. Events in subgroups within deactivated groups still run if involving the Android Obj
    By victordavion in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 15th June 2013, 05:59 AM
  3. Execution order of behaviors at several objects
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 15th October 2010, 03:55 AM
  4. How to control the order of execution ?
    By Valerien in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 11th July 2008, 08:12 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
  •