views:

184

answers:

1

Is there a way for a custom panel for Flash CS4 to register for IDE events?

I've built a custom panel for the CS4 IDE, and now I'd like to get a callback anytime the current selection on the stage changes. Is this possible?

My backup plan is to have my panel poll the IDE for the selected object several times a second, but this is weak, and won't extend to other kinds of events like deleting objects from the stage or saving the file.

Thanks, Matt

A: 

In CS4, yes there are a few events.

There is no selectionChangedEvent unforunately, buy maybe you can work out something using frameChanged or documentChanged. DocumentChanged might be more often than you need. Try on frameChanged. More events are listener in the fl.addEventListener() reference.

Also, here is a handy post on fl events and swfPanel.

Goodluck!

George Profenza
Thanks, George! That was exactly what I've been looking for.
Matt W