Hi All,
There may not be a way to do this, but I thought that I would be able to return a function call by doing something like this:
//pass vars
zoomTo(hotels*);//passes "port" correctly
function zoomTo(whichMov):Function {
callFunc = "move_"+whichMov; //receives "port" correctly
return (callFunc);
}
//trying to call this function from zoomTo() above:
function move_port() {
moveMap(-1600,-1200,300,300,1);
}
The variables are being passed correctly, however, I’m not sure how to call a function this way. Any help?