...

View Full Version : Onclick Change FLV



trigger2k
04-08-2009, 01:20 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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table width="500" border="1" align="center">
<tr>
<td><div align="center">Model Photoshoot Movies</div></td>
</tr>
<tr>
<td> <table width="400" align="center">
<tr>
<td><div align="center">Movie 1</div></td>
<td><div align="center">Movie 2</div></td>
<td><div align="center">Movie 3</div></td>
</tr>
<tr>
<td><div align="center">Movie 4</div></td>
<td><div align="center">Movie 5</div></td>
<td><div align="center">Movie 6</div></td>
</tr>
<tr>
<td><div align="center">Movie 7</div></td>
<td><div align="center">Movie 8</div></td>
<td><div align="center">Movie 9</div></td>
</tr>
</table></td>
</tr>
<tr>
<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" />
</object></td>
</tr>
</table>


</body>
</html>

gnomeontherun
04-09-2009, 10:36 AM
This is only part of the code needed, if you don't have a way to pick up links inside of Flash (ExternalInterface) then you can't do this.

Can you edit the actionscript? Otherwise I can only think to load the SWF in an iframe and change the page inside the iframe on click.

2 other things: read the post in my signature about properly embedding Flash, and using tables for layout are bad practice in web design, I would consider altering that.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum