MainTimelime ContextMenuItem MENU_ITEM_SELECT event not dispatched on Loader containing external SWF


  1. custom context menu applied maintimeline
  2. using loader() load external swf , have added container's display chain
  3. right-click loaded swf, custom context menu appears menu_item_select events not dispatched when items clicked
  4. right-clicking elsewhere in parent swf works fine, on deep-nested objects (not loaded externally)
  5. removing loaded swf display chain , right-clicking in location works fine

may providing currentdomain while loading help.

to use custom loadercontext object, must understand securitydomain , applicationdomain classes.

may help

var _urlrequest:urlrequest=new urlrequest(url);

            _loader = new loader();

            var _lc:loadercontext=new loadercontext(false,applicationdomain.currentdomain,null);

            _loader.contentloaderinfo.addeventlistener(event.complete,ratepageloaded);

            _loader.load(_urlrequest, _lc);

 

thanks.



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account