PDA

View Full Version : Tell a Movieclip in a Button - how?


2more
12-23-2001, 10:03 PM
Hi there all,

my question is (kinda simple?):
I want a Movieclip that lays on the <UP> Frame in a Button to play. The button lies on the main stage. I tried to use:
tellTarget ("_root.Buttonhit audio.Audioeffekt") {
play ();
}

Buttonhit audio - the name of the button called in the library
Audioefekt - the Movieclip that is in the button


Hope someone can help :)


c ya

Billy T
12-23-2001, 11:15 PM
wont work

you need to do it the other way round - place buttons inside a movieclip.

put the movieclip on the stage and give it an instance name - then you can target it

you cant give buttons instance names and therefore cannot target them directly with actionscript

cheers

2more
12-24-2001, 01:52 PM
Well thanks! Gonna do it that way ;)