[Laszlo-checkins] r9494 - openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9

hqm@openlaszlo.org hqm at openlaszlo.org
Fri Jun 6 08:08:47 PDT 2008


Author: hqm
Date: 2008-06-06 08:08:46 -0700 (Fri, 06 Jun 2008)
New Revision: 9494

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
Log:
Change 20080606-hqm-S by hqm at badtzmaru.home on 2008-06-06 11:08:01 EDT
    in /Users/hqm/openlaszlo/trunk2
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix text selectability in swf9

New Features:

Bugs Fixed: LPP-6114

Technical Reviewer: andre
QA Reviewer: pbr
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

mouseEnabled must be true to allow selecting of text

setSelectable(..):
this.textfield.mouseEnabled = isSel || this.clickable;
setClickable(..):
this.textfield.mouseEnabled = c || this.textfield.selectable;


Tests:

text which says "I am selectable..."  is selectable in test/swf9/hello.lzx test



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as	2008-06-06 14:11:52 UTC (rev 9493)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as	2008-06-06 15:08:46 UTC (rev 9494)
@@ -54,7 +54,7 @@
         override public function setClickable( c:Boolean ):void {
           if (this.clickable == c) return;
 
-          this.textfield.mouseEnabled = c;
+          this.textfield.mouseEnabled = c || this.textfield.selectable;
 
           this.clickable = c;
           if (c) {
@@ -351,6 +351,7 @@
          */
         public function setSelectable ( isSel:Boolean ):void {
             this.textfield.selectable = isSel;
+            this.textfield.mouseEnabled = isSel || this.clickable;
         }
       
         public function getTextWidth ( ):Number {



More information about the Laszlo-checkins mailing list