[MX2004] Functions

I have a function that I want called when different mc’s are rolled over.

img_hover = function (n){
_root.icap = _root.i+(eval(n))+_caption;
_root.idate = _root.i+(eval(n))+_date;
_root.isource = _root.i+(eval(n))+_source;
_root.isourcetxt = “Source:”;
_root.inum = _root.i+(eval(n))+".";
}

The “n” is an interger (ex. 1-200) that I need passed to this function with the rollover of an mc:

on (rollOver) {
_root.img_hover.apply(‘1’);
}

I can’t get this to work. I’m not sure of the proper way to pass the n value to the function in the img_hover.apply() code.

The function should produce the following (ex. with n=23):

img_hover = function (n){
_root.icap = _root.i23_caption;
_root.idate = _root.i23_date;
_root.isource = _root.i23_source;
_root.isourcetxt = “Source:”;
_root.inum = _root.i23+".";
}