# Button, keyboard control and clock

**URL:** <https://forum.kirupa.com/t/button-keyboard-control-and-clock/185674>\
**Category:** Uncategorized\
**Created:** [April 15, 2006, 6:04am UTC](https://forum.kirupa.com/t/button-keyboard-control-and-clock/185674 "2006-04-15T06:04:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chevron8653](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@chevron8653](https://forum.kirupa.com/u/chevron8653)\
**Post date:** [April 15, 2006, 6:04am UTC](https://forum.kirupa.com/t/button-keyboard-control-and-clock/185674/1 "2006-04-15T06:04:38Z")

</div>

## [LEFT][COLOR=Sienna][COLOR=Blue]Hi guys. Well there are a few things im trying to do in flash 8 and there not working or i just dont know how to do them cause im not a begining rather a novice.

## Using keyboard shortcut like shift + L to load an external swf thats in the same folder. Yes i would like to know how i do that. I have one swf called atlantis xtream.swf and another called database.swf. Atlantis Xtream.swf is the main one and when the user is running that one i would like them to be able to load the external swf database.swf using shift + L shortcut. does ne body no how i could. And yes both are in the same folder.

## Dynamic countdown clock. with this i would like the user to beable to set the minutes, seconds and milleseconds of how long the clock has till it reaches zero. Ive downloaded a fla tutorial but its confusing.

## Last but not least, this is a simple thing (or at least it should be) in the database.swf there is a button called close and instead of it quiting everything all together or closing and restarting atlantis xtream from the start i would like database.swf to be the only one that closes and for it to return the user to atlantis xtream.swf as it were when they loaded databse.swf.

Well i hope someone can help me with them. if any of it was to confusing for u i am on msn all the time as [chevron8653@hotmail.com](mailto:chevron8653@hotmail.com)  
Please id like to get thease things done because people are expecting this project in a few weeks and ive still got miles to go.

Thanks for reading hope u can help  
[/COLOR][/COLOR][/LEFT]

---

<div class="post-metadata">

**Author:** ![vintage](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vintage](https://forum.kirupa.com/u/vintage)\
**Post date:** [April 15, 2006, 7:53am UTC](https://forum.kirupa.com/t/button-keyboard-control-and-clock/185674/2 "2006-04-15T07:53:06Z")

</div>

```auto

onEnterFrame = function () {
    if (Key.isDown(16) && Key.isDown(76)) { //shift + l
        trace("loadmovie"); //loadactions
    }
};

```

[FONT=Courier New][/FONT]

---

<div class="post-metadata">

**Author:** ![chevron8653](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@chevron8653](https://forum.kirupa.com/u/chevron8653)\
**Post date:** [April 15, 2006, 9:21am UTC](https://forum.kirupa.com/t/button-keyboard-control-and-clock/185674/3 "2006-04-15T09:21:12Z")

</div>

[LEFT][COLOR=Black]thanks for helping there. but ive tried that code before but im not to sure how i tell it to load the database.swf and where i write which buttons they need to press. i hate to be a pain in the butt but dou think u could write and example of that

thanks  
[/COLOR][/LEFT]

---

<div class="post-metadata">

**Author:** ![chevron8653](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@chevron8653](https://forum.kirupa.com/u/chevron8653)\
**Post date:** [April 15, 2006, 11:48pm UTC](https://forum.kirupa.com/t/button-keyboard-control-and-clock/185674/4 "2006-04-15T23:48:43Z")

</div>

onEnterFrame = function () {  
if (Shift.isDown(16) && L.isDown(76)) {  
trace(“loadmovie”(“database.swf”,1);  
}  
};

above ive edited that code u provided but its not working.  
is there nething ive done wrong?]
