[Tweener] Tweener Events??

Zeh Fernando zeh at zehfernando.com
Mon Dec 15 19:43:36 PST 2008


No, it's not because of any overhead, it's sort of an oversight. It just
carries the AS2 features into the AS3 version but in AS3 using events for
that sort of stuff is a much better idea. My guess is that it would probably
be faster (albeit negligible) to use an EventDispatcher so IMO there's no
real reason for callbacks other than some nostalgic desire for on*
functions.

Still, that's the way it's done now and it's the way it'll be for a while. I
mean, Tweener works well for AS3, but it just carries too much from the AS2
way of doing things so some re-thinking is necessary, and the way to
approach events like that is a big part of it; Tweener AS3 is an adaptation
of an AS2 approach and not a critical re-purposing. I'll have something more
to say about that sort of stuff in the future.

Zeh

On Mon, Dec 15, 2008 at 10:22 PM, Archont <archont at gmail.com> wrote:

> I'm guessing it's because of the additional overhead?
>
> Although I tend to write good code, sometimes the event model can get
> more than tedious. Once your medium-sized application has a dozen
> custom event classes that are almost identical callbacks suddenly seem
> like a good idea again. :P
>
> Pozdrawiam / Regards
>
> Jacek "archont" Janiszewski
> Lead Flash Developer
> janiszewski at m2cstudio.com
> tel. kom. +48 791 884 780
>
> M2C Studio
> m2cstudio.com
>
>
>
>
>
> 2008/12/16 Zeh Fernando <zeh at zehfernando.com>:
> > Unfortunately, no - in that regard, Tweener, even its AS3 version, is
> very
> > AS2-ish, in the sense that it uses the onComplete (et al) functions to
> fire
> > events.
> >
> > Zeh
> >
> > On Mon, Dec 15, 2008 at 8:49 PM, Patrick J. Jankun <p at jankun.org> wrote:
> >>
> >> Hi,
> >>
> >> Im sure that this questions falls few time, but, since i couldn't find
> any
> >> post that has the topic, here is my Question:
> >> Is the Tweener itself dispatching any kind of Events when an tween
> target
> >> is done tweening? Im not asking about Callbacks!
> >> I want register an event listener that lists for events from the tween
> >> target, like tweening begins, tweeing is done.
> >>
> >> Can anybody pinpoint me to some solution?
> >>
> >> thanks in advance,
> >> Patrick
> >> _______________________________________________
> >> Tweener mailing list
> >> Tweener at lists.caurinauebi.com
> >> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
> >
> >
> > _______________________________________________
> > Tweener mailing list
> > Tweener at lists.caurinauebi.com
> > http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
> >
> >
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20081216/a68a5ade/attachment.htm>


More information about the Tweener mailing list