4 Replies Latest reply on Dec 4, 2009 2:53 AM by Shivik

    Accessing xml files in Cairngorm

    Shivik

      Hello all

       

      I creating a simple application to access some xml data using Cairngorm. I used HTTPService and defined it inside a Services.mxml file. Now where should I put the xml file and what URL should I put in the HTTPService?

       

      When creating a cairngorm directory structure, there are so many directories what is root folder? Here is my directory structure....

       

      project

      bin

      Main.swf (I am going to run the app in AIR over here)

      libs

      src

      xml

      myxml.xml

      business

      Services.mxml (Here I defined the HTTPService)

      delegates

      MyDelegate.as (define an instance of HTTPService here)

      events

      MyEvent.as

      responders

      commands

      MyCommand.as (define the delegate here)

      views

      MyView.mxml (event is fired here)

      Main.mxml (view is defined here)

       

      I tried using the url "./xml/myxml.xml". This gave the "Error #2032 stream error".

       

      What should I do here?

       

      With best regards

      SHiVik