Liquidsword
02-16-2006, 01:52 AM
Aight so I want to set a variable when a button in a movie clip is clicked. For the button I have;
on(release){
_parent._parent._parent.gotoAndPlay(11);
page = links;
}
There are also a few other buttons that change the variable page when pressed.
Its jumping to frame 11 of another movie clip and plays until it gets to frame 20, in which I have this code.
if (page == home){
_root.gotoAndStop(1)
} if (page == pivot){
_root.gotoAndStop(2)
} if (page == flashy){
_root.gotoAndStop(3)
} if (page == links){
_root.gotoAndStop(4)
}
and as you can see, there are a few different variables. Problem is none of it works.
if I clicked the links button and make the variable page = links; shouldnt when it goes by that code on the timeline jump to frame 4 of the main timeline?
thanks for any help, if you could even understand that. lol
on(release){
_parent._parent._parent.gotoAndPlay(11);
page = links;
}
There are also a few other buttons that change the variable page when pressed.
Its jumping to frame 11 of another movie clip and plays until it gets to frame 20, in which I have this code.
if (page == home){
_root.gotoAndStop(1)
} if (page == pivot){
_root.gotoAndStop(2)
} if (page == flashy){
_root.gotoAndStop(3)
} if (page == links){
_root.gotoAndStop(4)
}
and as you can see, there are a few different variables. Problem is none of it works.
if I clicked the links button and make the variable page = links; shouldnt when it goes by that code on the timeline jump to frame 4 of the main timeline?
thanks for any help, if you could even understand that. lol