gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/server button_character_instance.cpp


From: Sandro Santilli
Subject: [Gnash-commit] gnash/server button_character_instance.cpp
Date: Tue, 17 Oct 2006 10:55:10 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/10/17 10:55:10

Modified files:
        server         : button_character_instance.cpp 

Log message:
        added note about why we execute button events immediately (a reference 
to Colin Moock book)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/button_character_instance.cpp?cvsroot=gnash&r1=1.6&r2=1.7

Patches:
Index: button_character_instance.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/button_character_instance.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- button_character_instance.cpp       16 Oct 2006 19:00:57 -0000      1.6
+++ button_character_instance.cpp       17 Oct 2006 10:55:10 -0000      1.7
@@ -452,7 +452,15 @@
        // restart the characters of the new state.
        restart_characters(c);
 
-       // Add appropriate actions to the movie's execute list...
+       // From: "ActionScript - The Definiteve Guide" by Colin Moock
+       // (chapter 10: Events and Event Handlers)
+
+       // "Event-based code [..] is said to be executed asynchronously
+       //  because the triggering of events can occur at arbitrary times."
+
+       // Immediately execute all events actions (don't append to
+       // parent's action buffer for later execution!)
+
        {for (unsigned int i = 0; i < m_def->m_button_actions.size(); i++)
        {
                if (m_def->m_button_actions[i].m_conditions & c)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]