MainTimelime ContextMenuItem MENU_ITEM_SELECT event not dispatched on Loader containing external SWF
- custom context menu applied maintimeline
- using loader() load external swf , have added container's display chain
- right-click loaded swf, custom context menu appears menu_item_select events not dispatched when items clicked
- right-clicking elsewhere in parent swf works fine, on deep-nested objects (not loaded externally)
- 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
Post a Comment