English English Spanish EspañolKorea한국어
Straker»Company»Blog»2005» Import statements do not work in a Flex App embedded in a Coldfusion page

Import statements do not work in a Flex App embedded in a Coldfusion page

This has bugged me to no end. If you try to use a Flex app that you've written that contains the "import" statement, and you've embedded this Flex app in a Coldfusion page, Coldfusion complains about not being able to find the classes the app declares in the import statement. The solution is simple and stupid at the same time. Look at the /WEB-INF/cfform directory. You'll spot a usual "Flex" suspect -- the flex-config.xml file! I believe Coldfusion forms use this for delivering Flex-based forms. You need to declare Actionscript path in here as well. And not *just* in the /WEB-INF/flex/flex-config.xml . If the actionscript path is specified in both flex-config.xml files, life is sweet. Your Flex app will work as standalone app, or as an embedded app within a Coldfusion page.


Comments

There are no comments for this page as yet.

Add a comment