Package | com.gestureworks.cml.element |
Class | public class Flickr |
Inheritance | Flickr ![]() ![]() ![]() |
var flickrImg:Flickr = new Flickr(); flickrImg.apikey = "ENTER YOUR FLICKR API KEY"; flickrImg.src = "5703998760"; addChild(flickrImg); //Call init() once you're ready to display the class. flickrImg.init();
See also
Property | Defined By | ||
---|---|---|---|
![]() | alpha : Number [override] [write-only]
sets the alpha for display objects
| ElementFactory | |
apikey : String
The user's API key, necessary for making queries to the API,
but not necessary for single images. | Flickr | ||
![]() | aspectRatio : Number [read-only]
Stores the aspectRatio of the currently loaded image
| BitmapFactory | |
![]() | avatar : Boolean
sets the avatar value
| BitmapFactory | |
![]() | bitmap : Bitmap
Stores a reference to the currently loaded bitmap
| BitmapFactory | |
![]() | bitmapArray : Array [read-only]
stores images in an array
| BitmapFactory | |
![]() | bitmapData : BitmapData
Stores a reference to the currently loaded bitmapData
| BitmapFactory | |
![]() | bitmapDataArray : Array [read-only]
stores bitmap data array
| BitmapFactory | |
![]() | bitmapDataCache : Boolean
Specifies whether the bitmapData is cached or not
| BitmapFactory | |
![]() | blur : Boolean
Sets the drop shadow effect
| ElementFactory | |
![]() | bottom : Number
sets the bottom value
| ElementFactory | |
![]() | class_ : String
Object's css class;
| ElementFactory | |
![]() | className : String
sets the class name of displayobject
| ElementFactory | |
![]() | cmlIndex : int
sets the cml index
| ElementFactory | |
![]() | debugStyle : *
sets the debug style
| ElementFactory | |
description : String [read-only] | Flickr | ||
![]() | displayEvents : String
Use for dispatch completes. | ElementFactory | |
![]() | dropShadow : Boolean
Sets the drop shadow effect
| ElementFactory | |
![]() | height : Number [override]
Sets width of the display object in pixels
| BitmapFactory | |
![]() | heightPercent : String
sets the height percent of display object
| ElementFactory | |
![]() | horizontalCenter : Number
sets the horizontal center of display object
| ElementFactory | |
![]() | id : String
sets the id of child
| ElementFactory | |
![]() | index : int
sets the index of display object
| ElementFactory | |
![]() | isLoaded : Boolean = false | BitmapFactory | |
![]() | landscape : Boolean [read-only]
specifies whether the loaded image is landscape or not
| BitmapFactory | |
![]() | left : Number
sets left value
| ElementFactory | |
loaded : String [read-only]
Read-only property indicating if the element is loaded or not. | Flickr | ||
![]() | normalize : Boolean
specifies whether loaded image is normalised or not
| BitmapFactory | |
![]() | percentLoaded : Number | BitmapFactory | |
![]() | portrait : Boolean [read-only]
specifies whether the loaded image is portrait or not
| BitmapFactory | |
![]() | propertyStates : Array Deprecated: Please Use state | ElementFactory | |
![]() | resample : Boolean
Specifies whether a loaded image is resampled to the provided width and/or height. | BitmapFactory | |
![]() | right : Number
sets the right value
| ElementFactory | |
![]() | scale : Number
Sets both the x and y scale values
| ElementFactory | |
![]() | scaleX : Number [override]
Sets width of the display object in pixels
| ElementFactory | |
![]() | scaleY : Number [override]
Sets width of the display object in pixels
| ElementFactory | |
![]() | sizeArray : Array
stores array list size
| BitmapFactory | |
src : String [override]
A string for the image id. | Flickr | ||
![]() | state : Array
property states array
| ElementFactory | |
![]() | top : Number
sets top value
| ElementFactory | |
url : String
A string for the image url. | Flickr | ||
![]() | verticalCenter : Number
sets the vertical center of display object
| ElementFactory | |
![]() | width : Number [override]
Sets width of the display object in pixels
| BitmapFactory | |
![]() | widthPercent : String
sets the percent of width of display object
| ElementFactory |
Method | Defined By | ||
---|---|---|---|
Flickr()
Constructor
| Flickr | ||
![]() | clone():*
Returns clone of self
| ElementFactory | |
![]() | close():void
Closes the currently open image file
| BitmapFactory | |
displayComplete():void [override]
CML display callback Initialisation
| Flickr | ||
dispose():void [override] | Flickr | ||
init():void [override]
Initialisation method
| Flickr | ||
![]() | load(file:String):void Deprecated: Please Use open()
loads external image file
| BitmapFactory | |
![]() | loadComplete(event:Event = null):void
This is called when the image is loaded. | BitmapFactory | |
open(file:String = null):void [override] | Flickr | ||
![]() | parseCML(cml:XMLList):XMLList
parses cml file
| ElementFactory | |
![]() | postparseCML(cml:XMLList):void
post parses the cml file
| ElementFactory | |
![]() | preloadFile(file:String):void
loads the file
| BitmapFactory | |
![]() | resize():void | BitmapFactory | |
![]() | updateProperties(state:Number = 0):void
this method updates the properties
| ElementFactory |
apikey | property |
apikey:String
The user's API key, necessary for making queries to the API, but not necessary for single images.
public function get apikey():String
public function set apikey(value:String):void
description | property |
description:String
[read-only] public function get description():String
loaded | property |
loaded:String
[read-only] Read-only property indicating if the element is loaded or not.
public function get loaded():String
src | property |
src:String
[override] A string for the image id.
public function get src():String
public function set src(value:String):void
url | property |
url:String
A string for the image url.
public function get url():String
public function set url(value:String):void
Flickr | () | Constructor |
public function Flickr()
Constructor
displayComplete | () | method |
override public function displayComplete():void
CML display callback Initialisation
dispose | () | method |
override public function dispose():void
init | () | method |
override public function init():void
Initialisation method
open | () | method |
override public function open(file:String = null):void
Parameters
file:String (default = null )
|