loaded
03-24-2003, 03:52 PM
Hi there,
I'm making an xml based menu.
However I face 3 problems:
in the for loop I make the buttons + actions.
However the following doesn't work right:
_root.menu[mcName+n].onRollOver = function() {
setDir(_root.follow["pointer"], _root.menu[mcName+n]._x+100*n);
//trace(disc[n]);
_root.disc.text = "rollover: "+disc[n];
_root.menu[mcName+n].gotoAndPlay("1");
}
1)the setDir function only works on the first mouseover???
2) the trace(disc[n]); works fine, however _root.disc.text = "rollover:".... only shows "rollover:"???
3) _root.menu[mcName+n].gotoAndPlay("1"); does not play the mc???
I'm a bit of a flash n00b, I mostly work with php.
So guess there's something very different in the basic coding rulez somewhere???
Hope someone can help?
Example: http://www.lodesite.nl/menu/
I'm making an xml based menu.
However I face 3 problems:
in the for loop I make the buttons + actions.
However the following doesn't work right:
_root.menu[mcName+n].onRollOver = function() {
setDir(_root.follow["pointer"], _root.menu[mcName+n]._x+100*n);
//trace(disc[n]);
_root.disc.text = "rollover: "+disc[n];
_root.menu[mcName+n].gotoAndPlay("1");
}
1)the setDir function only works on the first mouseover???
2) the trace(disc[n]); works fine, however _root.disc.text = "rollover:".... only shows "rollover:"???
3) _root.menu[mcName+n].gotoAndPlay("1"); does not play the mc???
I'm a bit of a flash n00b, I mostly work with php.
So guess there's something very different in the basic coding rulez somewhere???
Hope someone can help?
Example: http://www.lodesite.nl/menu/