So you did add an entry to a SWF that was not built by flexmojos?

VELO

On Tue, Aug 18, 2009 at 11:24 AM, aparrish <[email protected]> wrote:

>
> Velo:
>
> Just for the posterity of the group I am going to add my notes here,
> but like you mentioned it was Flex builder's trust configuration that
> solved the problem.
>
> By adding the directory to the end of the file here:
> /Users/adamparrish/Library/Preferences/Macromedia/Flash Player/
> #Security/FlashPlayerTrust/flexbuilder_plugin.cfg
>
> That Flex Mojos places the output (target) I was able to load my SWF
> and the Module's that it includes.
>
> Thanks again for putting up with my questions. It would be nice if
> Flex Mojos added the target directory of SWF's to the local trust or
> if there were an option to do so. Others have to run across this
> problem as well and it would be good if it transparently worked right?
>
> Is this something I can file a ticket in Jira for and maybe attempt to
> help add to your next release? I would be interested in trying to give
> back if you felt it was worthwhile functionality.
>
> -Adam
>
> On Aug 18, 8:01 am, Marvin Froeder <[email protected]> wrote:
> > W8, are you planning to distribute an SWF to your users in a non HTTP
> way?
> > FWIW, flexbuilder does write entries on flashplayertrust
> >
> > VELO
> >
> > On Tue, Aug 18, 2009 at 8:57 AM, aparrish <[email protected]> wrote:
> >
> > > Marvin:
> >
> > > 1) No there is no existence of a file at /etc/adobe
> > > 2) Asking my users to add a directory because we changed our build
> > > process won't fly.
> >
> > > I am hoping there is another recommendation. I also tried creating a
> > > file and adding the parent directory of my SWF/HTML file to it.
> >
> > > Thanks,
> > > Adam
> >
> > > On Aug 18, 7:46 am, Marvin Froeder <[email protected]> wrote:
> > > > And how about Flashplayer thrust?
> >
> > > > > Is proj-client-2.0-SNAPSHOT.swf on FlashPlayerTrust?
> >
> > > > VELO
> >
> > > > On Tue, Aug 18, 2009 at 8:41 AM, aparrish <[email protected]>
> wrote:
> >
> > > > > Velo:
> >
> > > > > Thanks for the response, but when building via Flex Builder it
> works
> > > > > fine with the same code. I was hoping you would know of the
> difference
> > > > > between FB and Flex Mojos that would cause such an exception. It
> can't
> > > > > be just because of the cross domain issue because the same code
> works
> > > > > when compiled via another tool.
> >
> > > > > I will try creating a crossdomain.xml and testing to see if it
> works.
> >
> > > > > -AP
> >
> > > > > On Aug 18, 7:31 am, Marvin Froeder <[email protected]> wrote:
> > > > > > Is proj-client-2.0-SNAPSHOT.swf on FlashPlayerTrust?
> > > > >
> http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_.
> > > ..
> >
> > > > > > 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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to