[Laszlo-dev] should getExpectedAttribute be private?

Jon Gilkison misterfingers at gmail.com
Sun Dec 19 23:43:12 PST 2004


Couldn't you check the animator's started property?  Or are you asking
if you can tell if something is being animated by constraints or
through state?

<view x="0" y="0" width="300" height="300" bgcolor="black" opacity="1">
  <method name="isFading">
    return (this.fadeIn.started || this.fadeOut.started);
  </method>
  <animator name="fadeIn" attribute="opacity" to="1" duration="500"
start="false">
  </animator>
  <animator name="fadeOut" attribute="opacity" to="0" duration="500"
start="false">
  </animator>
</view>


On Sun, 19 Dec 2004 21:44:52 -0800, Sarah Allen
<sallen at laszlosystems.com> wrote:
> 
> There's a question on the forums about how to tell whether something is
> still moving (after calling
> animate).
> http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&postid=5997#post5997
> 
> The first solution that came to mind was calling getExpectedAttribute (on
> LzNode), but I notice it is marked private.  Why is that?  Is there a
> better way to check if something is still animating?
> 
> Sarah
> 
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>


More information about the Laszlo-dev mailing list