onClipEvent (enterFrame) {
if (this.hitTest (_root.squishie1) ) {
_root.squishie1.stop ( ) ;
}
}
Weve used a simple stop, but added a few parameters so that Flash knows to go back to the root level and find the movie clip instance named squishie1, and stop it in its tracks no matter where it is. This only acts on the top level, though, and the animation contained inside of the clip called squishie1, so this will only stop the side-to-side motionsince thats all thats contained on that movie clips timeline. All other motion is inside the timelines of the nested movie clips placed inside, so we need to add extra direction to Flash to access those. For the moment, impact should only affect the horizontal motion; the squishies will still continue to bounce up and down, but will stay in one place to do so.


