Including a stand alone app in a .cfm page or Shado template
I like this. It is possible to create completely stand alone flex
apps that can be either run from within a cfm page/shado template
or as a .mxml file. This means we can develope our Flex apps to
interact with Shado, but not have to rely on being embedded in a
Shado Page. For example, I have made a flex file called
"thisTestApp.mxml" I can use this app by either browsing to
"http://[my domain and path to app]/thisTestApp.mxml", or include
it in a Shado template with the following code....
<cfimport taglib="/WEB-INF/lib/flex-bootstrap.jar" prefix="mm">
<div class="myFlexAppStyles">
<mm:mxml>
<cfinclude template="[standard
ColdFusion include path]thisTestApp.mxml">
</mm:mxml>
</div>
One thing about this, you can't have the
<?xml version="1.0"
encoding="utf-8"?>
at the top of the ".mxml" file, as with you cfinclude the file, it
breaks
<div class="myFlexAppStyles">
<mm:mxml>
<cfinclude template="[standard ColdFusion include path]thisTestApp.mxml">
</mm:mxml>
</div>
Comments
There are no comments for this page as yet.
print page
