Yeah, that got me next... I had to add in the event into the
init(evt::Event):void.

 

With all the work, I've got the same issue...

 

It's trying to initialize the remoteobject before it has the required
information provided after the login.

 

________________________________

From: [email protected] [mailto:[email protected]] On
Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 4:59 PM
To: [email protected]
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

I assume you mis-typed the first one?  There are too many )'s.  The
params to addEventListener take a method reference, not a call to a
method, so 

 

addEventListener("bLoggedInChagned", init)

 

is correct.

 

Do you have a function init()?  Is it in the same file as this code?
Otherwise, you'll need to make it public and get access to it.  BTW, the
init() must now take an event as its parameter

 

public function init(event:Event):void

{

                // call webservice or something like that

}

 

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. <http://www.adobe.com/> 

Blog: http://blogs.adobe.com/aharui <http://blogs.adobe.com/aharui> 

 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is

believed to be clean. 

Reply via email to