1 Reply Latest reply on May 10, 2006 7:08 PM by TimSymons

    flash params

    codescodescodes
      Hi everyone. I just had a question about getting a flash params into flash. Basically, HTML is going to pass a params into flash so how does flash retrieve it?
        • 1. flash params
          TimSymons Level 1
          When you define the FlashVar in the <object> tag you also define the name of the variable. Like this:

          <param name="FlashVars" value="username=Thomas" />

          variable: username
          value: Thomas

          The variable "usernam" is defined on the _root level of your movie. So you may reference it like _root.username from anywhere in you SWF file.

          This also works when you pass them in using:

          myfile.swf?username=Thomas


          Tim