Question : Load preview image using swfObject

I currently am building a player to be loaded dynamically using swf object 2.0. So far so good, except I want to load a preview image of my choice. I put a movieclip on the stage and called it myposter.
I then added this code :

var file_still_URL:String = root.loaderInfo.parameters.video_image;

then i called it in a function like this:

myposter.load(file_still_URL);

I will paste the code for the html page below. What am I missing, it doesn't seem to be loading

Side note. I created this other ticket and this is a continuation of it.
I am also using as3.
http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_26352767.html
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<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("featured_player2_1.swf", "player1", "550", "400", "9", "#336699");
	so.addVariable("video_file","movie.mp4");
	so.addVariable('video_image', 'm_still.jpg');
	
	so.write("flashcontent");
	
   // ]]>
</script>

Answer : Load preview image using swfObject

Problem is with:: myposter.load(file_still_URL);

To load image AS3:
-------------------------------------------------------
                  var loader:Loader = new Loader();
                  var urlRquest:URLRequest = new URLRequest(file_still_URL);
                  myposter.addChild(loader);
                  loader.load(urlRquest);
-------------------------------------------------------

Hope this will help.
Random Solutions  
 
programming4us programming4us