To answer that for sure, we'd have to see the code for your Prospect class. Did you write code to set these three properties, either in the var declaration (e.g., var sicCode:int = 3) or in the constructor? Have you stepped through the constructor?

 

- Gordon

 


From: [email protected] [mailto:[email protected]] On Behalf Of boy_trike
Sent: Wednesday, October 25, 2006 7:22 AM
To: [email protected]
Subject: [flexcoders] Why doesn't the object assignment work.

 

<code snippet>

private function nextProspectResults(event: ResultEvent) : void {
model.currentProspect = new Prospect( event.result );
model.currentProspect.sicCode = event.result.sicCode;
model.currentProspect.numbInARow = event.result.numbInARow;
model.currentProspect.maxSic = event.result.maxSic;

my Prospect class has about 20 properties. for SOME reason, 3 of them do NOT get assigned
in the 1st statement and I have to assign the 3 properties as you see. When using the
debugger, I see the sicCode (et. al) in the event.result object. Help

Thanks
Bruce

__._,_.___

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

__,_._,___

Reply via email to