Packagecom.flextoolbox.controls
Classpublic class PopUpThumbnail
InheritancePopUpThumbnail Inheritance mx.controls.Image

A thumbnail representation of an image that, when clicked, will display the full-size image as a modal popup.



Public Properties
 PropertyDefined by
  clickToClosePopUp : Boolean
If true, and the pop-up content is displayed, the user may click anywhere on the screen to close the pop-up content.
PopUpThumbnail
  source : Object
The URL, object, class or string name of a class to load as the pop-up content.
PopUpThumbnail
  thumbnailSource : Object
The URL, object, class or string name of a class to load as the thumbnail content.
PopUpThumbnail
Public Methods
 MethodDefined by
  
Constructor.
PopUpThumbnail
Events
 EventSummaryDefined by
   Dispatched when the user clicks anywhere on the screen while pop-up content is displayed to close the pop-up content.PopUpThumbnail
   Dispatched when the user clicks a thumbnail to display the pop-up content.PopUpThumbnail
Styles
 StyleDescriptionDefined by
  
popUpBorderSize
Type: Number
The minimum number of pixels between the popup image and the edge of the application. The default value is 100.
PopUpThumbnail
  
popUpDuration
Type: int
The number of milliseconds for which the animation is played when the popup is shown or removed. The default value is 150.
PopUpThumbnail
  
progressIndicator
Type: Class
If the pop-up content must be loaded from a URL, a progress indicator is displayed for the user. Normally, this is just a basic animation, but there is one special case. If the progressIndicator style is set to display a ProgressBar control, it will automatically get updated with the actual progress. The default value is mx.controls.ProgressBar.
PopUpThumbnail
  
progressIndicatorStyleName
Type: String
If the progressIndicator is a style client, this style name will be applied. The default value is null.
PopUpThumbnail
Property detail
clickToClosePopUpproperty
clickToClosePopUp:Boolean  [read-write]

If true, and the pop-up content is displayed, the user may click anywhere on the screen to close the pop-up content. Advanced developers may set this to false to close the content using a different method. The content must dispatch a CloseEvent.CLOSE event when it is ready to be closed.

Implementation
    public function get clickToClosePopUp():Boolean
    public function set clickToClosePopUp(value:Boolean):void
sourceproperty 
source:Object  [read-write]

The URL, object, class or string name of a class to load as the pop-up content. If the related thumbnailSource property is set to null, this source is also used to generate a bitmap snapshot to display as the thumbnail. The value of the source property represents a relative or absolute URL; a ByteArray representing a SWF, GIF, JPEG, or PNG; an object that implements IFlexDisplayObject; a class whose type implements IFlexDisplayObject; or a String that represents a class.

Implementation
    public function get source():Object
    public function set source(value:Object):void

See also

thumbnailSourceproperty 
thumbnailSource:Object  [read-write]

The URL, object, class or string name of a class to load as the thumbnail content. If the thumbnailSource property is null, the thumbnail will be automatically generated as a bitmap snapshot of the source. The value of the thumbnailSource property represents a relative or absolute URL; a ByteArray representing a SWF, GIF, JPEG, or PNG; an object that implements IFlexDisplayObject; a class whose type implements IFlexDisplayObject; or a String that represents a class.

The default value is null.

Implementation
    public function get thumbnailSource():Object
    public function set thumbnailSource(value:Object):void

See also

Constructor detail
PopUpThumbnail()constructor
public function PopUpThumbnail()

Constructor.

Event detail
popUpCloseevent 
Event object type: com.flextoolbox.events.PopUpThumbnailEvent

Dispatched when the user clicks anywhere on the screen while pop-up content is displayed to close the pop-up content.

popUpOpenevent  
Event object type: com.flextoolbox.events.PopUpThumbnailEvent

Dispatched when the user clicks a thumbnail to display the pop-up content.