# I Cant Figure This Out

**URL:** https://forum.kirupa.com/t/i-cant-figure-this-out/6844
**Category:** flash
**Created:** [October 17, 2002, 5:01pm UTC](https://forum.kirupa.com/t/i-cant-figure-this-out/6844 "2002-10-17T17:01:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![twalliewerty](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@twalliewerty](https://forum.kirupa.com/u/twalliewerty)
#### Post date: [October 17, 2002, 5:01pm UTC](https://forum.kirupa.com/t/i-cant-figure-this-out/6844/1 "2002-10-17T17:01:18Z")

</div>

I CANT FIGURE OUT HOW TO GET SBEENERS CODE TO WORK IN MY GAME HERES MY GAME COULD SOMEONE FIX IT AND POST IT BACK UP SO I CAN RE-DOWNLAOD IT AND GET AN A IN MY CLASS…PLEASE

---

<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: [October 17, 2002, 5:16pm UTC](https://forum.kirupa.com/t/i-cant-figure-this-out/6844/2 "2002-10-17T17:16:48Z")

</div>

to set the class of a clip, it’s:

[name of movie].setClass([name of class]);

in your case:

slopeship.setClass(SteeringClip);

you need to define the class before you set a clip to it. so you’ll want to put that line at the bottom of the code.

you can replace the line that says:

line.setClass(SteeringClip);

i left that in there accidentally.

---

<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: [October 17, 2002, 5:59pm UTC](https://forum.kirupa.com/t/i-cant-figure-this-out/6844/3 "2002-10-17T17:59:53Z")

</div>

WHEN I RUN IT ALL THIS STUFF POPS UP N A WINDOW AND DOESNT WORK. I AM USING FLASH MX I PUT ALL THE CODE INSIDE MY MOVIE CLIP BUT I DONT KNOW WHERE TO PUT THE SET CLASS HERES ALL THE ERRORS THAT COME UP

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 12: Statement must appear within on/onClipEvent handler  
function SteeringClip(){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 25: Statement must appear within on/onClipEvent handler  
};

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 27: Statement must appear within on/onClipEvent handler  
SteeringClip.prototype. **proto** = MovieClip.prototype;

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 29: Statement must appear within on/onClipEvent handler  
SteeringClip.prototype.addAction = function(action){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 44: Statement must appear within on/onClipEvent handler  
SteeringClip.prototype.removeAction = function(action){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 51: Statement must appear within on/onClipEvent handler  
SteeringClip.prototype.keyAction37 = function(){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 56: Statement must appear within on/onClipEvent handler  
SteeringClip.prototype.keyAction38 = function(){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 61: Statement must appear within on/onClipEvent handler  
SteeringClip.prototype.keyAction39 = function(){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 66: Statement must appear within on/onClipEvent handler  
SteeringClip.prototype.keyAction40 = function(){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 71: Statement must appear within on/onClipEvent handler  
SteeringClip.prototype.setSpeeds = function(){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 77: Statement must appear within on/onClipEvent handler  
Array.prototype.getplace = function(item){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 87: Statement must appear within on/onClipEvent handler  
Array.prototype.removeItem = function(item){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 92: Statement must appear within on/onClipEvent handler  
Math.dtr = Math.PI/180;

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 93: Statement must appear within on/onClipEvent handler  
Math.radFromRot = function(rot){

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 100: Statement must appear within on/onClipEvent handler  
MovieClip.prototype.setClass = function(c, args) {

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 109: Statement must appear within on/onClipEvent handler  
ASSetPropFlags(MovieClip.prototype,null,7,1);

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 110: Statement must appear within on/onClipEvent handler  
ASSetPropFlags(SteeringClip.prototype,null,7,1);

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 111: Statement must appear within on/onClipEvent handler  
ASSetPropFlags(Array.prototype,null,7,1);

Scene=Scene 1, Layer=Layer 1, Frame=1: Line 131: Statement must appear within on/onClipEvent handler  
slopeship.setClass(SteeringClip);

---

<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: [October 17, 2002, 8:11pm UTC](https://forum.kirupa.com/t/i-cant-figure-this-out/6844/4 "2002-10-17T20:11:54Z")

</div>

You’re putting it on a clip but you should put it on a frame.

---

<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: [October 18, 2002, 4:13pm UTC](https://forum.kirupa.com/t/i-cant-figure-this-out/6844/5 "2002-10-18T16:13:02Z")

</div>

I JUST WANT TO THANK EVERYONE THAT HAS HELPED ME AND I HAVE FINALLY GOTTEN MY SHIP TO MOVE THE RIGHT WAY
