PDA

View Full Version : Menu Bar Gloabl Funtion?


mindstitchdr
09-26-2005, 01:34 PM
I've never messed with global functions so I don't know if this is possible. I need to create a global function that i can change the (On Menu) actions for each page globally without have to change each pages actions.

Example for (On Menu) action:
if e_ID==1 then
Audio.Load(CHANNEL_EFFECTS, "AutoPlay\\Audio\\Click1.ogg", true, false);
Page.Jump("Page1");
elseif e_ID==2 then
Audio.Load(CHANNEL_EFFECTS, "AutoPlay\\Audio\\Click1.ogg", true, false);
Page.Jump("Page2");
elseif e_ID==3 then
Audio.Load(CHANNEL_EFFECTS, "AutoPlay\\Audio\\Click1.ogg", true, false);
Page.Jump("Page3");
elseif e_ID==4 then
Audio.Load(CHANNEL_EFFECTS, "AutoPlay\\Audio\\Click1.ogg", true, false);
Page.Jump("Page4");
end

If I add something to the Menu Bar I have to add it to every pages (On Menu) actions and it takes a long time.

Brett
09-26-2005, 02:41 PM
Use the project's On Menu event instead of the page's in this case.

mindstitchdr
09-26-2005, 02:44 PM
ouch that hurt. It bit me!

Corey
12-09-2005, 09:01 PM
Hee. :D :yes