RE: [flexcoders] Why does the commented line NOT work??

2006-09-24 Thread Kelly












model.currentPartPricing = dgPrice.getItemAt(dgPrice.selectedIndex)
as PartPricing;

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of boy_trike
Sent: Sunday, September 24, 2006
4:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Why does the
commented line NOT work??



 







model.currentPartPricing.partno =
dgPrice.selectedItem.partno;
model.currentPartPricing.price = dgPrice.selectedItem.price;
model.currentPartPricing.quantity = dgPrice.selectedItem.quantity;
model.currentPartPricing.perRoll = dgPrice.selectedItem.perRoll;

// model.currentPartPricing = dgPrice.selectedItem as PartPricing;

Instead of the 1st 4 lines, I wanted to just assign the object. However, when I
do that, the 
model.currentPartPricing becomes NULL

What am I doing wrong?

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 
   
 

  




__,_._,___






[flexcoders] Why does the commented line NOT work??

2006-09-24 Thread Bjorn Schultheiss





Bruce,
 
The model.currentPartPricing must be instantiated 
first!
 
model.currentPartPricing = {};
model.currentPartPricing.partno = 
dgPrice.selectedItem.partno;model.currentPartPricing.price = 
dgPrice.selectedItem.price;model.currentPartPricing.quantity = 
dgPrice.selectedItem.quantity;model.currentPartPricing.perRoll = 
dgPrice.selectedItem.perRoll;
 
 
Regards,
 
Bjorn 
Schultheiss
Senior Flash 
Developer
QDC 
Technologies
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of 
boy_trikeSent: Monday, 25 September 2006 9:54 AMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Why does the 
commented line NOT work??


model.currentPartPricing.partno = 
dgPrice.selectedItem.partno;model.currentPartPricing.price = 
dgPrice.selectedItem.price;model.currentPartPricing.quantity = 
dgPrice.selectedItem.quantity;model.currentPartPricing.perRoll = 
dgPrice.selectedItem.perRoll;// model.currentPartPricing = 
dgPrice.selectedItem as PartPricing;Instead of the 1st 4 lines, I 
wanted to just assign the object. However, when I do that, the 
model.currentPartPricing becomes NULLWhat am I doing 
wrong?ThanksBruce
__._,_.___





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

  




__,_._,___



[flexcoders] Why does the commented line NOT work??

2006-09-24 Thread boy_trike
model.currentPartPricing.partno = 
dgPrice.selectedItem.partno;
model.currentPartPricing.price = 
dgPrice.selectedItem.price;
model.currentPartPricing.quantity = 
dgPrice.selectedItem.quantity;
model.currentPartPricing.perRoll = 
dgPrice.selectedItem.perRoll;

//  model.currentPartPricing = dgPrice.selectedItem as 
PartPricing;


Instead of the 1st 4 lines, I wanted to just assign the object.  However, when 
I do that, the 
model.currentPartPricing becomes NULL

What am I doing wrong?

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