PDA

View Full Version : goto action from inside a movie clip????


Crapatscript
12-08-2001, 09:00 PM
is it possible for it to work, i would have thought so...

i tried this script:

on (release) {
_root.gotoAndPlay ("The Visual", 1);
}

i also tried this which seemed only effective in sending the movieclip back to frame 1:

on (release) {
_root = gotoAndPlay("The Visual", 1);
}

and i cannot apply the script to the movie on the main stage as it is of links and cannot see any of the links in the clips first frame...
i have used the search and only come up with a problem totally different to this... help pls!!!:confused: :confused:

Billy T
12-09-2001, 01:40 AM
what are you trying to do? is "The Visual" a frame label or a movieclip? What is the 1 after it?

btw you probably shouldnt have spaces in your frame labels and instance names

cheers

Crapatscript
12-09-2001, 09:25 AM
sorry, left that bit out...

ok...

two scenes

main
The Visual

i have a movie clip on the main stage of "main" and iniside that movie clip i have serveral buttons... i want to attach the goto command to one of the buttons inside the movie clip that will tell flash to go onto "The Visual" scene frame 1...

but the buttons cannot be seen on the main stage due to them being invisible at the first part of the movie clip so i cannot attach the goto script to the movie clip...

i tried adding the above goto scripts to one of the buttons in the clip but they don't work... :(:(:( where am i going wrong?

Billy T
12-09-2001, 11:47 AM
Originally posted by Crapatscript

but the buttons cannot be seen on the main stage due to them being invisible at the first part of the movie clip so i cannot attach the goto script to the movie clip...


so how can you click on them?

use a tell target on the buttons to tell _root to go to and play the next scene.

cheers

Crapatscript
12-09-2001, 12:57 PM
the movie clip has 12 frames... the first one buttons are invisible and in lst frame they are not...

i tried tell target as you can see by my other posts...

_root.gotoandplay
and
_root = gotoandplay

neither of them work

Billy T
12-09-2001, 09:21 PM
put this on your visible buttons

on (release) {
tellTarget ("_root") {
gotoAndPlay ("The Visual", 1);
}
}

If your buttons are loaded in from an external movie then you will need to target _level0

cheers