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

onkey load movieclip

Status
Not open for further replies.

jadeangelz

Technical User
Jan 3, 2004
1
CA
Hi... when watching a flash clip, I want that when we press on any keys, another flash movie will be loaded. I was able to do it before but then I lost the codes and I can't remember how to do it anymore. Here it is, please let me know what is wrong. Thank you

;
if (Key.isDown(a)) {
a.loadMovie(oncetime.swf);
}
 
You could put this code on an empty control movie clip, set at the top-left corner (0,0) of the stage...

onClipEvent (keyDown) {
trace("YO!");
// code to load the other movie...
}

Remember that in a browser, the Flash movie must have focus, before this will work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top