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!

Playing Sound file

Status
Not open for further replies.

jovan40

Programmer
Dec 11, 2001
46
US
I have a movieclip that has a layer with an imported sound file. I am trying to have that MC play when a button in another MC is pressed. I have as the code in the button:
on (press) {
gotoAndPlay ("name of sound file");
}

When running the entire swf, nothing happens, what am I doing wrong?
 
From within another MC...

on (press) {
_root.thatMCinstance's_name.gotoAndPlay(2);
}

Or...

on (press) {
_root.thatMCinstance's_name.gotoAndPlay("label");
}

Regards,
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top