Have you tried doing this inside a function instead? Perhaps you could call this function on initialization, perhaps on the Application creationComplete event?


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Charles
Sent: Friday, May 26, 2006 3:49 PM
To: [email protected]
Subject: [flexcoders] Access of undefined property in XMLDocument

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

--------------------------------------------------------------------------------
  <mx:Script>
    <![CDATA[
      import flash.xml.XMLDocument;

      public var xml_result:XMLDocument = new XMLDocument();

      xml_result.ignoreWhite = true;  // ALWAYS ERROR ON THIS LINE
    ]]>
  </mx:Script>

--------------------------------------------------------------------------------

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


Charles



--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to