twalliewerty
October 17th, 2002, 01:01 PM
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
sbeener
October 17th, 2002, 01:16 PM
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.
twalliewerty
October 17th, 2002, 01:59 PM
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);
pom
October 17th, 2002, 04:11 PM
You're putting it on a clip but you should put it on a frame.
twalliewerty
October 18th, 2002, 12:13 PM
I JUST WANT TO THANK EVERYONE THAT HAS HELPED ME AND I HAVE FINALLY GOTTEN MY SHIP TO MOVE THE RIGHT WAY
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.