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 let a Flash movie embedded in HTML start on MouseOver?

Status
Not open for further replies.

kippie

Technical User
Nov 8, 2001
158
I've made a simple FlashMovie and embedded it in HTML within a layer:

<div id="layer">
<object width="100%" height="48">
<param name="movie" value="cyclersdef3.swf">
<embed src="sunmovie.swf" width="200" height="148">
</object>
</div>

The layer is hidden, only on a certain command (MouseOver) the layer is made visible. I would like to make it so that at that time the clip starts playing and when the layer is hidden again the clip stops playing. Could anyone tell me how this can be done?
 
in your mouseover command you do something like:

onmouseover="MovieID.play(0);"

when you hide the movie, it's something like:

MovieID.gotoandstop(1);



[conehead]
 
here it is:

to play:
MovieID.Play()

to stop:
MovieID.GotoFrame(0);

put these in your mouse commands

[conehead]
 
Thanks, but I'm confused: what should I write for "MovieID"?
 
It's explained in the link! It could be kippie, conehead, or even old for that matter... [bigcheeks]
 
You need to have an id attribute in your flash html... use the value of this id for MovieID

[conehead]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top