How to Create Swf File Using mxmlc in Command Prompt

Creating SWF file using Flex builder is easy and most of the flex developers knows this way but we can also this SWF using mxmlc compiler in command prompt.

Here We will see the steps.

Create a Batch File and copy paste the following 4 lines.Place the batch file in your project directory where the src folder is there.

mxmlc -output NMSLogin.swf  -library-path+=flex_lib 
src/com/carc/nms/security/usm/presentation/NMSLogin.mxml 
-source-path src/
pause

Explanation:
NMSLogin.swf - Output SWF File
flex_lib - flex related library directory.
MainClass -
src/com/carc/nms/security/usm/presentation/NMSLogin.mxml
-source-path - src/

Related posts:

  1. Unix Find Command Tips
  2. How to Create Exe file or Installer for Adobe Flex Desktop(Adobe Air) Applications Using Flash Builder

Comments are closed.