Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 668

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

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
<cf:Config
id="configid"
cfServer="127.0.0.1"
cfPort="80"
servicePassword="service"
serviceUserName="service"/>
<!-- Add border-->
<cf:Image
id="img"
action="addborder"
color="red"
thickness="5"
source="http://127.0.0.1:80/GetExifmetaData.jpg"
result="handleResult(event)"
fault="handleError(event)"/>
<mx:Image id="retImage"/>
</mx:Application>
Batch operation
A batch operation lets you perform multiple image manipulations on an image as part of one operation, instead of
performing the operations individually. You upload an image to the server, use the batch operation to perform
multiple Image operations on it, and get the modified image back from the server. To use this action, use an associative
array of actions and corresponding attributes. It is easier to create an associative array in ActionScript than MXML.
The following example shows code to create the associative array with the action information and perform the batch
operation:
ActionScript Part:
[Bindable]
public var attributes:Array =
[{AddBorder:{color:"Red",thickness:"50"}},
{Resize:{width:"50%",height:"50%",interpolation:"blackman",blurfactor:"2"}},
{Flip:{transpose:"270"}}]
MXML Part:
<!-- batch operation --
<cf:Image id="img" action="batchoperation"
source="http://localhost:8500/cat.jpg"
attributes="{attributes}"/>
Using the PDF class
The
class is the proxy for the ColdFusion PDF service, which provides the functionality of the cfpdf tag. You
Pdf
specify the required cfpdf attributes for the action as
action:
tag attributes. The following examples show each supported
Pdf
Last updated 1/20/2012
663

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents