The Image class is the proxy for the ColdFusion Image service, which provides the functionality of the cfimage tag. You specify the required cfimage attributes for the action as Image tag attributes. The following examples show typical usage, in this case adding a border:
<?xml version="1.0" encoding="utf-8"?> |
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] |
MXML Part:
<!-- batch operation -- <cf:Image id="img" action="batchoperation" source="http://localhost:8500/cat.jpg" attributes="{attributes}"/> |