Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1055

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
If you do not specify a directory, as in the previous example, ColdFusion runs the presentation directly in the client
browser. The presentation uses files written to a temp directory on the server. To save the presentation, specify an
absolute path or a directory relative to the CFM page. (ColdFusion does not create the directory; it must exist already.)
In the following example, the presentation files are stored in the salesPresentation directory on the local drive:
<cfpresentation title="Sales Presentation" directory="c:\salesPresenation">
ColdFusion automatically generates the following files necessary to run the presentation and saves them in the
specified directory:
• components.swf
• index.htm
• loadflash.js
• viewer.swf
Also, ColdFusion creates a subdirectory called data where it stores the following files:
• srchdata.xml (which creates the search interface)
• vconfig.xml
• viewer.xml
• A SWF file generated for each slide in the presentation
• Copies of the media files referenced in the presentation slides
Media files can include JPEG files, FLV and SWF video files, and mp3 audio files. To run the presentation that you
saved to files, double-click the index.htm file.
Note: ColdFusion does not overwrite the files referenced by the slides in the presentation; changes to the generated
presentation files do not affect the source files.
Adding presenters
Optionally, you can add one or more presenters under the
information in the control panel for the current slide to which it is assigned. A slide does not require a presenter.
Use the
tag to specify personal information. This information can include a title, an e-mail address, a
cfpresenter
logo and an image of the person, as the following code shows:
<cfpresentation title="Sales Presentation">
<cfpresenter name="Anne" title="V.P. of Sales" biography="Anne Taylor has been a top seller
at Widgets R Us for five years." logo="images/logo.jpg" image="images/ataylor_empPhoto.jpg"
email="ataylor@widgetsrus.com">
The
attribute is required. You use this value to assign the presenter to one or more slides. To assign a presenter
name
to a slide, use the
cfpresenter
following example creates a presenter named Tuckerman and assigns him to a slide called Overview:
<cfpresentation title="Sales Presentation">
<cfpresenter name="Tuckerman" title="V.P. of Marketing">
<cfpresentationslide title="Overview" src="overview.swf" presenter="Tuckerman"
duration="10"/>
...
</cfpresentation>
Note: Assign presenters explicitly to slides. To assign a presenter to more than one slide, use the presenter name in each
of the
cfpresentationslide
tag
attribute value as the
name
tags.
Last updated 1/20/2012
tag. ColdFusion displays the presenter
cfpresentation
cfpresentationslide
tag
attribute. The
presenter
1050

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents