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.
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.