I am only showing a code snippet. I have imported the Alert class and the I thought that the public var model:ModelLocator = ModelLocator.getInstance(); creates the var model. (I the debug view, I can see the model.currentUser Object so I assume it has ben created)
Bruce --- In [email protected], "Shannon Hicks" <[EMAIL PROTECTED]> wrote: > > 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 > > > > -- > 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 > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

