[Laszlo-checkins] r9423 - in openlaszlo/trunk/WEB-INF/lps: lfc/kernel/swf9 schema

bargull@openlaszlo.org bargull at openlaszlo.org
Sun Jun 1 15:56:53 PDT 2008


Author: bargull
Date: 2008-06-01 15:56:48 -0700 (Sun, 01 Jun 2008)
New Revision: 9423

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
   openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx
Log:
Change 20080602-bargull-nld by bargull at dell--p4--2-53 on 2008-06-02 00:28:01
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: don't interrupt mouse-events

New Features:

Bugs Fixed: LPP-6086

Technical Reviewer: hminsky
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
Don't catch mouse-events per default. Only enable "mouseEnabled", if the sprite is clickable, or if the textfield is an inputtext. 
Added "enabled" to the schema. 
    

Tests:
see bugreport



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as	2008-06-01 22:43:17 UTC (rev 9422)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzInputTextSprite.as	2008-06-01 22:56:48 UTC (rev 9423)
@@ -43,6 +43,7 @@
         } else {
             textfield.type = TextFieldType.DYNAMIC;
         }
+        textfield.mouseEnabled = true;
 
         /*
           TODO [hqm 2008-01]

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as	2008-06-01 22:43:17 UTC (rev 9422)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as	2008-06-01 22:56:48 UTC (rev 9423)
@@ -95,6 +95,7 @@
           if (isroot) {
               this.isroot = true;
           }
+          this.mouseEnabled = false;
       }
 
       public function init (v:Boolean = true):void {
@@ -312,13 +313,14 @@
       public function setClickable( c:Boolean ):void {
           if (this.clickable == c) return;
           this.clickable = c;
+          this.buttonMode = c;
+          this.mouseEnabled = c;
           attachMouseEvents(this);
           var cb:SimpleButton = this.clickbutton;
           //trace('sprite setClickable' , c, 'cb',cb);
           if (this.clickable) {
               // TODO [hqm 2008-01] The Flash Sprite docs 
               // explain how to add a sprite to the tab order using tabEnabled property. 
-              this.buttonMode = true;
               if (cb == null) {
                   this.clickbutton = cb = new SimpleButton();
                   addChild(cb);
@@ -337,7 +339,6 @@
               cb.hitTestState = cr;
               attachMouseEvents(cb);
           } else {
-              this.buttonMode = false;
               removeMouseEvents(this);
               if (cb) {
                   removeMouseEvents(cb);

Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as	2008-06-01 22:43:17 UTC (rev 9422)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as	2008-06-01 22:56:48 UTC (rev 9423)
@@ -85,6 +85,7 @@
             tfield.width = w;
             tfield.height = h;
             tfield.border = false;
+            tfield.mouseEnabled = false;
             //tfield.cacheAsBitmap = true;
             addChild(tfield);
             return tfield;

Modified: openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx	2008-06-01 22:43:17 UTC (rev 9422)
+++ openlaszlo/trunk/WEB-INF/lps/schema/lfc.lzx	2008-06-01 22:56:48 UTC (rev 9423)
@@ -653,6 +653,7 @@
            field; any text typed in appears as "****" characters in the
            current font. -->
       <attribute name="password" type="boolean" value="false"/>
+      <attribute name="enabled" type="boolean" value="true"/>
 
       <method name="$lzc$set_enabled"/>
       <method name="_gotBlurEvent"/>



More information about the Laszlo-checkins mailing list