Thanks for the info.
I did get it to work, but through another method to yours:
My app is in the root, so I can't provide [webappname] as you've
mentioned below. I provide "/" as context root in the MXMLC command
line, but I also have to make some changes in the flex-config.xml
file to accomodate the fact that my app is the root. Any references
to "{context.root}/flashproxy" or similar in the flex-config.xml
file were replaced with "{context.root}flashproxy". Note the removal
of the "/" - wchich apparently gets added back in through the
command line parameter.
Anyway, I got it to work and have a working pre-compiled Flex app.
John
--- In [email protected], "Kevin Langdon" <[EMAIL PROTECTED]>
wrote:
> 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: [email protected]
[mailto:[EMAIL PROTECTED] On
> Behalf Of John Larson
> Sent: Wednesday, September 28, 2005 11:33 AM
> To: [email protected]
> 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/