# Can someone put these words into AS?

**URL:** https://forum.kirupa.com/t/can-someone-put-these-words-into-as/96972
**Category:** Uncategorized
**Created:** [December 16, 2003, 12:58am UTC](https://forum.kirupa.com/t/can-someone-put-these-words-into-as/96972 "2003-12-16T00:58:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mdjstudios](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@mdjstudios](https://forum.kirupa.com/u/mdjstudios)
#### Post date: [December 16, 2003, 12:58am UTC](https://forum.kirupa.com/t/can-someone-put-these-words-into-as/96972/1 "2003-12-16T00:58:43Z")

</div>

can someone put these words into AS? i just dont know the format to it.

ok i want it like this  
if \_parent.ammo = 1 and on press  
gotoandplay (“t1-2”)

if u could translate for me that would be very muy nice

---

<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: [December 16, 2003, 2:26am UTC](https://forum.kirupa.com/t/can-someone-put-these-words-into-as/96972/2 "2003-12-16T02:26:38Z")

</div>

on (key press (SPACE)) {  
if (\_parent.ammo = 1)  
gotoAndPlay(scene, frame)  
}  
}

…or something like that

---

<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: [December 16, 2003, 2:58am UTC](https://forum.kirupa.com/t/can-someone-put-these-words-into-as/96972/3 "2003-12-16T02:58:18Z")

</div>

um kinda, what i meant is like ok.  
ammunition is the name of the movie clip.  
ammo is the variable for it. when the clip/ammunition has bullets in it, ammo = 1. when its empty, ammo = 0. i dont want the badguys to die when ammo = 0 becasue there are no bullets. understand?  
so i dont know the code for it but on the badguy it would be somethign like this i think:  
on press  
if \_parent?ammunition.ammo = 1 then  
gotoandplay(“t4-2”) the .fla is here if u wanna help me.  
[www.freewebs.com/headface/exampleshooter.zip](http://www.freewebs.com/headface/exampleshooter.zip)  
u may have to type it in manually into a browser.

---

<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: [December 16, 2003, 7:27am UTC](https://forum.kirupa.com/t/can-someone-put-these-words-into-as/96972/4 "2003-12-16T07:27:50Z")

</div>

copying over the link does work however you could as easily attach the zip if you use the _post reply_ instead of the quick one… it’s at the bottom
