
1052
DEVELOPING
COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Las
t
upda
te
d 8/5/2010
Creating content from source files
The following code creates a presentation with three slides from source files in different locations:
<cfpresentation title="Garden Mania" directory="gardenPresentation">
<cfpresentationslide title="Seeds of Change" src="c:\gardening\seeds.html"
audio="media\hendrix.mp3" duration="30"/>
<cfpresentationslide title="Flower Power" src="shockwave\flowerPower.swf" duration="40"/>
<cfpresentationslide title="Dig Deep" src="http://www.smartgarden.com/index.htm"
duration="15"/>
</cfpresentation>
In this example, ColdFusion generates the files required to run the presentation in the gardenPresentation directory.
It generates a new SWF file in the data subdirectory from each of the slides. ColdFusion also copies the hendrix.mp3
file and saves it in the data subdirectory.
Note:
Links within slides created from HTML files are not active.
Creating content from HTML and CFML code
If you do not specify a source file for a slide, create the content by using HTML or CFML in the
cfpresentationslide
tag body. The following presentation contains one slide with each with the following types of content:
•
Generated from HTML
•
Generated from HTML and CFML
•
Extracted from an HTML file on an external website
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...