Hey i have some pretty simple code, i have my document class trying to add a santa class to the stage (simple game
) - but it will not add and i get not errors at all, i cant see anything wrong any help will be greatly received.
Santa class:
package Classes {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
public class santa extends MovieClip {
public function santa() {
x = 100;
addEventListener(Event.ENTER_FRAME,moveSanta);
}
public function moveSanta(e:Event) {
y = Mouse.y;
}
}
}
Document:
package {
import flash.display.*;
import flash.events.*;
import flash.utils.*;
import Classes.addHouse;
import Classes.santa;
public class santaDrop extends MovieClip {
public function santaDrop() {
santaAdd();
init();
}
public function santaAdd(){
var Santa = new santa();
addChild(Santa);
}
I have cut some of the document out.