I EMAILED MY SWF FILE TO ADAM, heres my code for it.
package {
import flash.display.MovieClip;
public class Main extends MovieClip{ //class signature
public function Main() {
// constructor code
//stuff below is for printing
var hi1 = "Whats Up"; //prints whats up to Output
var hi2 = "Que Pasa";
hi2 += " lol!";
trace(hi1);
trace(hi2);
var lights1:MovieClip; ///declare bright lights
lights1 = new BrightLights;
addChild(lights1);
lights1.scaleX=1.5;
lights1.scaleY=1.5;
var ourThing:MovieClip; //declaration of new fitted
ourThing = new Fitted1; // instantiation
addChild(ourThing);
ourThing.x = stage.stageWidth/2; //centers object into stage
ourThing.y = stage.stageHeight/2;
var ourThing1:MovieClip; //declare new Chain
ourThing1 = new Chain;
addChild(ourThing1); //print new chain
ourThing1.x = stage.stageWidth/3
ourThing1.y = stage.stageHeight/2 //print chain cordinates
var playerF:MovieClip; //Declare new player facing forward
playerF = new HeroFront;
addChild(playerF); //print new playerf
playerF.x=180;
playerF.y=200;
playerF.rotationX=180; //rotation for herofront
var playerL:MovieClip; //declare player facing left
playerL = new HeroLeft;
addChild(playerL);
playerL.x=450;
playerL.y=300;
playerL.scaleX=2.7;
playerL.scaleY=2.9;
var playerR:MovieClip; //player facing right
playerR = new HeroRight;
addChild(playerR);
playerR.x=200;
playerR.y=275;
playerR.scaleX=2.5;
playerR.scaleY=2.5;
var whip:MovieClip;//declare new whip
whip = new Whip1;
addChild(whip);
whip.x=350;
whip.y=100;
whip.rotationX=45;
var waveFile:MovieClip; //declare soundwaves
waveFile = new SoundWaves1;
addChild(waveFile);
waveFile.scaleX=3;
waveFile.scaleY=5;
var keys:MovieClip; //prints keyboard
keys = new Keyboard1;
addChild(keys)
keys.y=300;
keys.x=350;
var nikes:MovieClip; //prints new nikes
nikes = new Shoe1;
addChild(nikes)
nikes.x=250;
nikes.y=250;
nikes.rotation=90;
nikes.scaleX=3;
nikes.scaleY=3;
}
}
}
No comments:
Post a Comment