Well, you haven't imported the Alert class, and also I don't see you initializing the ModelLocator
 
Shan


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of boy_trike
Sent: Sunday, October 15, 2006 4:24 PM
To: [email protected]
Subject: [flexcoders] Why am I getting an "error accessing null property"

[Bindable]
public var model:ModelLocator = ModelLocator.getInstance();

private function processLoginResults( event : ResultEvent) : void {
model.currentUser = new Users();
model.currentUser = event.result as Users;
Alert.show(model.currentUser.firstName);
}

snippet of code above,
I get the error in the Alert.show function. What am I doing wrong?

Thanks

Bruce Lomasky


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 10/14/2006

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date: 10/14/2006

Reply via email to