Hello again,
I’m trying to write a function that I can use for creating text fields - in this case: to make the labels for a navigation menu. But the function is not working and I don’t know what’s the problem. Vars are: n = name and l = depth. Can someone help me out?
function makeMenuTab(n, l, x, y, w, h) {
var c = createTextField("c"+j, j++);
c._x = x;
c._y = y;
c.text = n;
c.setTextFormat(menu_format);
return c;
}
images = makeMenuTab(test, 1, 100, 400, 100, 100);