Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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>

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •