Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The Preview class extends NavSkinnableComponent to preview single and multipage documents,
as well as audio and video content.
Skin States
To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.
Skin State Description Defined By audio
Preview audioHover
Preview pagingThumbnail
Preview pagingThumbnailHover
Preview thumbnail
Preview thumbnailHover
Preview video
Preview videoHover
Preview
aspectRatio:Number
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The aspect ratio of the preview
This property can be used as the source for data binding.
Implementation public function get aspectRatio():Number
public function set aspectRatio(value:Number):void
See also
protected var deferredRequest:Object
doubleClickEnabled:Boolean
[write-only] [override]
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Override to propagate the doubleClickEnabled property to sub-components of Preview.
Implementation public function set doubleClickEnabled(value:Boolean):void
enabled:Boolean
[override]
Implementation public function get enabled():Boolean
public function set enabled(value:Boolean):void
protected var lastAttachmentRequest:IAttachment
model:IPreviewModel
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The current preview model.
This property can be used as the source for data binding.
Implementation public function get model():IPreviewModel
public function set model(value:IPreviewModel ):void
See also
protected var modelWatcher:ChangeWatcher
pageNavigationEnabled:Boolean
Language Version : ActionScript 3.0
Product Version : Portfolio 10.1
Runtime Versions : Flash Player 10.1, AIR 2.0
Whether page navigation is enabled (via keyboard, mousewheel)
This property can be used as the source for data binding.
Implementation public function get pageNavigationEnabled():Boolean
public function set pageNavigationEnabled(value:Boolean):void
smallPreview:Boolean
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Whether the preview is a "small" preview that should not have next/prev buttons in the multipage case.
This property can be used as the source for data binding.
Implementation public function get smallPreview():Boolean
public function set smallPreview(value:Boolean):void
protected static var thumbnailMgr:ThumbnailManager
thumbnailPriority:int
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The priority for generating this thumbnail.
It can a priority defined by the ThumbnailManager, but is not limited to those values.
The priority is used by the ThumbnailManager to control a priority queue for thumbnail generation.
Implementation public function get thumbnailPriority():int
public function set thumbnailPriority(value:int):void
See also
protected var thumbsData:Object
usePlatformPreview:Boolean
[read-only]
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Whether this preview should use platform preview (as opposed to navigator preview).
Implementation public function get usePlatformPreview():Boolean
public function Preview()
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Constructor.
override protected function attachSkin():void
protected function ensureMultipageThumbnailsReady(bottomPage:int, topPage:int):void
Parameters
bottomPage :int
topPage :int
public function generateThumbnail(id:*, attachment:IAttachment , previewSize:Point = null, downSampleOK:Boolean = true, onThumbComplete:Function = null):void
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Generate a thumbnail.
Parameters
id :*
— An arbitrary id that is used to prune multiple duplicate requests.
attachment :IAttachment
— The attachment used to generate the thumbnail.
previewSize :Point
(default = null
)
— The desired size of the thumbnail in pixels.
downSampleOK :Boolean
(default = true
)
— A boolean that indicates whether it's ok to return a downsampled thumb
onThumbComplete :Function
(default = null
)
— An optional callback function that is called when the thumbnail generation is complete. It takes the form
function onThumbComplete(pageNumber:uint, retWidth:Number, retHeight:Number):void
override protected function getCurrentSkinState():String
Returns protected function getModelThumbnail(pageNumber:int):Bitmap
Parameters
Returns override protected function initStates():void
public function isThumbnailState():Boolean
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Return true if the preview is a single or multipage preview (not an audio or video).
Returns override protected function measure():void
protected function onScrollComplete(e:Event):void
Parameters
override protected function partAdded(partName:String, instance:Object):void
Parameters
partName :String
instance :Object
override protected function partRemoved(partName:String, instance:Object):void
Parameters
partName :String
instance :Object
protected function requestMultiPageThumbnails(id:*, attachment:IAttachment , previewSize:Point = null, downSampleOK:Boolean = true, onThumbComplete:Function = null):void
Parameters
id :*
attachment :IAttachment
previewSize :Point
(default = null
)
downSampleOK :Boolean
(default = true
)
onThumbComplete :Function
(default = null
)
protected function requestThumbnail(id:*, attachment:IAttachment , previewSize:Point, pageNumber:uint, downSampleOK:Boolean, priority:int, onThumbComplete:Function = null):void
Parameters
id :*
attachment :IAttachment
previewSize :Point
pageNumber :uint
downSampleOK :Boolean
priority :int
onThumbComplete :Function
(default = null
)
protected function setModelThumbnail(thumbnail:Bitmap, pageNumber:int):void
Parameters
thumbnail :Bitmap
pageNumber :int
protected function shouldUseNewBitmap(oldBitmap:BitmapData, newBitmap:BitmapData):Boolean
Returns true if newBitmap dimensions are a sufficiently better fit than oldBitmap
given the current dimensions of the preview; false otherwise.
Parameters
oldBitmap :BitmapData
newBitmap :BitmapData
Returns public function stopPlayback():void
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Stop the playback of media content in this preview.
Event Object Type: com.adobe.portfolio.events.PreviewEvent
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Dispatched when the user requests to extract the previewed content.
See also
Event Object Type: com.adobe.portfolio.events.PreviewEvent
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
Dispatched when the user requests to show info for the previewed content.
See also
public static const AUDIO:String = audio
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The "audio" state of the Preview and its skin. Used to preview audio file types.
public static const PAGING_THUMBNAIL:String = pagingThumbnail
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The "pagingThumbnail" state of the Preview and its skin. Used to preview multipage file types.
public static const THUMBNAIL:String = thumbnail
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The "thumbnail" state of the Preview and its skin. Used to preview most file types.
public static const VIDEO:String = video
Language Version : ActionScript 3.0
Product Version : Portfolio 10.0
Runtime Versions : Flash Player 10.1, AIR 2.0
The "video" state of the Preview and its skin. Used to preview video file types.
Copyright Adobe Systems Incorporated, all rights reserved, for internal use only Mon Apr 25 2011, 05:54 PM -07:00