Loading ...
Sorry, an error occurred while loading the content.

16558Flash dynamic textfield in a movie symbol

Expand Messages
  • yakkeayes
    Feb 27, 2009
    • 0 Attachment
      I need help loading values into a dynamic textfield of a flash
      movie. My code works if the dynamic text field is not in a movie
      clip symbol. But as soon as i put the dynamic textfield in a movie
      clip it doesn't work. Here's my code.

      <title>movie</title>
      <script language = "JavaScript"><!--
      window.onload =function Flash(){
      window.document.welcomez.SetVariable("firstname", "hello");
      }
      //--></script>
      </head>
      <body bgcolor="#ffffff">
      <!--url's used in the movie-->
      <!--text used in the movie-->
      <!-- saved from url=(0013)about:internet -->
      <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
      codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/s
      wflash.cab#version=7,0,0,0" width="640" height="240" id="welcomez"
      align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="movie" value="welcomez.swf" /><param name="quality"
      value="high" /><param name="bgcolor" value="#ffffff" /><embed
      src="welcomez.swf" quality="high" bgcolor="#ffffff" width="640"
      height="240" name="welcomez" align="middle"
      allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
      pluginspage="http://www.macromedia.com/go/getflashplayer" />
      </object>

      </body>
      </html>

      Name is the name of the movieclip.

      firstname is the variable name of the dynamic textfield.

      i tried _root.Name.firstname but it doesnt work.

      thanks in advance