9 Replies Latest reply on Nov 30, 2010 3:12 PM by Flex harUI

    topLevelApplication.parameters are always empty

    flexy_flex Level 1

      When I debug my app, the topLevelApplication.parameters are empty regardless of my URL query parameters.

       

       

      My app's URL:

           http://mywindowsbox/MyPrototype-debug/MyPrototype.html?hello=blah&debug=true#

       

      My test code:

           protected function application1_creationCompleteHandler(event:FlexEvent):void
           {
                var test1:String = FlexGlobals.topLevelApplication.parameters.hello;

                var test2:String = FlexGlobals.topLevelApplication.parameters.debug;

                var test3:String = FlexGlobals.topLevelApplication.parameters[0];

           }

       

      My test code result:

            test1=null;

            test2=null;

            test3=null;