When building custom panels for Flash CS4 IDE, is there a way to attach callbacks to workspace events?

StackOverflow https://stackoverflow.com/questions/1256419

  •  12-09-2019
  •  | 
  •  

Question

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

Was it helpful?

Solution

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!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top