Expand my Community achievements bar.

Can I write into mxml files runtime?

Avatar

Level 3
Hi all,

If I'm using RemoteObject, can I write a Java method that
writes into a mxml file? I need the program to ajust itself at
certain situations.

As I'm new on FDS, I need to know though if the application
will recompile properly next time it run.

Thx in advance
2 Replies

Avatar

Level 3
If you're deploying using the webtier compiler from FDS then
browsing to a .mxml file that has been modified will be recompiled
(you can force a recompile too with ?recompile=true on the URL
query params).



However, the usual deployment scenario is to precompile swfs
and then only deploy these (as compilation of mxml to swf is very
expensive).



You could always use a java process on a new thread to kick
off an mxmlc compile of the modified mxml file and for it to
redeploy the swf to the website?

Avatar

Level 3
Thanks!



Yes, actually I did'nt thought of that. I'd better make a
thread to edit the mxml's content and then recompile it on the
fly.