.tmp_B0FEFDBE220309706D7C1C9961D6D5DB_LFC-$86.lzx

<canvas height="200" width="200">
<simplelayout axis="y" spacing="10"/>
<button name="_start" text="start">

<handler name="onclick">

this.parent.fadeText(null);


</handler>
</button>
<edittext name="_hour"/>
<edittext name="_min"/>
 
//<attribute name="edithour" value="$once{this._hour.getText()}" type="number"/>
//<attribute name="editmin" value="$once{this._min.getText()}" type="number"/>   

<method name="culcu">

var edithour = this._hour.getText();

var editmin = this._min.getText();

var sumo = edithour + editmin ;
this.demoTime.setAttribute("value", sumo);
</method>



<attribute name="demoTime" value="0" type="number"/>
<method name="fadeText" args="item">
        
                var hour = Math.floor(this.demoTime/3600);
                var min = Math.floor((this.demoTime - (hour * 3600))/60);
                var restSeconds = ((this.demoTime - (hour * 3600)-(min*60)));
                if (restSeconds < 10) {
                    restSeconds = "0"+restSeconds;
                }
                var tString = hour + "-" + min + "-" + restSeconds ;
                
                this._text._text.setAttribute("text",tString);
                this.demoTime--;
                lz.Timer.addTimer( new LzDelegate( this, "fadeText" ), 1000 );
          
        
    </method>
  
    
    <view name="_text" x="2" width="$once{ parent.width -4 }" clip="true" y="24" height="$once{ parent.height-25 }">
        <text name="_text" text="" width="$once{ parent.width }" multiline="true" resize="false"/>
    </view>

        </canvas>

Cross References

Named Instances