davetamzin
August 6th, 2003, 09:00 AM
I have a main timeline with a series of buttons, the buttons were created and placed manually, I have a script to attach the code to the buttons, but iI can't get it to work! GRRRR!
I would really appreciate some pointers, pretty please! :)
for(i=0;i<menu_array.length;i++){
["mentext" +i].onRelase = function(){
_global.menusel = i;
if (_global.mensel>_global.maxmenu){
_global.maxmenu=_global.menusel;
}
_level1.play();
change();
}
}
How do I get code like this (ie a function, onto the buttons at run time, I've tried several different ways (including verbally abusing my pc, which normally works) to no avail....
Please help!
I would really appreciate some pointers, pretty please! :)
for(i=0;i<menu_array.length;i++){
["mentext" +i].onRelase = function(){
_global.menusel = i;
if (_global.mensel>_global.maxmenu){
_global.maxmenu=_global.menusel;
}
_level1.play();
change();
}
}
How do I get code like this (ie a function, onto the buttons at run time, I've tried several different ways (including verbally abusing my pc, which normally works) to no avail....
Please help!