2 Replies Latest reply on Sep 11, 2007 10:39 AM by mtbennett24

    Check for vars passed from HTML


      I am trying to check for a var that is passed into a SWF via HTML (file.swf?var1=something) however when I check for the var on the first frame while publishing the SWF in the test environment it tells me the var is not defined.

      if (s=="something") {
      } else {

      The var may or may not be passed into the SWF. So when I test this locally in the Flash authoring environment the Output window tells me that 's' is not defined. Is there a way to test without defining 's'? Defining 's' will overwrite any value that is passed into the SWF won't it?