views:

192

answers:

3

Hi ,

I have an application which embeds a xulrunner based browser. I have to load some flash content in it which talks to some javascripts to update the browser title.

The flash content works fine when launched from Firefox but not inside my app. I tried a sample html file which has some javascripts and they work fine. It even works when I have the flash content on a server. It is only when I try to run js through flash present on my local machine that I see this problem.

I guess it must have something to do with some security settings in xulrunner. Could somebody help me figure out what the problem might be?

Thanks jbsp72

A: 

Check out this answer, it might the solution of your problems.

David Hanak
I have the flash player trust file and I have the appropriate entries in the file. The location for the file on unix is /etc/adobe/FlashPlayerTrust . But still it doesn't work. I have added the path to my application also in the trust file to make sure that my application is also trused.
A: 

I have the appropriate entries in the flash player trust file. I have the entry for the swf file I am loading, it's parent directory and my application which has the browser. I tried placing the cfg file in both the global location at /etc/adobe/FlashPlayerTrust and the user specific location at ~/.macromedia/#Security/FlashPlayerTrust . Is there any thing else that needs to be there in the trust file. Or is there any other security setting( may be in the mms.cfg file ) that may be preventing my application from running Javascript's from inside Flash?

Thanks jbsp72

A: 

You can also change the browser title from within the application itself...

import mx.managers.IBrowserManager;
import mx.managers.BrowserManager;

private var bm:IBrowserManager = BrowserManager.getInstance();
bm.init("", "New Browser Title");
adam