1 Reply Latest reply on Jul 24, 2008 9:18 PM by Noelbaland

    testing sendAndLoad

    Nick_The_Nameless
      the following code works fine after i export the movie and view it in a web browser. however, when i change the url of sendAndLoad to the full url and try to test it using the flash application, it doesn't work. the sendAndLoad is successful, but it's not loading the variables of serverResponse. what am i doing wrong?
        • 1. Re: testing sendAndLoad
          Noelbaland Level 1
          Hi,

          You need to use dot notation to access your data in the LoadVars object. You're currently using array referencing.

          This

          numOfIcons = serverResponse["num_of_icons"]; // should be
          numOfIcons = serverResponse.num_of_icons;

          Same thing here

          var guidedSearchData:String = serverResponse["icon_data"]; // should be
          var guidedSearchData:String = serverResponse.icon_data;