# flashVars?

**URL:** <https://forum.kirupa.com/t/flashvars/280285>\
**Category:** flash\
**Created:** [January 25, 2009, 6:32pm UTC](https://forum.kirupa.com/t/flashvars/280285 "2009-01-25T18:32:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonhardwick](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jasonhardwick](https://forum.kirupa.com/u/jasonhardwick)\
**Post date:** [January 25, 2009, 6:32pm UTC](https://forum.kirupa.com/t/flashvars/280285/1 "2009-01-25T18:32:00Z")

</div>

I am passing a php value to my flash movie but it isn’t inserting the file.

Here is the PHP code:

```php
	AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','width','780','height','370','id','videoPlayer-1','align','middle','src','videoPlayer-1','quality','high','bgcolor','#282727','name','videoPlayer-1','allowscriptaccess','sameDomain','allowfullscreen','false','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','videoPlayer-1','flashvars','ID=<?php echo( $row['movie_hi'] ) ?>'); //end AC code
	}
</script>
  <noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="780" height="370" id="videoPlayer-1" align="middle">
      <param name="allowScriptAccess" value="sameDomain" />
      <param name="allowFullScreen" value="false" />
      <param name="movie" value="videoPlayer-1.swf" />
      <param name="quality" value="high" />
      <param name="bgcolor" value="#282727" />	
      <param name="flashvars" value="ID=<?php echo( $row['movie_hi'] ) ?>"/>
      <embed src="videoPlayer-1.swf" flashvars="ID=<?php echo( $row['movie_hi'] ) ?>" quality="high" bgcolor="#282727" width="780" height="370" name="videoPlayer-1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />    
  </object>

```

and her is the AS3 that i’m using to call the flashVar:

```auto
var movie:String = stage.loaderInfo.parameters.ID;

var conn:NetConnection = new NetConnection();
conn.connect(null);

var stream:NetStream = new NetStream(conn);
//stream.play("85391-13979.m4v");
stream.play(movie);

```

any help would be greatly apreciated…

Thanks
