Link to home
Start Free TrialLog in
Avatar of UseeMe
UseeMe

asked on

playing different swf files using using AC_FL_RunContent with out reloading the page

I need to be able switch which swf file is being played by clicking a link and with out the page reloading . I have 2 swf files both are in the same directory. movie1 & movie2.
I have seen similar questions solved by using an embeded object, this will not work for me.
the swf file must be called from AC_FL_RunContent.
Also I can not modifiy the swf files.

here is a mock up of my current code

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td  colspan="3" align="LEFT">
            <script name="productVideo" type="text/javascript">AC_FL_RunContent( 'codebase','https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','640','height','390','src','flash/movie1','quality','high','pluginspage','https://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/movie1, 'FlashVars', 'lscore=', 'wmode', 'transparent' );</script>
            <br><br>
        </td>
    </tr>
    <tr>
        <td width="100">
          <a href="javascript:playvid('movie1);">PLAY VID 1</a>             
        </td>
      <td width="200">
      </td>
      <td width="100">
          <a href="javascript:playvid('movie2);">PLAY VID 2</a>             
        </td>
</table>
</body>
</html>
ASKER CERTIFIED SOLUTION
Avatar of rascalpants
rascalpants
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial