Your contextroot needs to look like this: "-contextroot /[webappName]"  
It takes a little while to get the properties set correctly for mxmlc but
once you do it works great.

You also might want to check this out:
http://www.deitte.com/archives/2005/09/speeding_up_mxm.htm to take advantage
of class caching.

Kevin

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Larson
Sent: Wednesday, September 28, 2005 11:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Compiling a Flex app using mxmlc

I have a Flex app that's been running fine for some time. We recently
decided to try pre-compiling the app using mxmlc.
Within the app are several references to @ContextRoot() in the url for HTTP
services. When I perform a "standard" compile, meaning I use the same
flex-config.xml, and use no other command line options for mxmlc, the
compiler gives me an error, saying I must define contextroot. 
When I provide a value for the contextroot command line option, the app
compiles, but the application will not run properly. My tcp trace utility
shows that the URL to the HTTP service call gets "mangled" by the
contextroot parameter provided, resulting in an incorrect url for the
service.
Has anyone encountered something similar?

Thanks,

John





--
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



 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to