Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-08-2009, 12:20 PM   PM User | #1
trigger2k
New to the CF scene

 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
trigger2k is an unknown quantity at this point
Onclick Change FLV

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:

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>
trigger2k is offline   Reply With Quote
Old 04-09-2009, 09:36 AM   PM User | #2
gnomeontherun
Senior Coder

 
gnomeontherun's Avatar
 
Join Date: Sep 2007
Location: Houston
Posts: 2,846
Thanks: 10
Thanked 238 Times in 229 Posts
gnomeontherun will become famous soon enoughgnomeontherun will become famous soon enough
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.
__________________
jeremy - gnomeontherun
Educated questions often get educated answers, and simple questions often get simple answers.
gnomeontherun is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:47 AM.


Advertisement
Log in to turn off these ads.