Configure Flex to Use ColdFusion Mappings
If you want to store your CFCs outside of your ColdFusion web root , you can do this by mapping a directory in ColdFusion. This is all well and good, except by default, Flex isn’t configured to work with mappings. Here’s the remedy:
- Navigate to ‘C:\ColdFusion8\wwwroot\WEB-INF\flex\’
- Open the ‘remoting-config.xml’ file in your favorite text editor.
- Locate the <use-mappings>false</use-mappings> tag. (Around line 24 )
- Change the value to true. <use-mappings>true</use-mappings>
That’s it! Now you should be able to point your remote objects to the mapped directory you set up for your CFCs using the ColdFusion Administrator.
Categories: ColdFusion, Config, Flex