Author: hqm
Date: 2008-01-10 13:43:07 -0800 (Thu, 10 Jan 2008)
New Revision: 7807

Modified:
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js
Log:
checkpoint lfc, mouse clicks only sent from target

Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js 
2008-01-10 19:45:34 UTC (rev 7806)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js 
2008-01-10 21:43:07 UTC (rev 7807)
@@ -385,7 +385,7 @@
   * value.
   * @return animatorIsDone: a boolean indicating if the animation is complete
   */
-override function update( time ) {
+public override function update( time ) {
     var animatorIsDone = false;
 
     // If this is its first iteration then calc the necessary paramters.

Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js 
2008-01-10 19:45:34 UTC (rev 7806)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js 
2008-01-10 21:43:07 UTC (rev 7807)
@@ -384,7 +384,7 @@
   * @return a boolean indicating if all of the animations within
   * this group are done.
   */
-function update( time ) {
+public function update( time ) {
     var animend = this.actAnim.length -1;
     if (animend > 0 && this.process == "sequential")
         animend = 0;

Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as  
2008-01-10 19:45:34 UTC (rev 7806)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as  
2008-01-10 21:43:07 UTC (rev 7807)
@@ -40,7 +40,8 @@
         
         LzIdleKernel.addCallback( this, '__idleupdate' );
 
-        var idleTimerPeriod = 33; // msecs
+        var idleTimerPeriod = 16; // msecs
+        trace('idle timer period = ', idleTimerPeriod , 'msecs');
         LzIdleKernel.startTimer( idleTimerPeriod );
     }
 

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as        
2008-01-10 19:45:34 UTC (rev 7806)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as        
2008-01-10 21:43:07 UTC (rev 7807)
@@ -187,27 +187,39 @@
       }
 
       public function handleMouse_CLICK (event:MouseEvent) {
-          LzModeManager.handleMouseEvent( owner, 'onclick');
+          if (event.eventPhase == EventPhase.AT_TARGET) {
+              LzModeManager.handleMouseEvent( owner, 'onclick');
+          }
       }
 
       public function handleMouse_DOUBLE_CLICK (event:MouseEvent) {
-          LzModeManager.handleMouseEvent( owner, 'ondblclick');
+          if (event.eventPhase == EventPhase.AT_TARGET) {
+              LzModeManager.handleMouseEvent( owner, 'ondblclick');
+          }
       }
 
       public function handleMouse_MOUSE_DOWN (event:MouseEvent) {
-          LzModeManager.handleMouseEvent( owner, 'onmousedown');
+          if (event.eventPhase == EventPhase.AT_TARGET) {
+              LzModeManager.handleMouseEvent( owner, 'onmousedown');
+          }
       }
 
       public function handleMouse_MOUSE_UP (event:MouseEvent) {
-          LzModeManager.handleMouseEvent( owner, 'onmouseup');
+          if (event.eventPhase == EventPhase.AT_TARGET) {
+              LzModeManager.handleMouseEvent( owner, 'onmouseup');
+          }
       }
 
       public function handleMouse_MOUSE_OVER (event:MouseEvent) {
-          LzModeManager.handleMouseEvent( owner, 'onmouseover');
+          if (event.eventPhase == EventPhase.AT_TARGET) {
+              LzModeManager.handleMouseEvent( owner, 'onmouseover');
+          }
       }
 
       public function handleMouse_MOUSE_OUT (event:MouseEvent) {
-          LzModeManager.handleMouseEvent( owner, 'onmouseout');
+          if (event.eventPhase == EventPhase.AT_TARGET) {
+              LzModeManager.handleMouseEvent( owner, 'onmouseout');
+          }
       }
 
 

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js    
2008-01-10 19:45:34 UTC (rev 7806)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js    
2008-01-10 21:43:07 UTC (rev 7807)
@@ -1541,8 +1541,6 @@
 
 
 
-
-
 }
 
 


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to