home *** CD-ROM | disk | FTP | other *** search
- function changefocus()
- {
- var x = _level20._xmouse;
- var y = _level20._ymouse;
- check = _level20.rp.hitTest(x,y);
- if(check eq true and _level0.focus ne "rp")
- {
- _root.setFocus("rp");
- }
- check = _level20.lp.hitTest(x,y);
- if(check eq true and _level0.focus ne "lp")
- {
- _root.setFocus("lp");
- }
- }
- function setfocus(panel)
- {
- if(panel eq "rp")
- {
- notpanel = "lp";
- }
- else
- {
- notpanel = "rp";
- }
- _level15[notpanel + "_background"]._alpha = _level0.Data.notFocusAlpha;
- _level15[panel + "_background"]._alpha = _level0.Data.FocusAlpha;
- _level20[notpanel].pfill.colour.clear();
- _level20[panel].pfill.colour.normal();
- _level50.gotoAndStop("off");
- call("_level15/" add notpanel add "/" add eval("_level0:" add notpanel add "_module") add "/codelib:save");
- call("_level15/" add panel add "/" add eval("_level0:" add panel add "_module") add "/codelib:focus");
- _level0.focus = panel;
- fscommand("focus",eval("_level0:focus"));
- call("_level0/lib:loadonfocus");
- stop();
- }
- setfocus("rp");
-