Author: ben
Date: 2007-07-08 11:44:27 -0700 (Sun, 08 Jul 2007)
New Revision: 5619
Modified:
sandbox/ben/smush/main.lzx
Log:
tweak tweak match/nomatch
Modified: sandbox/ben/smush/main.lzx
===================================================================
--- sandbox/ben/smush/main.lzx 2007-07-08 18:29:09 UTC (rev 5618)
+++ sandbox/ben/smush/main.lzx 2007-07-08 18:44:27 UTC (rev 5619)
@@ -140,24 +140,29 @@
this.showResultAnim.doStart();
</method>
- <view name="film" width="${parent.width}"
height="$once{parent.height}" bgcolor="0x000000" opacity="0"/>
+ <view name="film" width="${parent.width}"
height="$once{parent.height}" bgcolor="0x000000" opacity="0">
+ <!-- click to dismiss -->
+ <method event="onclick">
+ gResult.hideResult();
+ </method>
+ </view>
- <view name="capsule">
- <view name="capsule" bgcolor="0xFFFFFF" x="100" y="25" width="113"
height="37" />
- <view name="capl" x="${parent.capsule.x - 14}"
height="${parent.capsule.height}" y="25" resource="circle" />
- <view name="capr" x="${parent.capsule.x + parent.capsule.width -
19}" height="${parent.capsule.height}" y="25" resource="circle" />
- <text name="txt" x="110" y="27" width="${parent.width-10}"
fontsize="22" />
- </view>
- <!-- click to dismiss -->
- <method event="onclick">
+ <method name="hideResult">
this.hideResultAnim.doStart();
if (this.matched) {
this.nomatch.setVisible(false);
gDetails.reset();
gMoreInfo.show();
- }
+ }
</method>
+ <view name="capsule" opacity="0">
+ <view name="capsule" bgcolor="0xFFFFFF" x="50" y="25" width="163"
height="38" />
+ <view name="capl" x="${parent.capsule.x - 14}"
height="${parent.capsule.height}" y="25" resource="circle" />
+ <view name="capr" x="${parent.capsule.x + parent.capsule.width -
19}" height="${parent.capsule.height}" y="25" resource="circle" />
+ <text name="txt" x="50" y="28" width="${parent.width-10}"
fontsize="20" />
+ </view>
+
<animatorgroup name="showResultAnim" process="simultaneous"
start="false">
<animator
attribute="opacity" to="0.5" start="false" duration="200"
target="gResult.film"/>
@@ -171,11 +176,14 @@
</method>
</animatorgroup>
- <animatorgroup name="hideResultAnim" process="simultaneous"
start="false">
- <animator
- attribute="opacity" to="0" start="false" duration="1000"
target="gResult.film"/>
- <animator
- attribute="opacity" to="0" start="false" duration="1000"
target="gResult.capsule"/>
+ <animatorgroup name="hideResultAnim" process="sequential"
start="false">
+ <animator duration="1000" /> <!-- pause for a second -->
+ <animatorgroup>
+ <animator
+ attribute="opacity" to="0" start="false" duration="1000"
target="gResult.film"/>
+ <animator
+ attribute="opacity" to="0" start="false" duration="1000"
target="gResult.capsule"/>
+ </animatorgroup>
</animatorgroup>
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins