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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hit Enter to play movie again ?

Status
Not open for further replies.

NevG

Programmer
Oct 10, 2000
162
GB
Hi People

How can I make the movie play agin when the viewer hits the enter key? This is not the standalone player it is a normal web page done in Flash 4. This would be very useful if you can help

Thanks people

Nev G
 
You can use...

onClipEvent(keyDown){
if (Key.getCode()==13){
gotoAndPlay(1);
}
}
 
onClipEvent in Flash 4?
mywink.gif
ldnewbie
Hope that this
was helpful!
 
NevG,
Add a button on the last frame of your movie, with, for example, a PRESS ENTER TO REPLAY text over it.
Than assign an OnMouseEvent to it, check the Key Press box, place the cursor in that empty box beside it and just press the enter key... The word <enter> will appear.
All you have to do then is add a goto and play action as:

On (Key: <Enter>)
Go to and Play (1)
End On
mywink.gif
ldnewbie
Hope that this
was helpful!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top