Thanks Norm.  That's useful info.  It would be nice if we could deprecate some 
of the less-used (or unnecessary because they are duplicates) attributes.  At 
the very least it would be nice to consolidate `start`/`started`.  It seems to 
me that `started` is really used to store the state of `start` between the time 
the animation is created and the time it is fully initialized.  It doesn't seem 
to me that we need to expose this internal state.

It seems redundant to have `onstart`, `isactive`, and `onstop`.  I know I use 
`onstart` and `onstop` quite regularly, but I don't think I have ever used 
`isactive`.

I'd be interested to know if anyone out there uses the `started` or `isactive` 
attributes.

On 2010-03-05, at 20:16, Norman Klein wrote:

> Yes. In the Laszlo in Action book, when the usage of the animator and
> animatorgroup tags were explained, we found its usage to be confusing.
> As a result,  the editorial decision was made to only cover the
> following animator attributes:
> 
> attribute
> duration
> from
> motion
> paused
> process
> relative
> repeat
> start
> target
> to
> 
> Focusing on this subset allowed the animator functionality to be
> explained in a straightforward manner. And no one ever complained that
> this coverage was incomplete.
> 
> Norman Klein
> Author: Laszlo in Action
> 
> On Fri, Mar 5, 2010 at 6:00 PM, P T Withington <[email protected]> wrote:
>> I'm trying to make sense out of the animator API.  They seem to have an 
>> excess of attributes and events regarding the state of the animation.  In 
>> particular, why do we need `start` and `started` which seem rather confused: 
>>  setting `start` will set `started` but not `start` and will send 
>> `onstarted` but not `onstart`; both `start` and `onstart` will eventually be 
>> sent when the animator actually starts, but this seems backwards to me.
>> 
>> Attributes:
>> 
>> start -- you set this to say you want the animator to start, but it won't 
>> have that value until the animator actually does start
>> started -- this reflects the value you _tried_ to set in `start`?
>> paused -- you can set this to temporarily pause the animation
>> isactive -- this is read-only and will be true if the animation started but 
>> didn't stop yet
>> 
>> Events:
>> 
>> onstart -- sent when the animator actually starts (but not when it repeats, 
>> despite the documentation)
>> onstarted -- sent when you set the `start` attribute!
>> onpaused -- sent when you set the `paused` attribute
>> onrepeat -- sent each time the animator repeats
>> onstop -- sent when the animator stops
>> 
>> Does anyone else find the start/started logic confusing?
>> 


Reply via email to