Jac
> --
> To unsubscribe, reply using "remove me" as the subject.
| The naming makes sense to me since it is an event (extends MouseEvent) and contains the statics for the events it provides (releaseOutside). It works like I would expect:...and APIs normally work like you would expect when you're the one who writes them. :)
I immediately think, "Wait, I thought this was an event? Do I need to dispatch something now?" Looking through the code I can see that this applies to RenderEvent as well.
Tyler, I see your point in separating the basic button functionality
from the concrete ButtonBehavior and it definitely makes sense but I
have to agree with Ben & Baz that the initialisation probably belongs
in a separate class from the Event itself.
What are your thoughts on a package level function, something like
reflex.helper::initialiseButton(InteractiveObject). Then it still
exists as a separate entity from the reflex Behaviors system, can be
used by Flash as a single line initialisation function and the
listeners inside it can still dispatch simple ButtonEvents. I think
it's a patten that more new-comers will find familiar; an Event class
that manages its own dispatch is a bit confusing. You could apply the
same logic to the RenderEvent like reflex.helper::initialiseRenderer()
though the rendering logic probably requires a full static / singleton
class implementation.
Anyway, just thought I'd throw that out there. Please excuse my funny
australian spelling of initialise :)
On Apr 13, 1:51 pm, Jacob Wright <jacwri...@gmail.com> wrote:
> At least with all the discussion over every piece we'll have quite a
> mature base to build on. We won't please everyone, but we will
> probably please most with out APIs.
>
> Great feedback!
>
I feel a little weird that two against one don't view this in the same way. I think I'm going to wait for this to come up again just for my own self assurance, but I'll probably push for refactoring these at that time. Again, no one's concerned about the logic or architecture involved here. It's just an API issue.
What are your thoughts on a package level function, something like
reflex.helper::initialiseButton(InteractiveObject). Then it still
exists as a separate entity from the reflex Behaviors system, can be
used by Flash as a single line initialisation function and the
listeners inside it can still dispatch simple ButtonEvents.
Anyway, just thought I'd throw that out there. Please excuse my funny
australian spelling of initialise :)