Yes, look at that first.  Put the file in the same folder, and remove
the "./".

 

I do not see anything wrong with the code, except for setting the
content type.  That makes no sense in your case, since it affects the
format of the HTTP body in a post.

 

If you don't get it by tomorrow, I'll try to do an example using as
only.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of bobignacio
Sent: Monday, May 14, 2007 7:33 PM
To: [email protected]
Subject: [flexcoders] Re: events not being called: HTTPService

 

For the following line:

public var xmlLocation:String = "./questionaire.xml";

A few simple questions...

Is "questionaire.xml" spelled correctly?
Is this file found in the same directory as the Main.mxml?
Where is this file located?

You can also put <mx:traceTarget /> at the beginning of the source
code right after the <mx:Application ...> tag. This will spew out the
entire request which is being sent out onto the wire...it may give you
some clues.

Hope this helps,

Bob I.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "barry.beattie" <[EMAIL PROTECTED]>
wrote:
>
> 
> > Why are you setting:
> > xmlRequest.contentType = "Application/xml";
> 
> simply due to a lack of clear examples. just about everything else
> uses the mx:HTTPService as an tag.
> 
> sadly, leaving it out didn't help. same problem.
> 
> is there anything obvious wrong with the code?
> can the listeners be debugged by trace and stepping thru the code?
> 
> has anyone got a working example pulling in an external xml file but
> *not* using the MXML tag to do so (just the AS3 code)?
> 
> thanx
> b
>

 

Reply via email to