User Guide

Compiling components with Flex Data Services 73
Distributing components as MXML and
ActionScript files
You can deploy your components as MXML and ActionScript files by copying them to the
/WEB-INF/flex/user_classes directory, or to a directory included in the ActionScript
classpath. You set the ActionScript classpath by using the
<source-path> tag in the flex-
config.xml file.
For more information, see Chapter 15, “Deploying Flex Applications,” in Building and
Deploying Flex 2 Applications.
Distributing components as SWC files
To deploy an MXML or ActionScript component as a SWC file on your application server,
copy the SWC file to the WEB-INF/flex/user_classes directory, or to any directory specified
by the
<library-path> tag in the flex-config.xml file. When you deploy the SWC file,
ensure that the corresponding MXML or ActionScript file is nowhere in the directory
structure of the application or in the ActionScript classpath. Otherwise, Flex might use the
MXML file, rather than the SWC file.
For more information, see Chapter 15, “Deploying Flex Applications,” in Building and
Deploying Flex 2 Applications.
Distributing components as RSLs
To deploy an MXML or ActionScript component as an RSL file on your application server,
copy the RSL file to the directory specified by the
<runtime-shared-libraries> tag in the
flex-config.xml file.
For more information, see Chapter 15, “Deploying Flex Applications,” in Building and
Deploying Flex 2 Applications.