But in this case, the class 'using it' is buried 5 folders deep. My package
=
com.TTS.ModuleMenu.model.enum

The xml file sits in a folder at a sibling level to com. - child of project
root. And yet '/xml/...' did _not work while 'xml/...' does.

On 9/10/07, Muzak <[EMAIL PROTECTED]> wrote:
>
>   /xml/whateverFiles.xml --> starts at project root
> xml/whateverFiles.xml --> starts relative to file that uses it
>
> > /xml/whateverFiles.xml should be equal to xml/whateverFiles.xml.
> > That's how it'd work in HTML and JavaScript.
>
> nope.
>
> regards,
> Muzak
>
> ----- Original Message -----
> From: "Steve Hueners" <[EMAIL PROTECTED]<steve%40stevelearnsflex.com>
> >
> To: <flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>>
> Sent: Tuesday, September 11, 2007 2:35 AM
> Subject: Re: [flexcoders] Getting xml in code only
>
> > yep...that was it.
> >
> > If i change it to:
> > myRequest.url = "/xml/modules.xml";
> >
> > stuff works.
> >
> > Now I guess i should understand why. The class is several layers deep
> but
> > probably executes in the scope of the parent app. But even so, since the
> > folder 'xml' is a subfolder of the parent:
> >
> > /xml/whateverFiles.xml should be equal to xml/whateverFiles.xml.
> >
> > That's how it'd work in HTML and JavaScript.
> >
> > On 9/10/07, Steve Hueners <[EMAIL PROTECTED]<steve%40stevelearnsflex.com>>
> wrote:
> >>
> >> Thankx...that helps...but alas, only gets me to the next error. The
> >> FaultEvent shows:
> >>
> >> e = mx.rpc.events.FaultEvent (@10c90d81)
> >> bubbles = false
> >> cancelable = true
> >> currentTarget = mx.rpc.http.HTTPService (@11452901)
> >> eventPhase = 2
> >> fault = mx.rpc.Fault (@116c3bf1)
> >> message = mx.messaging.messages.ErrorMessage (@10b3dd41)
> >> messageId = "81FB93A6-95D3-5BDA-BE5C-F1E757A03D3C"
> >> target = mx.rpc.http.HTTPService (@11452901)
> >> token = mx.rpc.AsyncToken (@10c5ffa1)
> >> type = "fault"
> >>
> >> Wonder why there's not descriptive text with this.
> >>
> >> I wonder if it has anything to do with the path to my xmlfile. The
> class
> >> in question is several folders deep -- the xml is one level from the
> app's
> >> root. Prepending the '/' to the front of the path _should point back to
> >> root, shouldn't it?
> >>
> >> myRequest.url = "/xml/modules.xml";
> >>
> >> thankx again!
> >> --steve...
>
>  
>

Reply via email to