Hi There,

I have a flash file that has a movie clip and a flv video player in.

The movie clip adds as an image holder for images that are loaded in, the video player plays the videos that are loaded in.

I am trying to load in the images and videos via javascript.

My HTML page looks like this...

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
	<head>
		<title></title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<script type="text/javascript" src="swfobject.js"></script>
		<script type="text/javascript">
			swfobject.registerObject("videoplayer", "9.0.0", "expressInstall.swf");
			so.addVariable("posterPath", "1.jpg");
   			so.addVariable("videoPath", "1.flv");
			so.addParam("allowScriptAccess","always");
   			so.write("flashcontent");
		</script>
	</head>
	<body>
		<div>
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="360" height="270" id="videoplayer">
				<param name="movie" value="video_player.swf" />
				<param name="allowScriptAccess" value="sameDomain" />
				<!--[if !IE]>-->
				<object type="application/x-shockwave-flash" data="video_player.swf" width="360" height="270">
				<!--<![endif]-->
					<a href="http://www.adobe.com/go/getflashplayer">
						<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
					</a>
				<!--[if !IE]>-->
				</object>
				<!--<![endif]-->
			</object>
		</div>
	</body>
</html>
Notice the variables 'posterPath' and 'videoPath'.

My question is how in flash can i load the image and video into the empty movie clip and flv video player.

my flv video player is called 'my_FLVPlybk' and my image holder is 'image_holder'.

Any help on how to call those variables from javascript and make the appear in flash would be greatly appreciated.

Many thanks


Jon