Quote:
Originally Posted by Erox902
won't they get screwed up in the handler I mean when you:
PHP Code:
public menuHandler(id, menu, item)
? 
|
No. Those are local variables also. You can think about it like this: The variables in the function declaration are newly created local variables that are auto-populated by the calling function. So, when menuHandler() is called, it creates the three variables id, menu, and item. Then it sets their value as supplied by the function that is calling it (the new menu system).
So, the variable "menu" will contain the menu pointer of the menu that just had an option chosen from it.
__________________