Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hyperlink dosent work (tricky)

Status
Not open for further replies.

Toastie

Programmer
May 19, 2001
123
AU
i need to make the two flash files hyperlinks work
why does this not happen with the current code?



<HTML>
<HEAD>
<META NAME=&quot;GENERATOR&quot; Content=&quot;Microsoft Visual Studio 6.0&quot;>
<TITLE></TITLE>
<script LANGUAGE=&quot;javascript&quot;>
<!--
var count
count=0
function restart1(){

document.f1.fla1.FrameNum = 1
}

function play1(){

if (document.f1.fla1.FrameNum < document.f1.fla1.TotalFrames){
document.f1.fla1.Play()
document.f1.fla1.Loop = false
}
}
function go1(){
window.location = &quot;boo.html&quot;
}
function restart2(){

document.f1.fla2.FrameNum = 1
}

function play2(){

if (document.f1.fla2.FrameNum < document.f1.fla2.TotalFrames){
document.f1.fla2.Play()
document.f1.fla2.Loop = false
}
}
//-->
</script>
</head>
<body scroll=no leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; bgcolor=&quot;#000000&quot;>
<form name=&quot;f1&quot;>
<table>
<tr>
<td><a href=&quot;boo.html&quot; onmouseover=&quot;play1()&quot; onmouseout=&quot;restart1()&quot; onmousedown=&quot;go1()&quot;>
<object id=&quot;fla1&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot; width=&quot;100&quot; height=&quot;20&quot;>
<param name=movie value=&quot;pro.swf&quot;>
<param name=play value=&quot;false&quot;>
<param name=&quot;SCALE&quot; value=&quot;noborder&quot;>
<param name=&quot;BGCOLOR&quot; value=&quot;#000000&quot;>
<param name=&quot;LOOP&quot; value=&quot;false&quot;>
<embed src=&quot;pro.swf&quot; scale=&quot;noborder&quot; pluginspage=&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;200&quot; height=&quot;100&quot; bgcolor=&quot;#000000&quot;>
</embed>
</object></a>
</td>
</tr>
<tr>
<td><a href=&quot;boo.html&quot; onmouseover=&quot;play2()&quot; onmouseout=&quot;restart2()&quot;>
<object id=&quot;fla2&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot; width=&quot;100&quot; height=&quot;20&quot;>
<param name=movie value=&quot;cap.swf&quot;>
<param name=play value=&quot;false&quot;>
<param name=&quot;SCALE&quot; value=&quot;noborder&quot;>
<param name=&quot;BGCOLOR&quot; value=&quot;#000000&quot;>
<param name=&quot;LOOP&quot; value=&quot;false&quot;>
<embed src=&quot;cap.swf&quot; scale=&quot;noborder&quot; pluginspage=&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;200&quot; height=&quot;100&quot; bgcolor=&quot;#000000&quot;>
</embed>
</object></a>
</td>
</tr>
</table
</form>
</body>
</html>
 
You cannot make a link by wrapping an embedded object with <a></a> tags.

Hyperlinks should be programmed inside flash itself using it's ActionScript.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top