I’m having a little problem with my Flash actionscripting.
I’m working on this file source
when I test the MC “testme” the movie works fine, I press the buttons and the content slides to the coresponding section.
when I drop the MC into the main scene it doesn’t work however.
The code is contained inside the MC “sliding content”
onClipEvent (load) {
_x = 0;
_y = 82;
div = 5;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/div;
_root.home.onRelease = function() {
endX = -0;
};
_root.stats.onRelease = function() {
endX = -300;
};
_root.map.onRelease = function() {
endX = -600;
};
}
any thoughts? I’m sure I’ve made a complete mess of things but can’t figure out why the MC works fine but not the movie.