# Actionscript newbie

**URL:** <https://forum.kirupa.com/t/actionscript-newbie/2519>\
**Category:** Uncategorized\
**Created:** [March 19, 2002, 10:00pm UTC](https://forum.kirupa.com/t/actionscript-newbie/2519 "2002-03-19T22:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [March 19, 2002, 10:00pm UTC](https://forum.kirupa.com/t/actionscript-newbie/2519/1 "2002-03-19T22:00:00Z")

</div>

Hi,

I’m new to Flash and I’m trying to learn action script by making simple games. One game I’m working on has a user-controlled object (a bug) moves from the bottom of the screen to the top (arrow keys). At the same time, moving across the screen, from left to right, are blocks the user must avoid hitting. Everything works great until the user-controlled bug hits hits a block. I used a hitTest command within an if statement. Everything executes when the condition is true (a hit) except the stop command…the movie keeps running. I have the entire script attached to the bug which is on the main timeline. The blocks that move across the screen move in their own timelines. Any help? (I don’t know if I’ve provided enough info.)

Scigolf

---

<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:** [March 19, 2002, 10:01pm UTC](https://forum.kirupa.com/t/actionscript-newbie/2519/2 "2002-03-19T22:01:51Z")

</div>

Here’s a function to stop all the movie of your animation [pub40.ezboard.com/fkirupa…=523.topic](http://pub40.ezboard.com/fkirupafrm19.showMessage?topicID=523.topic)

pom 0]

---

<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:** [March 22, 2002, 4:18pm UTC](https://forum.kirupa.com/t/actionscript-newbie/2519/3 "2002-03-22T16:18:36Z")

</div>

Hi,

Thanks for the code! It will definitely help!

Scigolf
