Hi,
I have been working my media centre project (the one I uploaded to the Hollywood Website) and have encountered a problem that I would like some clarification on.
Essentially what is happening is I am running a function called main menu and in this function are several events that check for key presses. left and right to move through the menus, esc to quit and enter to select the menu option.
When enter is checked for it determines which option is selected from a table and enters function that is referenced by that menu option i.e.
Code: Select all
menuoptions={[1]=tvshowsMenu} ; this is the table with references to the functions
menuoptions[msg.userdata.menuid] () ; this calls the function based on the menuid that is current when entered is pushed in the event check function
Is this not working because I have called the new function from another function which had events and I need to re-initialise the events??
Any help would be appreciated as I am at somewhat of an impasse. I feel it is probably a design issue but I need to know what the design limits are in order for me to rectify it.
If it helps for me to list the function names and to indicate where one exists and another starts as well as where the installeventhandler function is being called let me know.
Regards,
Dwayne
-- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/