chris0walker
IS-IT--Management
Hi,
I want to create a MovieClip for my library that contains three buttons. the first one will get the "_root" to move to the next Scene. the second will replay the current scene and the third will goto the previos scene. I would then be able to import the library to other movies and reuse it!
The problem I am having is that the following code isnt working:
on (release) {
tellTarget ("_Parent"
{
nextScene();
}
}
but if i enter the following it does:
on (release) {
tellTarget ("_Parent"
{
gotoAndStop("Scene 2", 1);
}
}
However the latter will only work if moving forward to scene 2.
nextScene();
works fine if I have a button with an action script in the movie itself but not if i try to use it from with in a movie clip simbol?
Any help would save me pulling my hair out.
Cheers
Chris
I want to create a MovieClip for my library that contains three buttons. the first one will get the "_root" to move to the next Scene. the second will replay the current scene and the third will goto the previos scene. I would then be able to import the library to other movies and reuse it!
The problem I am having is that the following code isnt working:
on (release) {
tellTarget ("_Parent"
nextScene();
}
}
but if i enter the following it does:
on (release) {
tellTarget ("_Parent"
gotoAndStop("Scene 2", 1);
}
}
However the latter will only work if moving forward to scene 2.
nextScene();
works fine if I have a button with an action script in the movie itself but not if i try to use it from with in a movie clip simbol?
Any help would save me pulling my hair out.
Cheers
Chris