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/
