Package | flash.media |
Class | public class CameraRoll |
Inheritance | CameraRoll EventDispatcher Object |
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 2 |
This class is only supported in mobile profile AIR applications.
The CameraRoll.addBitmapData()
method adds an image to the device's camera roll. To check at run time whether your
application supports the CameraRoll.addBitmapData()
method, check the CameraRoll.supportsAddBitmapData
property.
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
prototype : Object [static]
A reference to the prototype object of a class or function object. | Object | ||
supportsAddBitmapData : Boolean [static] [read-only]
Whether the CameraRoll.addBitmapData() method is supported. | CameraRoll |
Method | Defined By | ||
---|---|---|---|
Creates a CameraRoll object. | CameraRoll | ||
Adds an image to the iPhone camera roll. | CameraRoll | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener
receives notification of an event. | EventDispatcher | ||
Dispatches an event into the event flow. | EventDispatcher | ||
Checks whether the EventDispatcher object has any listeners registered for a specific type
of event. | EventDispatcher | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Removes a listener from the EventDispatcher object. | EventDispatcher | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object | ||
Checks whether an event listener is registered with this EventDispatcher object or any of
its ancestors for the specified event type. | EventDispatcher |
Event | Summary | Defined By | ||
---|---|---|---|---|
[broadcast event] Dispatched when the Flash Player or AIR application gains operating system focus and becomes active. | EventDispatcher | |||
Signals that a CameraRoll operation completed successfully. | CameraRoll | |||
[broadcast event] Dispatched when the Flash Player or AIR application operating loses system focus and is becoming inactive. | EventDispatcher | |||
Indicates that an error occurred during an CameraRoll operation. | CameraRoll |
supportsAddBitmapData | property |
supportsAddBitmapData:Boolean
[read-only] Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 2 |
Whether the CameraRoll.addBitmapData()
method is supported. Currently, the method
is only supported in mobile profile AIR applications.
Implementation
public static function get supportsAddBitmapData():Boolean
CameraRoll | () | Constructor |
public function CameraRoll()
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 2 |
Creates a CameraRoll object.
There is only a single "camera roll." All CameraRoll objects save to the same image repository.
addBitmapData | () | method |
public function addBitmapData(bitmapData:BitmapData):void
Language Version: | ActionScript 3.0 |
Runtime Versions: | AIR 2 |
Adds an image to the iPhone camera roll.
To check at run time whether your application supports the CameraRoll.addBitmapData()
method,
check the CameraRoll.supportsAddBitmapData
property.
Parameters
bitmapData:BitmapData — a BitmapData object containing the image to send to the camera roll.
|
complete | Event |
flash.events.Event
property Event.type =
flash.events.Event.COMPLETE
Runtime Versions: | AIR 2 |
Signals that a CameraRoll operation completed successfully.
TheEvent.COMPLETE
constant defines the value of the type
property of a complete
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The network object that has completed loading. |
error | Event |
flash.events.ErrorEvent
property ErrorEvent.type =
flash.events.ErrorEvent.ERROR
Runtime Versions: | AIR 2 |
Indicates that an error occurred during an CameraRoll operation.
Defines the value of thetype
property of an error
event object.
This event has the following properties:
Property | Value |
---|---|
bubbles | false |
cancelable | false ; there is no default behavior to cancel. |
currentTarget | The object that is actively processing the Event object with an event listener. |
target | The object experiencing a network operation failure. |
text | Text to be displayed as an error message. |
Thu May 20 2010, 02:19 AM -07:00