24 Replies Latest reply on Apr 29, 2011 8:25 AM by Drew747

    FlexGlobals + FireFox + topLevelApplication + web server deployment = unhappy application?

    Devtron Level 3



      I have a strange problem regarding FlexGlobals. I have an XML configuration file that is external to my .SWF. One of the settings in my configuration file is my build version number. I need to display the build version number for my QA team.


      The really strange part is that I can debug locally, in Firefox, and everything works fine. I see my build version number as desired.


      So I deploy this to my web server for QA to test, and it no longer works in Firefox. But it does work in Safari and IE. Just not FireFox.




      Here is my XML file read code:


      var request:URLRequest = new URLRequest("myconfig.xml");

      loader.addEventListener(Event.COMPLETE, URLLoadCompleteHandler);



                  private function URLLoadCompleteHandler(event:Event):void {
                      //read from XML config file
                      var dataXML:XML = XML(event.target.data);


                      if (dataXML.version != null) {
                          //load build version number






      Here is my function that reads my build version:


          public static function getBuildVersion():String {
                  if (GlobalUtility.BUILD_VERSION == null) {
                      // no cached value, which means this is the 1st time this
                      // method has been hit. Grab value from global object.
                      GlobalUtility.BUILD_VERSION = FlexGlobals.topLevelApplication.buildVersion;
                  return GlobalUtility.BUILD_VERSION;




      Why would this work in Firefox locally, but not from my Web Server? Is there something I am missing? There are other XML config attributes my application uses just fine. Any ideas what is going on here?