Skip to main content
Participant
April 16, 2008
Question

FlashVars Undefined

  • April 16, 2008
  • 4 replies
  • 829 views
I need help with passing the flv file name as a flashvars. FlashVars undefined.

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cab... < http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab>=7,0,0,0" width="400" height="300" id="sb8" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="sb8.swf" />
<param name="FlashVars" value="movname=stats.flv" />
<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
<embed src="sb8.swf" FlashVars="movname=stats.flv" quality="high" bgcolor="#ffffff" width="400" height="300" name="sb8" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="< http://www.macromedia.com/go/getflashplayer>" />
</object>

In the Action Script I have tried the following

var _vidName:String = _level0.movname;

or

var _vidName:String = _root.movname;

During Debug mode in Flash 8.0 the _vidname remains undefined.

I appreciate any assistance.
This topic has been closed for replies.

4 replies

kglad
Community Expert
Community Expert
May 16, 2008
you're welcome.
Inspiring
May 16, 2008
Beautiful! I got it to work. Thanks!
kglad
Community Expert
Community Expert
April 16, 2008
your flashvars needs to be defined in your AC_FL_RunContent() function, too.
Inspiring
May 15, 2008
Can someone show specifically how to change the AC_FL_RunContent function to make the FlashVars to work? I'm finding it particularly difficult to find instructions on how to make FlashVars work with Actionscript 2.0 now that AC_FL_RunContent is involved.