Answered
Has anyone found a solution to Error 1009?
TypeError: Error #1009: Cannot access a property or method of
a null object reference
Ok. I'll simplify my code so that the problem can be better understood.
I have a main.as class at the document root. Here I have a property bb:bigBox = new bigBox() and added it to the root. I also have sb:smallBox = new smallBox() which is then added to bb. However small box has to store bigBox's initial x,y value state. So these properties must be stored through the smallBox constructor. This is where I get the Error: 1009.
Any and all help is appreciated. Thanks in advance
edit: I've tried moving around code, placing init() methods in the timeline, nothing seems to work. why is something so simple giving so much trouble. Can Macromedia/Adobe ever get this thing right? Finally after years of Flash programming, the language is starting to look sensible, now I'm stuck on this kink. I have looked this problem up all over the web and no one seems to have a valid solution. What's up Adobe?
Ok. I'll simplify my code so that the problem can be better understood.
I have a main.as class at the document root. Here I have a property bb:bigBox = new bigBox() and added it to the root. I also have sb:smallBox = new smallBox() which is then added to bb. However small box has to store bigBox's initial x,y value state. So these properties must be stored through the smallBox constructor. This is where I get the Error: 1009.
Any and all help is appreciated. Thanks in advance
edit: I've tried moving around code, placing init() methods in the timeline, nothing seems to work. why is something so simple giving so much trouble. Can Macromedia/Adobe ever get this thing right? Finally after years of Flash programming, the language is starting to look sensible, now I'm stuck on this kink. I have looked this problem up all over the web and no one seems to have a valid solution. What's up Adobe?