Question
Controlling the root timeline from inside a MovieClip
[preface] I'll apologize in advance. I'm a designer, not a
developer. I know very little about actionscript so if you
can help me out, please pretend like I know nothing.
[/ preface]
I just need actionscript to check the value of a variable when the end of a movie clip is reached and then call an action.
Here's what I've got and it doesn't work. Please don't laugh.
if (p == 1){
tellTarget (_root) {
play();
}
}
else if (p == 0){
stop();
}
(the "stop" on the "else if" is referring to the movie clip's timeline, not the root timeline... in case you're wondering)
Any help would be greatly appreciated. Thanks!
[/ preface]
I just need actionscript to check the value of a variable when the end of a movie clip is reached and then call an action.
Here's what I've got and it doesn't work. Please don't laugh.
if (p == 1){
tellTarget (_root) {
play();
}
}
else if (p == 0){
stop();
}
(the "stop" on the "else if" is referring to the movie clip's timeline, not the root timeline... in case you're wondering)
Any help would be greatly appreciated. Thanks!