> As to your saying that they are all the same, in your code, you have
to say .sendEvent and .setAttribute, for different things.
> When? why? do i have to look at code to guess? i prefer simplicity.
It must be my poor english since I find often hard to understand what
you mean.
Or maybe you just think too fast for me and omit some steps.
However I presume that you are saying, that I said, that event and
attribute are the same.
That's not what I said or meant.
Attribute has a name and a value (and type of the value, required
attribute signaling the use of the class the attribute is part of etc.)
event has only a name.
You can register a method to listen to an event.
Not so for an attribute.
So I use event when I don't want to store any associated data with it.
Or did I completely misunderstand you?
- rami