Hi guys,

I've got a parent application with a 'delete' button. When it's
clicked, I want to set a flag in a child swf, which is loaded via SWF
loader.

So in the parent app on the button's click event I'm dispatching an event:

dispatchEvent(new Event("inDeleteMode"));  

In the child SWF's init function I've got this:

this.addEventListener("inDeleteMode", deleteModeHandler);

And then the deleteModeHandler function (stubbed in for testing):

private function deleteModeHandler():Boolean
{
  Alert.show("got it!");
  return true;
}

It ain't working. Can someone see what I'm doing wrong?

Thanks,

David

Reply via email to