# Animation question

**URL:** <https://forum.kirupa.com/t/animation-question/117326>\
**Category:** Uncategorized\
**Created:** [July 26, 2004, 6:28pm UTC](https://forum.kirupa.com/t/animation-question/117326 "2004-07-26T18:28:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hondo311](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@hondo311](https://forum.kirupa.com/u/hondo311)\
**Post date:** [July 26, 2004, 6:28pm UTC](https://forum.kirupa.com/t/animation-question/117326/1 "2004-07-26T18:28:47Z")

</div>

I have a 2 frame animation.

frame 1 = picture of a guy w/ mouth closed. this is a button symbol without over, down or hit states and w/ actionscript “on keypress up arrow goto and stop frame 2”

frame 2 = picture of a guy w/ mouth open. this is a button symbol without over, down or hit states and w/ actionscript “on keypress down arrow goto and stop frame 1”

so you press up and down arrows to switch from frame to frame (it looks like the guy is talking).

the problem is, when i open the page to play the animation, i have to left click within the picture area before the arrow keys work.

This seems wrong to me? how can i get the arrow keys to work as soon as the page loads?

---

<div class="post-metadata">

**Author:** ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)\
**Post date:** [July 26, 2004, 11:32pm UTC](https://forum.kirupa.com/t/animation-question/117326/2 "2004-07-26T23:32:07Z")

</div>

it’s the way it goes (as far as I know). flash content within an html page is not ‘focused’ initially.

---

<div class="post-metadata">

**Author:** ![hondo311](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@hondo311](https://forum.kirupa.com/u/hondo311)\
**Post date:** [July 27, 2004, 12:46am UTC](https://forum.kirupa.com/t/animation-question/117326/3 "2004-07-27T00:46:15Z")

</div>

> [@ratbaggy](#):
>
> it’s the way it goes (as far as I know). flash content within an html page is not ‘focused’ initially.

thanks . . . is there any way to “focus” it initially?

---

<div class="post-metadata">

**Author:** ![bodyvisual](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bodyvisual/32/564_2.png) [@bodyvisual](https://forum.kirupa.com/u/bodyvisual)\
**Post date:** [July 27, 2004, 12:52am UTC](https://forum.kirupa.com/t/animation-question/117326/4 "2004-07-27T00:52:11Z")

</div>

nope. you’ve gotta click on it.

:p:

---

<div class="post-metadata">

**Author:** ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)\
**Post date:** [July 27, 2004, 12:53am UTC](https://forum.kirupa.com/t/animation-question/117326/5 "2004-07-27T00:53:51Z")

</div>

and…there is your answer. 😃

---

<div class="post-metadata">

**Author:** ![hondo311](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@hondo311](https://forum.kirupa.com/u/hondo311)\
**Post date:** [July 27, 2004, 1:01am UTC](https://forum.kirupa.com/t/animation-question/117326/6 "2004-07-27T01:01:16Z")

</div>

ok . . . sad but true . . . maybe i’ll try to find a work around . . .

---

<div class="post-metadata">

**Author:** ![hondo311](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@hondo311](https://forum.kirupa.com/u/hondo311)\
**Post date:** [July 27, 2004, 1:33am UTC](https://forum.kirupa.com/t/animation-question/117326/7 "2004-07-27T01:33:06Z")

</div>

alright . . . javascript is the answer . . . i found this cool tutorial for how to make this work for keyboard games . . .

[http://www.artifactinteractive.com.au/dev/focus.html](http://www.artifactinteractive.com.au/dev/focus.html)

hondo311
