A few features offered in Flash's scripting language are handful of event listeners you can attach to Flash that will in tern call any associated JSFL function you've attached to them while Flash is running. You can then listen for events like "documentNew", "documentChange", "mouseMove", etc.
JSFL Code Would Look Something Like this:
My swfPanel registers a callback function, "callBackFunction_InsideFlashPanel" which would handle the event inside the panel.
This is a way of ensuring my Panel is notified when a change takes place in Flash.