I e-mail my swf file to Adam, here is the code for the collage assignment.
package {
import flash.display.MovieClip;
public class Main extends MovieClip{
public function Main() { //functions signiture
// constructor code
var hey1 = "Hello World";
var hey2 = "Bring it";
//prints Hello World to output
trace(hey1);
trace(hey2);
var Bird: MovieClip; // all varibles have to be movie clip
Bird = new Bird_01; // Bird from library
addChild(Bird); // adding bird to canvas
Bird .x= 420; // the height and width of ourthing
Bird .y= 120; // the width of bird
Bird.rotation= -10 // rotation of bird
Bird.rotationX= 45 // skewing
Bird.alpha = 100;
var Track1: MovieClip; // variable for track1
Track1 = new Track_Triple_Jump_01; //Track from library
addChild(Track1); //Track to canvas
Track1 .y=230
var PowerupJ: MovieClip; // all variables need to be movie clip
PowerupJ = new Power_Jump_01; //bringing power up jump from library
addChild(PowerupJ); // power to canvas
PowerupJ .y= 192
PowerupJ .x= 320
PowerupJ.scaleX = .50
PowerupJ.scaleY = .50
var Thunder: MovieClip; // all variables must be movie clips
Thunder = new Thunder_01; // bring thunder from canvas
addChild(Thunder); // bringing thunder to canvas
Thunder.scaleX = .70
var Fire: MovieClip;
Fire = new Fire_01; // bring fire from library
addChild(Fire); // fire to canvas
Fire .y = 195
Fire .x = 200
Fire.rotationX = -40
var Hat: MovieClip;
Hat = new Hat_01; // bringing hat from library
addChild(Hat); // hat to canvas
Hat .x = 415
Hat .y = 35
Hat.rotation = -15
var Racer1: MovieClip;
Racer1 = new Racer_01; // bringing racer from library
addChild(Racer1); // add racer1 to canvas
Racer1 .x = 50
Racer1 .y = 240
var Racer2: MovieClip;
Racer2 = new Racer_02; //bringing racer 2
addChild(Racer2); // add racer2 to canvas
Racer2.scaleX = .40
Racer2 .x = 400
Racer2 .y = -30
var Track2: MovieClip;
Track2 = new Track_01;
addChild(Track2);
Track2 .x = 450
Track2 .y = 150
}
}
}
No comments:
Post a Comment