Here I was helping someone today with complex objects in .NET
webservices and didn't notice a big problem on my end. 

I thought I had this figured out, but Arrays are coming across weird in
a .NET webservice as generic objects not arrays that Flash can
understand.  I never noticed it before because I can still reference the
properties in objects in the array OK, just not the array itself.  For
example (projObj is the object of arrays and objects resulting from my
webservice method call):

trace(projObj.Content.Topics) //traces as undefined.  Expected an array
trace(typeof(projObj.Content.Topics));  //traces as object  !?! 

and

trace(projObj.Content.Topics[0])  //traces [object Object],undefined  
//but I expected [object Object], [object Object], [object Object]

Finally:

projObj.Content.Topics[0].TextAreas[0].HtmlText  //traces the value I am
expecting!!! ???

What's up?  I can get the property values OK, but I cannot treat the
array as an array as you would in Flash?

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to