flappypenguin
October 14th, 2009, 10:39 AM
Hey all,
Im using the preloader technique as per Lee Brimelow's external preloader solution:
http://www.zedia.net/2008/the-right-way-to-do-a-preloader-in-as3/
However, when the preloader is finished i get the error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Main()
And through a process of elimination, i have found that it is where i have any reference to "stage." in my constructor (Main), if i remove these the swf loads as expected...
what should "stage." become now im using a preloader, i have tried "parent.stage." but that throws the same error.
Any help/advice is appreciated.
Im using the preloader technique as per Lee Brimelow's external preloader solution:
http://www.zedia.net/2008/the-right-way-to-do-a-preloader-in-as3/
However, when the preloader is finished i get the error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Main()
And through a process of elimination, i have found that it is where i have any reference to "stage." in my constructor (Main), if i remove these the swf loads as expected...
what should "stage." become now im using a preloader, i have tried "parent.stage." but that throws the same error.
Any help/advice is appreciated.