Packagecom.gestureworks.cml.element
Classpublic class Flickr
InheritanceFlickr Inheritance BitmapFactory Inheritance ElementFactory Inheritance flash.display.Sprite

The Flick element provides access to images stored on Flickr through the Flickr API. To access the image, one must have the image's ID from the flickr server, and a Flickr API Key. Flickr API keys start out at free and have some subscription plans depending on the amount of use they receive. They are available at: http://www.flickr/com/service/api
     
       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

YouTube


Public Properties
 PropertyDefined By
 Inheritedalpha : 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
 InheritedaspectRatio : Number
[read-only] Stores the aspectRatio of the currently loaded image
BitmapFactory
 Inheritedavatar : Boolean
sets the avatar value
BitmapFactory
 Inheritedbitmap : Bitmap
Stores a reference to the currently loaded bitmap
BitmapFactory
 InheritedbitmapArray : Array
[read-only] stores images in an array
BitmapFactory
 InheritedbitmapData : BitmapData
Stores a reference to the currently loaded bitmapData
BitmapFactory
 InheritedbitmapDataArray : Array
[read-only] stores bitmap data array
BitmapFactory
 InheritedbitmapDataCache : Boolean
Specifies whether the bitmapData is cached or not
BitmapFactory
 Inheritedblur : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedbottom : Number
sets the bottom value
ElementFactory
 Inheritedclass_ : String
Object's css class;
ElementFactory
 InheritedclassName : String
sets the class name of displayobject
ElementFactory
 InheritedcmlIndex : int
sets the cml index
ElementFactory
 InheriteddebugStyle : *
sets the debug style
ElementFactory
  description : String
[read-only]
Flickr
 InheriteddisplayEvents : String
Use for dispatch completes.
ElementFactory
 InheriteddropShadow : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedheight : Number
[override] Sets width of the display object in pixels
BitmapFactory
 InheritedheightPercent : String
sets the height percent of display object
ElementFactory
 InheritedhorizontalCenter : Number
sets the horizontal center of display object
ElementFactory
 Inheritedid : String
sets the id of child
ElementFactory
 Inheritedindex : int
sets the index of display object
ElementFactory
 InheritedisLoaded : Boolean = false
BitmapFactory
 Inheritedlandscape : Boolean
[read-only] specifies whether the loaded image is landscape or not
BitmapFactory
 Inheritedleft : Number
sets left value
ElementFactory
  loaded : String
[read-only] Read-only property indicating if the element is loaded or not.
Flickr
 Inheritednormalize : Boolean
specifies whether loaded image is normalised or not
BitmapFactory
 InheritedpercentLoaded : Number
BitmapFactory
 Inheritedportrait : Boolean
[read-only] specifies whether the loaded image is portrait or not
BitmapFactory
 InheritedpropertyStates : Array
Deprecated: Please Use state
ElementFactory
 Inheritedresample : Boolean
Specifies whether a loaded image is resampled to the provided width and/or height.
BitmapFactory
 Inheritedright : Number
sets the right value
ElementFactory
 Inheritedscale : Number
Sets both the x and y scale values
ElementFactory
 InheritedscaleX : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedscaleY : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedsizeArray : Array
stores array list size
BitmapFactory
  src : String
[override] A string for the image id.
Flickr
 Inheritedstate : Array
property states array
ElementFactory
 Inheritedtop : Number
sets top value
ElementFactory
  url : String
A string for the image url.
Flickr
 InheritedverticalCenter : Number
sets the vertical center of display object
ElementFactory
 Inheritedwidth : Number
[override] Sets width of the display object in pixels
BitmapFactory
 InheritedwidthPercent : String
sets the percent of width of display object
ElementFactory
Protected Properties
 PropertyDefined By
 Inheritedimg : IMGLoader
BitmapFactory
Public Methods
 MethodDefined By
  
Constructor
Flickr
 Inherited
clone():*
Returns clone of self
ElementFactory
 Inherited
close():void
Closes the currently open image file
BitmapFactory
  
[override] CML display callback Initialisation
Flickr
  
dispose():void
[override]
Flickr
  
init():void
[override] Initialisation method
Flickr
 Inherited
load(file:String):void
Deprecated: Please Use open()
loads external image file
BitmapFactory
 Inherited
loadComplete(event:Event = null):void
This is called when the image is loaded.
BitmapFactory
  
open(file:String = null):void
[override]
Flickr
 Inherited
parseCML(cml:XMLList):XMLList
parses cml file
ElementFactory
 Inherited
postparseCML(cml:XMLList):void
post parses the cml file
ElementFactory
 Inherited
preloadFile(file:String):void
loads the file
BitmapFactory
 Inherited
resize():void
BitmapFactory
 Inherited
updateProperties(state:Number = 0):void
this method updates the properties
ElementFactory
Protected Methods
 MethodDefined By
 Inherited
BitmapFactory
 Inherited
BitmapFactory
Property Detail
apikeyproperty
apikey:String

The user's API key, necessary for making queries to the API, but not necessary for single images.


Implementation
    public function get apikey():String
    public function set apikey(value:String):void
descriptionproperty 
description:String  [read-only]


Implementation
    public function get description():String
loadedproperty 
loaded:String  [read-only]

Read-only property indicating if the element is loaded or not.


Implementation
    public function get loaded():String
srcproperty 
src:String[override]

A string for the image id.


Implementation
    public function get src():String
    public function set src(value:String):void
urlproperty 
url:String

A string for the image url.


Implementation
    public function get url():String
    public function set url(value:String):void
Constructor Detail
Flickr()Constructor
public function Flickr()

Constructor

Method Detail
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)