Is proj-client-2.0-SNAPSHOT.swf on FlashPlayerTrust? http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_03.html#140756
VELO On Mon, Aug 17, 2009 at 11:52 PM, aparrish <[email protected]> wrote: > > All: > > I apologize for bringing up an old topic, but it appears that my issue > from a few weeks ago is still laying around waiting for me to solve it > with your help hopefully. > > I am attempting to call the following on a SWF project that used to be > generated with FlexBuilder, but now it is built via Maven (Flex Mojos) > > The lines of code I am attempting to call are: > var eventDispatcher1:IEventDispatcher = > StyleManager.loadStyleDeclarations( "./styles/ > PROJECT_baseTheme.swf" ); > eventDispatcher1.addEventListener > (StyleEvent.COMPLETE,baseThemeLoaded); > > I do not receive an error when building via Flexbuilder and running > the project, but when running via the code generated by Flex Mojos I > receive the following error: > > *** Security Sandbox Violation *** > SecurityDomain 'file:///Users/adamparrish/PROJCT/proj/proj-client/ > target/proj-client-2.0-SNAPSHOT.html' tried to access incompatible > context 'file:///Users/adamparrish/PROJECT/proj/proj-client/target/ > proj-client-2.0-SNAPSHOT.swf' > Error: Unable to load style(SWF is not a loadable module): ./styles/ > PROJ_baseTheme.swf. > at <anonymous>()[C:\autobuild\3.2.0\frameworks\projects > \framework\src\mx\styles\StyleManagerImpl.as:858] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at ModuleInfoProxy/moduleEventHandler()[C:\autobuild > \3.2.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as: > 1097] > at flash.events::EventDispatcher/dispatchEventFunction() > at flash.events::EventDispatcher/dispatchEvent() > at ModuleInfo/initHandler()[C:\autobuild\3.2.0\frameworks > \projects\framework\src\mx\modules\ModuleManager.as:676] > > I do not receive the Security Sandbox Violation when using the SWF > generated by FlexBuilder. I have used the PROJECT_baseTheme.swf file > from FlexBuilder and Flex Mojos successfully from the FlexBuilder > version of the client. > > I have generated and compared compiler parameters and recently just > generated the parameters with a -dump-config=/tmp/config and used the / > tmp/config file as input to flex mojos with the configFile parameter > in the configuration section. > > Still no luck, so I think the path I am on right now is figuring out > why I get the security exception in the binary executing that is > generated by Flex Mojos, but not in Flex Builder. Any other thoughts > as to how to get rid of that security exception would potentially help > me figure this out. > > Thanks to all who read the post and help me come up with something to > try. > > -Adam > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
