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!

How to start all movies playing?

Status
Not open for further replies.

kippie

Technical User
Nov 8, 2001
158
In the HTML below I have 3 embedded Flash movies which each can be started and stopped independently with a seperate link. But now I would like to make a link to start and stop them all three together. Is it possible to make a javascript to arrange for this so that the same idea can be extended to many more movies to be started and stopped simultaneously?

This is the HTML I have so far:
<html>

<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 4">
<title>Welcome to Adobe GoLive 4</title>
</head>

<body>

<object CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
CODEBASE="NEED%20NEW%20CODEBASE%20FROM%20RAVEN" ID="flashfile1" WIDTH="100" HEIGHT="74">
<param name="movie" value="nistelrodeavi.swf">
<param name="play" value="false">
<param name="quality" value="high">
<embed NAME="flashfile1" SRC="nistelrodeavi.swf" WIDTH="100" HEIGHT="74" PLAY="false" SWLIVECONNECT="true" QUALITY="high" border="5">
</object>
<br>
<a href="#" onmouseover="flashfile1.Play();" onmouseout="flashfile1.GotoFrame(20);">Play and Stop 1</a>
<br>

<object CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
CODEBASE="NEED%20NEW%20CODEBASE%20FROM%20RAVEN" ID="flashfile2" WIDTH="100" HEIGHT="74">
<param name="movie" value="sunmovie.swf">
<param name="play" value="false">
<param name="quality" value="high">
<embed NAME="flashfile2" SRC="sunmovie.swf" WIDTH="100" HEIGHT="74" PLAY="false" SWLIVECONNECT="true" QUALITY="high" border="5">
</object>
<br>
<a href="#" onmouseover="flashfile2.Play();" onmouseout="flashfile2.GotoFrame(20);">Play and Stop 2</a>
<br>
<object CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
CODEBASE="NEED%20NEW%20CODEBASE%20FROM%20RAVEN" ID="flashfile3" WIDTH="100" HEIGHT="74">
<param name="movie" value="cyclersdef3.swf">
<param name="play" value="false">
<param name="quality" value="high">
<embed NAME="flashfile3" SRC="cyclersdef3.swf" WIDTH="100" HEIGHT="74" PLAY="false" SWLIVECONNECT="true" QUALITY="high" border="5">
</object>
<br>
<a href="#" onmouseover="flashfile3.Play();" onmouseout="flashfile3.GotoFrame(20);">Play and Stop 3</a>
<br><br>
<a href="#" onmouseover="" onmouseout="">Play and Stop all</a>


</body>

</html>
 
I don't know about EXACTLY simultaneously, but since the movies start with clicks on links, if you name the links, you should be able to do: linkName.click() to get each movie running.

'hope that helps.

--Dave
 
well it'd be "close" to all simultaneous :

function playall()
{
flashfile1.Play();
flashfile2.Play();
flashfile3.Play();
}

function stopall()
{
flashfile1.Stop();
flashfile2.Stop();
flashfile3.Stop();
flashfile1.GotoFrame(20);
flashfile2.GotoFrame(20);
flashfile3.GotoFrame(20);
}

pr you could use a var and use it as a flip flop, then conditional the two functions together as a stop start


[thumbsup2]DreX
aKa - Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top