• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to load XML file into XML object in mxml?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am having an XML file. I am loading XML data into XML object. The code is as below.


I am calling this arrangeComps() on button's click event. btn1 is my custom component having setX and setY methods, same for txt1. Now when I am accessing XML data i.e. myXML.button.x, it gives me following error. And when I debug it also doesn't go into xmlLoaded() function.


Can anybody please tell me what's the problem here?

Thanks.

Jahnvi.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


And when I debug it also doesn't go into xmlLoaded() function.


There is your problem. Try handling some of the other events URLLoader can dispatch, particularaly ioError or SecurityError.

 
Jahnvi Pathak
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Paul.

I caught my mistake. There was some file path error. I placed data.xml at proper place and now it runs perfectly.

- Jahnvi
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic