Expand|Select|Wrap|Line Numbers
- stop ();
- _focusrect = true;
- fscommand2 ("SetSoftKeys", "Select", "Exit");
- fscommand2 ("SetQuality", "high");
- fscommand2 ("Fullscreen", "true");
- var location_so:SharedObject;
- if (selectedItem == null)
- {
- Selection.setFocus (egypt_btn);
- }
- else
- {
- Selection.setFocus (selectedItem);
- }
- egypt_btn.onPress = function ()
- {
- selectedItem = this;
- gotoAndStop ("egypt");
- };
- england_btn.onPress = function ()
- {
- selectedItem = this;
- gotoAndStop ("england");
- };
- russia_btn.onPress = function ()
- {
- selectedItem = this;
- gotoAndStop ("russia");
- };
- Key.removeListener(myListener);
- var myListener:Object = new Object();
- myListener.onKeyDown = function()
- {
- var keyCode = Key.getCode();
- if(keyCode == ExtendedKey.SOFT1)
- {
- gotoAndStop("egypt");
- }
- else if(keyCode == ExtendedKey.SOFT2)
- {
- gotoAndStop("home");
- }
- };
- Key.addListener(myListener);