Re: [flexcoders] [FLEX 2 Final] URLRequestMethod.POST produces compile time error
Thanks Carson, that works now. Is this documented as a change between B3 and the final release somewhere? Hilary -- On 7/10/06, Carson Hager [EMAIL PROTECTED] wrote: You likely need to add an import for flash.net.* to your code so the compiler can know what class you're referring to. As a note, Flex adds a number of implicit imports to mxml applications including flash.net.* which would take care of this issue had the code been in an application but does not add them to mxml components or AS files. The import should do the trick. Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com Email: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Hilary BridelSent: Sunday, July 09, 2006 8:18 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] [FLEX 2 Final] URLRequestMethod.POST produces compile time error 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 linetrace(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 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. __,_._,___
RE: [flexcoders] [FLEX 2 Final] URLRequestMethod.POST produces compile time error
You likely need to add an import for flash.net.* to your code so the compiler can know what class you're referring to. As a note, Flex adds a number of implicit imports to mxml applications including flash.net.* which would take care of this issue had the code been in an application but does not add them to mxml components or AS files. The import should do the trick. Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.comEmail: [EMAIL PROTECTED]Office: 866-CYNERGYMobile: 1.703.489.6466 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Hilary BridelSent: Sunday, July 09, 2006 8:18 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] [FLEX 2 Final] URLRequestMethod.POST produces compile time error 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 linetrace(request.data);dataLoader = new URLLoader ();dataLoader.addEventListener ("complete", onDataLoad);dataLoader.addEventListener ("securityError", onSecurityError); dataLoader.load (request);} Any ideas?-- 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. __,_._,___