<div dir="ltr"><div>Hi,<br><br></div>any idea why the CoverBackgrounds onStateChanged does not fire in this code sample:<br><br><span style="color:rgb(128,0,128)">CoverBackground</span><span style="color:rgb(192,192,192)"> </span>{<br><span style="color:rgb(128,0,0)">onStateChanged</span>:<span style="color:rgb(192,192,192)"> </span>{
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">        </span><span style="font-style:italic;color:rgb(0,85,175)">console</span>.debug(<span style="color:rgb(0,128,0)">"--></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Cover</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">state</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">"</span><span style="color:rgb(192,192,192)"> </span>+<span style="color:rgb(192,192,192)"> </span><span style="font-style:italic;color:rgb(0,0,0)">state</span>);</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">        </span><span style="color:rgb(128,128,0)">if</span><span style="color:rgb(192,192,192)"> </span>(<span style="font-style:italic;color:rgb(0,0,0)">state</span><span style="color:rgb(192,192,192)"> </span>===<span style="color:rgb(192,192,192)"> </span>Cover.Active)</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">            </span><span style="font-style:italic;color:rgb(0,85,175)">console</span>.debug(<span style="color:rgb(0,128,0)">"--></span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">Do</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(0,128,0)">stuff!!!"</span>);</pre>
<pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)">    </span>}</pre><br clear="all"><div><div><div>If I create a timer with running: state===Cover.Active the timer runs when the cover is active and stops when it's not.<br><br>I'd really like to update some stuff on my cover everytime it comes visible.<br><br>// Peter Pykäläinen</div>
</div></div></div>