Packagede.stevenwood.taggalaxy.flickr
Classpublic class FlickrPhoto
InheritanceFlickrPhoto Inheritance FlickrConn Inheritance flash.events.EventDispatcher

The FlickrPhoto class is used to represent a single photo and load additional information from the Flickr API. This includes information about available different sized versions of the photo, retrieved by the flickr.photos.getSizes method, as well as photo details like description, owner and the Flickr photo page URL, retrieved by the flickr.photos.getInfo method.
The data is then used to create the detailed view of a photo in the photo sphere part of the application.



Public Properties
 PropertyDefined by
  description : String
[read-only] The describing text of the photo, if available.
FlickrPhoto
  infoLoaded : Boolean
[read-only] Whether the details of the photo has been retrieved yet.
FlickrPhoto
 Inheritedloader : URLLoader
The Instance of the URLLoader class used for all loading operations.
FlickrConn
  owner : String
FlickrPhoto
  photoPageUrl : String
[read-only] The URL of the photos webpage on Flickr.
FlickrPhoto
  realName : String
[read-only] The real name of the owner of the photo, if available.
FlickrPhoto
  sizes : Object
FlickrPhoto
  sizesLoaded : Boolean
[read-only] Whether the size information of the photo has been retrieved yet.
FlickrPhoto
  title : String
FlickrPhoto
  userName : String
[read-only] The Flickr user name of the owner of the photo.
FlickrPhoto
Public Methods
 MethodDefined by
  
FlickrPhoto(inputSrc:String, inputId:String, inputSecret:String, inputTitle:String, inputOwner:String)
Creates a new FlickrPhoto object.
FlickrPhoto
 Inherited
addListeners():void
Adds listeners to URLLoader object
FlickrConn
 Inherited
Cancels the load operation in progress.
FlickrConn
  
getId():String
FlickrPhoto
  
getSrcMedium():String
FlickrPhoto
  
getSrcSquare():String
FlickrPhoto
  
getSrcThumb():String
Not in use.
FlickrPhoto
  
loadedHandler(event:Event):void
Called when loading of photo details from the Flickr API has finished.
FlickrPhoto
  
loadInfo():void
Starts loading the detailed information from the Flickr API.
FlickrPhoto
  
loadSizes():void
Starts loading the information about available sizes from the Flickr API.
FlickrPhoto
 Inherited
Removes listeners from URLLoader object
FlickrConn
  
toString():String
Debugging: display information about all available sizes
FlickrPhoto
Property detail
descriptionproperty
description:String  [read-only]

The describing text of the photo, if available.

Implementation
    public function get description():String
infoLoadedproperty 
infoLoaded:Boolean  [read-only]

Whether the details of the photo has been retrieved yet.

Implementation
    public function get infoLoaded():Boolean
ownerproperty 
public var owner:String
photoPageUrlproperty 
photoPageUrl:String  [read-only]

The URL of the photos webpage on Flickr.

Implementation
    public function get photoPageUrl():String
realNameproperty 
realName:String  [read-only]

The real name of the owner of the photo, if available.

Implementation
    public function get realName():String
sizesproperty 
public var sizes:Object
sizesLoadedproperty 
sizesLoaded:Boolean  [read-only]

Whether the size information of the photo has been retrieved yet.

Implementation
    public function get sizesLoaded():Boolean
titleproperty 
public var title:String
userNameproperty 
userName:String  [read-only]

The Flickr user name of the owner of the photo.

Implementation
    public function get userName():String
Constructor detail
FlickrPhoto()constructor
public function FlickrPhoto(inputSrc:String, inputId:String, inputSecret:String, inputTitle:String, inputOwner:String)

Creates a new FlickrPhoto object. Takes all information that is already known about a photo from the FlickrPhotoList object.

Parameters
inputSrc:String — The URL of the Photo without the size specific extension.
 
inputId:String — The ID of the Photo
 
inputSecret:String — The Secret of the Photo
 
inputTitle:String — The Title of the Photo
 
inputOwner:String — The Owner of the Photo
Method detail
getId()method
public function getId():String

Returns
String — The ID of the photo
getSrcMedium()method 
public function getSrcMedium():String

Returns
String — The URL of the medium preview image of the photo, 500 pixels on longest side.
getSrcSquare()method 
public function getSrcSquare():String

Returns
String — The URL of the square preview image of the photo, 75 x 75 pixels.
getSrcThumb()method 
public function getSrcThumb():String

Not in use.

Returns
String — The URL of the thumbnail preview image of the photo, 100 pixels on longest side.
loadedHandler()method 
public override function loadedHandler(event:Event):void

Called when loading of photo details from the Flickr API has finished.

Parameters
event:Event
loadInfo()method 
public function loadInfo():void

Starts loading the detailed information from the Flickr API.

loadSizes()method 
public function loadSizes():void

Starts loading the information about available sizes from the Flickr API.

toString()method 
public override function toString():String

Debugging: display information about all available sizes

Returns
String — a string describing the internal "sizes" object