# Broadcasting an Event

**URL:** https://forum.kirupa.com/t/broadcasting-an-event/234785
**Category:** flash
**Created:** [August 6, 2007, 6:46am UTC](https://forum.kirupa.com/t/broadcasting-an-event/234785 "2007-08-06T06:46:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![glidealong](https://avatars.discourse-cdn.com/v4/letter/g/da6949/32.png) [@glidealong](https://forum.kirupa.com/u/glidealong)
#### Post date: [August 6, 2007, 6:46am UTC](https://forum.kirupa.com/t/broadcasting-an-event/234785/1 "2007-08-06T06:46:00Z")

</div>

Is it possible to broadcast an Event across the entire UI tree?  
The scenario is implementing themability for a UI tree with lots of branches and nodes. Currently I am implementing the same with a preorder iteration of the tree and setting the corresponding properties. An event based model could be a more elegant way of doing it. I have a static theme class added to the displayList at the root level. When ever a change occurs on the same, currently the document class iterates the entrie UI tree and changes the properties of the UI elements. Rather I would have an event broadcasted across the entire UI tree from the root(downwards) and have the UI elements listen to the event.  
Any help is appreciated…  
Thanks in advance
