try {
home = new Home();
stage.addChild(home);
} catch (e:Error) {
var t:TextField = new TextField();
t.width = 640; text.height = 480; t.textColor = 0xFFFFFF;
t.text = e.message;
stage.addChild(text);
text.appendText("\n" + home);
}
When testing locally, this works fine and everything goes as expected.
When I test on my private server, my public server and even testing an uploaded version to Kongregate, it fails at that point and states that home==null, error 1009. What is going on?
For added confusion, this is the Home class. The Page class is simply a class which extends a Sprite with a custom Event system (Which I have removed and it still doesn’t work).
package screens
{
import dpbrad.Page;
import dpbrad.PageEvent;
/**
* ...
* @author DPbrad
*/
public class Home extends Page
{
public function Home()
{
}
}
}