Hi Cedric,
Thanks.
var xmlData:XML = new XML(); did the trick.

About
typeof doesn't and will never return XML as a result. Look up the table in the help panel for 'typeof':
I've got a different help :-) which promises that typeof returns:
Array           object
Boolean boolean
Function        function
int             number
Number  number
Object  object
String  string
uint            number
XML             xml
XMLList xml

Willem van den Goorbergh

Op 23-aug-2007, om 11:30 heeft Cedric Muller het volgende geschreven:

look, maybe, here ...

//      just declaring the dataType won't be enough
var xmlData:XML;
trace(xmlData instanceof XML);  //      <- outputs: false

//      declaring the dataType and assigning an instance of XML
var xmlData:XML = new XML();
trace(xmlData instanceof XML);  //      <- outputs: true


typeof doesn't and will never return XML as a result. Look up the table in the help panel for 'typeof':

String:string
Movie clip:movieclip
Button:object
Text field:object
Number:number
Boolean:boolean
Object:object
Function:function


hth,
Cedric



=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378
or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=


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