Pause My Shockwave File

2 replies
Why doesn't the swf file pause and play again when I click the buttons? It does not work at the moment. Please help me. Here is the code for the page, pretty basic stuff:

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Test</title> <script language="JavaScript" type="text/javascript"> cbr202=Math.random()*10000000000000000;document.write('<scr'+'ipt language="JavaScript" src="http://datinglion.com/tracking202/static/landing.php?lpip=927&202cb='+cbr202+'" type="text/javascript"></scr' + 'ipt>'); </script> </head> <body> <table width="700" border="0" align="center"> <tr> <td align="center"></td> </tr> <tr> <td width="288"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="280" height="210" id="Flash1"> <param name="movie" value="filename.swf"> <param name="quality" value="High"> <param name="scale" value="ExactFit"> <param name="wmode" value="Window"> <param name="play" value="true"> <param name="loop" value="false"> <param name="menu" value="false"> <param name="allowfullscreen" value="false"> <param name="allowscriptaccess" value="sameDomain"> <param name="sAlign" value="tl"> <embed src="filename.swf" width="280" height="210" quality="High" wmode="Window" loop="false" play="true" menu="false" allowfullscreen="false" allowscriptaccess="sameDomain" scale="ExactFit" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> </embed> </object> <div style="margin-top:2px;width:264px;text-align:center;color:red;font-size:120%;"><strong>JaymeeM12</strong> |  <a href="javascript:document.movie.Play()">►play </a>&nbsp;&nbsp;<a href="javascript:document.movie.StopPlay()">║pause</a> </div>
#file #pause #shockwave
  • Profile picture of the author David V
    I don't see an obvious problem, but I'm not an embed/object expert at all.
    Using SWFobject is a far better solution though.
    {{ DiscussionBoard.errors[7603109].message }}
  • Profile picture of the author Valuable Solos
    Thanks so anyone know what's causing it to mess up?
    {{ DiscussionBoard.errors[7622578].message }}

Trending Topics