That's a compilation error: 1119 Access of possibly undefined property "user' through a reference with static type Class

Eric

At 2007-11-12   18:33, you wrote:

Are you getting a compilation error or a runtime error?

- Gordon


----------
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of elr
Sent: Monday, November 12, 2007 3:27 PM
To: [email protected]
Subject: RE: [flexcoders] reference a class instance from another mxml

No Gordon. unfortunately my instance was public. I even defined a getter but no way:I still get an 1119 error in my second mxml (B) at line:

user=comps.LoginPanel.user;


where of course comps is the namespace targeting my LoginPanel.mxml



Eric

At 2007-11-12   17:05, you wrote:

When your login component created a User instance, did it store it in a public instance variable (say, 'user') of the login component? If so, it should be accessible as myLoginComponent.user.

- Gordon


----------
From: [email protected] [ mailto:[EMAIL PROTECTED] On Behalf Of elr
Sent: Sunday, November 11, 2007 5:03 PM
To: [email protected]
Subject: [flexcoders] reference a class instance from another mxml


HI,

I can't find a way to access from an mxml B to a class C that was
instanciated in a mxml A

In my sample. a login component (mxml A) instanciates a user:User
As soon as login is done, the second component (mxml B) should
retrieve the user instance

I referenced this user instance starting from component that composes
it (mxml A) but I always get a 1119 error:Access of possibly
undefined property user through a reference with static Class...

Thx for your help

Eric

Reply via email to