Author: ben
Date: 2007-07-07 21:02:13 -0700 (Sat, 07 Jul 2007)
New Revision: 5612

Modified:
   sandbox/ben/smush/smush.lzx
Log:
show/hide dummy article on match

Modified: sandbox/ben/smush/smush.lzx
===================================================================
--- sandbox/ben/smush/smush.lzx 2007-07-08 03:42:52 UTC (rev 5611)
+++ sandbox/ben/smush/smush.lzx 2007-07-08 04:02:13 UTC (rev 5612)
@@ -178,6 +178,7 @@
         <!-- click to dismiss --> 
         <method event="onclick">
             this.hideResultAnim.doStart();
+            gMoreInfo.show();
         </method>
         
         <animatorgroup name="showResultAnim" process="simultaneous" 
start="false">
@@ -190,10 +191,10 @@
             </method>
                 
             <method event="onstop">
-                    parent.txt.setVisible(true);
-                    if (!gResult.matched) {
-                        gResult.hideResultAnim.doStart();
-                    }
+                parent.txt.setVisible(true);
+                if (!gResult.matched) {
+                    gResult.hideResultAnim.doStart();
+                }
             </method>            
         </animatorgroup>
         
@@ -244,6 +245,20 @@
         </method>
     </view>
     
+    <view id="gMoreInfo" width="$once{parent.width}" 
height="$once{parent.height}" bgcolor="0x007700"
+        y="${canvas.height}">
+        <animator name="animIn" attribute="y" to="0" duration="1000" 
start="false" />
+        <animator name="animOut" attribute="y" to="${canvas.height}" 
duration="1000" start="false" />        
+        <method name="show">
+            animIn.doStart();
+        </method>
+        <text fgcolor="0xFFFFFF" multiline="true" 
width="$once{parent.width-10}" x="5"
+            text="this is the article, here is some more information, info 
whee, yay for information. the bay bridge is a bridge over the san francisco 
bay." />
+        <method event="onclick">
+            animOut.doStart();
+        </method>
+    </view>
+    
     <view id="gInstructions" y="150" bgcolor="0x3377BB">
         <view id="gLabelInstructions">
             <text fgcolor="0xFFFFFF" text="Click a label." />


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

Reply via email to