Skip navigation
Currently Being Moderated

MainTimelime ContextMenuItem MENU_ITEM_SELECT event not dispatched on Loader containing external SWF

Apr 29, 2013 10:57 AM

  1. custom context menu applied to MainTimeline
  2. using a Loader() to load an external SWF and have it added to its container's display chain
  3. right-click loaded SWF, custom context menu appears but the MENU_ITEM_SELECT events are not dispatched when the items are clicked
  4. right-clicking elsewhere in the parent SWF works fine, even on deep-nested objects (not loaded externally)
  5. removing loaded SWF from display chain and right-clicking in its location works fine
  • Currently Being Moderated
    May 2, 2013 2:31 AM   in reply to Steven Vachon

    May be providing currentDomain while loading will help.

    To use a custom LoaderContext object, you must understand the SecurityDomain and ApplicationDomain classes.

    may be this will help

    var _urlRequest:URLRequest=new URLRequest(url);

                _loader = new Loader();

                var _lc:LoaderContext=new LoaderContext(false,ApplicationDomain.currentDomain,null);

                _loader.contentLoaderInfo.addEventListener(Event.COMPLETE,ratepageLoa ded);

                _loader.load(_urlRequest, _lc);



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points