Archive

Archive for the ‘ColdFusion’ Category

Configure Flex to Use ColdFusion Mappings

February 24th, 2009 Bryan Clover No comments

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:

  1. Navigate to ‘C:\ColdFusion8\wwwroot\WEB-INF\flex\’
  2. Open the ‘remoting-config.xml’ file in your favorite text editor.
  3. Locate the <use-mappings>false</use-mappings> tag.  (Around line 24 )
  4. 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 Tags: