Friday, April 8, 2011

Flash not interacting with Javascripts in browser inside my app

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

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

  • 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

  • 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");
    

0 comments:

Post a Comment