I have a class called A and an AS file called init.as in the init.as I'm trying to call on a function from A.
the function's name is init1_2.

I'm creating more classes, and in each class there will be a function I'll need to use. These functions names will be consistant: init1_2, init1_3, init1_4 ect.

Now, in the init.as I want to call each of these class functions whenever a corresponding button is pressed. To make life easier, I'm trying to pass values to the function name init1_2 by putting it in a variable like that:

function loadAsset(b:Number, e:Number) {

var c = attachMovie("cont"+b+"_"+e, "cont");

var temp = "init"+b+"_"+e;
c.temp(b,e);
}

loadAsset(1,2);


When I trace temp it brings up the correct name: init1_2 (or whichever numbers I passed) but it doesn't work.
why doesn't it work, if the trace shows the right name?
I appreciate any help.
Happy Thanksgiving ;-)