|
That's right. A statement like xml_result.ignoreWhite = true; that isn't inside a method is actually
executed at class initialization time, not instance initialization time. Since
xml_result is an instance variable, it doesn't exist at class initialization
time. - Gordon From: Have you tried doing this inside a
function instead? Perhaps you could call this function on initialization,
perhaps on the Application creationComplete event? From: Hi
everyone, I am
having a lot of trouble with this seemingly simple problem. I have
declared a variable 'xml_result' of type XMLDocument.
I would like to set 'ignoreWhite'
to true, but I always get an error. Here is a snippet of my code... -------------------------------------------------------------------------------- public var xml_result:XMLDocument
= new XMLDocument(); xml_result.ignoreWhite =
true; // ALWAYS ERROR ON THIS LINE -------------------------------------------------------------------------------- That's
it! But I constantly get an error with the message "Access of
undefined property xml_result", and I can't figure it out! Thanks in
advance
|
- RE: [flexcoders] Access of undefined property in XMLDocument Peter Farland
- RE: [flexcoders] Access of undefined property in XMLDoc... Gordon Smith

