RR> // this does not produce an error
RR> settings.settings_id = settingsBranch.childNodes[0].firstChild.nodeValue;

Of course not, because you use the array syntax again (childNodes[0],
which is in fact the same method as in your previous
settings[tagName]) and when using such, the compiler has no type
information (since there are no typed arrays in AS). If you try it by
the following way, you'll surely get a compile error:

settings.settings_id = settingsBranch.firstChild..firstChild.nodeValue;

  Attila

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