# Various Actionscript Help

**URL:** https://forum.kirupa.com/t/various-actionscript-help/12949
**Category:** Uncategorized
**Created:** [February 6, 2003, 4:03pm UTC](https://forum.kirupa.com/t/various-actionscript-help/12949 "2003-02-06T16:03:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![OpenWounds](https://avatars.discourse-cdn.com/v4/letter/o/ed655f/32.png) [@OpenWounds](https://forum.kirupa.com/u/OpenWounds)
#### Post date: [February 6, 2003, 4:03pm UTC](https://forum.kirupa.com/t/various-actionscript-help/12949/1 "2003-02-06T16:03:54Z")

</div>

Alright guys and girls… i jsut started flash a few months ago and can just do the basic animaions… frame by frame… stuff like that… umm im wonderin what the action script would be if i wanted to set it so that when a key is pressed (ex: D) an action is preformed (ex: punch), so, if i wanted say… a fighting game when the user presses D the character punches…

after this, im wondering how i can make a damage counter and target area so that you have to be within a certain distance from the other target… thanks guys.

(How can i load a song without streaming it so that it runs the length of the animation, even through scene switches without stopping?)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [February 6, 2003, 4:31pm UTC](https://forum.kirupa.com/t/various-actionscript-help/12949/2 "2003-02-06T16:31:05Z")

</div>

Welcome to Kirupaville OpenWounds! =)

I´m sure that you´ll learn a lot here.

About your questions: dude, there is no easy answers to any of your questions. My advice is for you to follow, one by one, the tutorials here @ kirupa, and improve your flash knolege and coding skills. Just so you can understand the basics of what you´re going to ask questions.  
or, at least, narrow down your questions, one at the time.

Cheers :bounce:
