I have another action script 3 class which is linked back to main. I'm trying to addChild to stage but i'm getting an error: Call to possibly undefined method to child.
If I paste the same script in my main.as then it adds the movie clip perfectly fine? I'm getting the hello message back so its definitely linked ?
This is my code.
//Importing movieclip.
import MainBackground;
//We need to refer to the main background.
var mainbackground:MainBackground = new MainBackground();
//We then need to posistion this.
mainbackground.x = 32;
mainbackground.y = 85;
addChild(mainbackground);
trace("Hello");
