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