hi, i was in new york last week, so i’m out of practice and cant seem to get this working.
i have this code on a movieclip.
on (rollOver) {
this.gotoAndPlay("in");
}
on (rollOut) {
this.gotoAndPlay("out");
}
on (releaseOutside) {
this.gotoAndPlay("out");
}
on (press) {
gotoAndPlay("main-out");
chosen = "_root.home";
}
the rollover and rollout actions work, its just that when i press, it doesnt goto frame labelled “main-out” (which is the next frame from where this code is). instead, it plays the rollout animation.
someone over at flashkit reccommended this, but it still didnt work.
I may have solved the problem, from the looks of it you had ‘scope’ issues all over.
Place this in frame 31 of ‘main’ mc:
[AS]
stop();
trace(chosen);
_parent.gotoAndPlay(chosen);
[/AS]
And this on the ‘home’ mc on frame 14 in ‘main’ mc:
[AS]onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndPlay(“in”);
};
this.onRollOut = this.onReleaseOutside=function () {
this.gotoAndPlay(“out”);
};
this.onPress = function () {
_parent.chosen = “home”;
_parent.gotoAndPlay(“main-out”);
also you had a frame label of “main-end” and code targetting “main-out”. If you leave the label, change the code above to fit, if you leave the code, change the label.