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

bargull@openlaszlo.org bargull at openlaszlo.org
Sat Apr 4 12:52:50 PDT 2009


Author: bargull
Date: 2009-04-04 12:52:46 -0700 (Sat, 04 Apr 2009)
New Revision: 13597

Modified:
   openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
Log:
Change 20090404-bargull-i95 by bargull at dell--p4--2-53 on 2009-04-04 19:17:30
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: fix sprite layer problem

New Features:

Bugs Fixed: LPP-8018 (SWF9: clickable sprite layering problem)

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

Documentation:

Release Notes:

Details:
When calling "sendToBack()", don't move sprite to position 0, instead move in front of all non-LzSprite DisplayObjects (clickbutton, resourceContainer, etc.)
    

Tests:
testcase from bugreport, smokecheck



Modified: openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as
===================================================================
--- openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as	2009-04-04 19:01:08 UTC (rev 13596)
+++ openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSprite.as	2009-04-04 19:52:46 UTC (rev 13597)
@@ -1279,7 +1279,10 @@
       */
       public function sendToBack():void {
           if (!this.isroot) {
-              parent.setChildIndex(this, 0);
+              var pos:int = 0;
+              // skip all non-LzSprites (clickbutton, resourceContainer, etc.)
+              for (; ! (parent.getChildAt(pos) is LzSprite); ++pos) {}
+              parent.setChildIndex(this, pos);
           }
       }
 



More information about the Laszlo-checkins mailing list