Simple event bubbling example

Flex Add comments

A simple example of event bubbling.

Remove the comments and try it with the Button inside and outside the form.

Notice that, when the button is outside the form, the form is not notified about the custom event “FIRE_EVENT”, although it is registered with it.

Check it here. View source enabled.

/******************************************/

Um exemplo simples de event bubbling.

Remova os comentários e compile com o Button dentro e fora do form.

Note que, quando o botão está fora do form, o form não é notificado do evento customizado “FIRE_EVENT”, apesar de se registrar para ouvi-lo.

Veja aqui. View source habilitado.

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in