View Full Version : Onclick change flv

04-08-2009, 12:22 PM
I have a website that is designed to show a flv movie when the page is loaded.
What I am trying to do is the following;
When someone clicks a text link the flv movie will change and play in the same player as the original movie played in.

Here is my html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<table width="500" border="1" align="center">
<td><div align="center">Model Photoshoot Movies</div></td>
<td> <table width="400" align="center">
<td><div align="center">Movie 1</div></td>
<td><div align="center">Movie 2</div></td>
<td><div align="center">Movie 3</div></td>
<td><div align="center">Movie 4</div></td>
<td><div align="center">Movie 5</div></td>
<td><div align="center">Movie 6</div></td>
<td><div align="center">Movie 7</div></td>
<td><div align="center">Movie 8</div></td>
<td><div align="center">Movie 9</div></td>
<td align="center" valign="middle"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=model_vids/movie_paulina.flv&autoPlay=true&autoRewind=false" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=model_vids/movie_paulina.flv&autoPlay=true&autoRewind=false" quality="high" scale="noscale" width="320" height="240" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />


04-08-2009, 12:44 PM
You might look at fscommand : http://www.moock.org/webdesign/flash/fscommand/

I don't know if that's the current way of doing things but it foes work.

04-08-2009, 01:01 PM
Thank you for your help, but the solution you provided me was not what I was looking for unfortunately