//First part is the HTML...
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("videoPlayer.swf", "player1", "550", "400", "9", "#336699");
so.addVariable("fileName","someVideo.mp4");
so.write("flashcontent");
// ]]>
</script>
/*Now the AS code, which can have a different syntax if you're using AS2 or AS3, but it's basically the same gist.
AS2: You can access it the file URL by referencing _root.fileName ('cause that's the name of the variable we're sending)*/
var fileURL:String = _root.fileName;
//something like flvPlayback.load(fileURL); should go here
/*AS3: You can access the same var by referencing root.loaderInfo.parameters.fileName*/
var fileURL:String = root.loaderInfo.parameters.fileName;
//do whatever
|