I have a function set up that returns a string. I then want to use this string as the part of the function name for my next function call…
function onClicknav(event:MouseEvent):void {
statusreport = String(checkstatus.checkit(event.target.name));
trace(statusreport);
TraversePage.statusreport();
This returns an error because there is no function statuspage!!! There is a function called Traverse.st_bi(); and st_bi is the value that statusreport is holding (that has been returned from the previous functioncall) but I can’t seem to get it to use the value of statusreport as part of the call instead of statusreport itself???
I hope you understand my dilemma - I am sure it is some punctuation I need but I dont know what it is… ? Anyone know?