RE: [flexcoders] Why am I getting an "error accessing null property"

2006-10-18 Thread Iko Knyphausen












Try 

Alert.show(textVar,
‘Message’)

 

Make sure you have the control imported

 

    import
mx.controls.Alert;

 

also make sure that the first argument
in the show method (“show” in lowercase, btw) is actual a string
type. You may need to use the .toString() method to get there 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of learner
Sent: Wednesday, October 18, 2006
10:31 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Why am I
getting an "error accessing null property"



 









try tracing the model.currentUser.firstName, trace(model.currentUser.firstName)





and then put this vaule in textfield like:





textid.text  = model.currentUser.firstName





and then 





Alert.Show(textid.text);





 





I had come acrros the same problem.





where i could value into trace but while passing to some function , it
was null





I tried with this and it worked..It sound wired but its true...





 





Regards,





PS

 





On 10/16/06, boy_trike
<[EMAIL PROTECTED]com>
wrote: 









[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











 








__._,_.___





--
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 
   
 

  




__,_._,___






Re: [flexcoders] Why am I getting an "error accessing null property"

2006-10-18 Thread learner



try tracing the model.currentUser.firstName, trace(model.currentUser.firstName)
and then put this vaule in textfield like:
textid.text  = model.currentUser.firstName
and then 
Alert.Show(textid.text);
 
I had come acrros the same problem.
where i could value into trace but while passing to some function , it was null
I tried with this and it worked..It sound wired but its true...
 
Regards,
PS 
On 10/16/06, boy_trike <[EMAIL PROTECTED]> wrote:





[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?ThanksBruce Lomasky
 

__._,_.___





--
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 
   
 

  




__,_._,___



Re: [flexcoders] Why am I getting an "error accessing null property"

2006-10-18 Thread Clint Tredway
On 10/18/06, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> On Sunday 15 October 2006 22:24, boy_trike wrote:
> > I get the error in the Alert.show function.  What am I doing wrong?

normally this means that you are trying to access something that is
not created yet.. what did you put in the Alert.show?


--
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/
 



Re: [flexcoders] Why am I getting an "error accessing null property"

2006-10-18 Thread Tom Chiverton
On Sunday 15 October 2006 22:24, boy_trike wrote:
> I get the error in the Alert.show function.  What am I doing wrong?

Maybe there are no results, or the fields aren't what you think.
What does the debugger say is the value of event and event.result ?

-- 
Tom Chiverton
Helping to authoritatively mesh attention-grabbing communities



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.



--
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/
 



RE: [flexcoders] Why am I getting an "error accessing null property"

2006-10-15 Thread Shannon Hicks





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


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
boy_trikeSent: Sunday, October 15, 2006 4:24 PMTo: 
flexcoders@yahoogroups.comSubject: [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?ThanksBruce 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
 


[flexcoders] Why am I getting an "error accessing null property"

2006-10-15 Thread boy_trike
[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




--
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/