you can use PHP to execute mxmlc to compile SWF (using function exec()), i did projects with such approach. but you need specify absolute path for mxmlc, not relative path.

On Tue, 04 May 2010 21:45:11 +0800, kanu kukreja <[email protected]> wrote:


Can somebody please reply on this, i got few replies yesterday, but not relevant with the question i asked.

Wanted to run compiler mxmlc/fcsh using php to generate swf file.

Thanks

On Mon, May 3, 2010 at 8:00 PM, kanu kukreja <[email protected]> wrote:

Hi,

My question is whether or not Flex's mxmlc can be called from within a PHP script. Here is the background:

I have been created a simple process that creates a simple quiz/tutorial by converting a text file into a .as file and compiling to a .swf file using the mxmlc compiler. This works well from the command line, but I wanted to make the process easier by creating a web-interface to do this. I have not been able to get the mxmlc compiler to work.

After searching on the Web and on this site, I believe that using fcsh (instead of mxmlc) may be the way to go. Using fcsh would certainly compile the .mxml file faster (after the first run), and I think that fcsh can be launched as a service that might be able to be called from PHP.

On the other hand, maybe I am approaching this the wrong way. Would it be better to write a Flex application that calls fcsh/mxmlc and avoid using PHP?

Thanks

Kanu kukrejA

--You received this message because you are subscribed to the Google Groups "Flex India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.



--
Best Regards
Luke

--
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to