0

I'm working with a ContextMenu and I was able to locate the events for detecting when a selection is made, however I want to detect when the "Settings" menu item in particular is closed. How could I go about this? I'm currently embedding iframes in the flex application and I want to hide them until the menu is closed.

The culprit:

enter image description here

buddyp450
  • 528
  • 2
  • 10
  • 27

1 Answers1

0

This StackOverflow answer should help.

It is a workaround, but I think it is the best we can do for now.

  • When you detect menuItemSelect event, add enterFrame event handler
  • In the event handler, check if BitmapData.draw(stage) throws an error.
  • If it stops throwing error, then remove the enterFrame handler and do what you want: set iframe to visible.
Community
  • 1
  • 1
Chaniks
  • 389
  • 1
  • 7