Hi People,
This worked ok in Flex 2B3, but not in the final release of Flex 2.
The code below produces the compile time error:
" 1120: Access of undefined property URLRequestMethod."
public function DataLoadingTest ()
{
var request:URLRequest = new URLRequest (urlString);
request.contentType = "text/xml";
request.data = ""> request.method = URLRequestMethod.POST ; //This is the offending line
trace(request.data);
dataLoader = new URLLoader ();
dataLoader.addEventListener ("complete", onDataLoad);
dataLoader.addEventListener ("securityError", onSecurityError);
dataLoader.load (request);
}
{
var request:URLRequest = new URLRequest (urlString);
request.contentType = "text/xml";
request.data = ""> request.method = URLRequestMethod.POST ; //This is the offending line
trace(request.data);
dataLoader = new URLLoader ();
dataLoader.addEventListener ("complete", onDataLoad);
dataLoader.addEventListener ("securityError", onSecurityError);
dataLoader.load (request);
}
Any ideas?
--
Hilary
--
__._,_.___
--
Hilary
--
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

