Hi,

Veli Ogla Sungutay <[email protected]> wrote:

> I have strong background in Flash programming and I'm trying to understand
> the similarities and differences between Clutter and Flash Events. Here is a
> simple event application that shows how Flash Player is handling events with
> parent, child mouseOver, rollOver behavior:
> *http://lyciasoft.com/tests/events/flash/

Clutter's event model is closely based on the HTML4 event model¹ so that
it has a capture and bubble phase. I don't know whether that's the same
in Flash although it looks like from that example it at least has the
bubble phase. There's a short description of Clutter's model in the
cookbook².

The ‘reactive’ property is something that is probably specific to
Clutter. This property controls whether the actor will be painted during
the pick phase for determining which actor was clicked when handling a
mouse event. If this property is FALSE then the actor can not emit mouse
events (although it will still emit the signal with the source set to
the child if a child actor receives a mouse event). The reactive
property is really intended just as an optimisation so that an
application can mark certain actors as not needing to be picked to save
time during the pick phase. However it can also be used to for tricks
like the one described in the previous email.

Regards,
- Neil

¹ http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-capture
² http://ho.io/n3a6
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to