2 Replies Latest reply on Mar 18, 2009 5:07 AM by loadVariables

    FlashVars value is undefined

    loadVariables
      Hi

      actionscript 2.0

      I'm trying to send a FlashVars value into my flash movie. but it only gets the value "undefined". I know it gets the value undefined as the flash movie has a dynamic text field which gets the flshvars value...

      Okay here is the html markup:
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="960" height="108">
      <param id="Param1" name="movie" value="../Flash/test.swf" />
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="false" />
      <param name="movie" value="../Flash/test.swf" />
      <param name="FlashVars" value="frameid=world" />
      <embed src="../Flash/test.swf" width="960" FlashVars="frameid=world" height="108" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage=" http://www.adobe.com/go/getflashplayer"></embed>
      </object>

      In actionscript, keyframe 1 I have this code:
      if (frameid == "world")
      {
      gotoAndStop(10);
      }
      else
      {
      trace(frameid);
      }
      txtDebug.text = frameid;

      why do frameid gets the value "undefined"? what am I doing wrong here?? I've been banging my head against the wall about this problem for days now...