Error loading Variables stage.loaderInfo - AS3

Posted by Dimitree on Stack Overflow See other posts from Stack Overflow or by Dimitree
Published on 2010-04-06T20:11:05Z Indexed on 2010/04/06 20:13 UTC
Read the original article Hit count: 320

Filed under:
|
|

I have a Document class that loads variables from Facebook with the use of stage.loaderInfo

var connect:FacebookConnectObject = new FacebookConnectObject( facebook, API_KEY, this.stage.loaderInfo );

But when I change the Document class (with another one responsible for the layout of my app), and try call the above from a movieclip that exists in my application with the use:

var facebook_class:FacebookAp = new FaceBppkApp addChild(facebook_class) I get error

TypeError: Error #1009: Cannot access a property or method of a null object reference.

I believe the error comes fro this line

this.stage.loaderInfo

since I changed the scope...
How I am supposed to fix that?

© Stack Overflow or respective owner

Related posts about variables

Related posts about scope