The width and height for small thumbnail images to fit in the MiniNavLayout.
This is given as an ordered pair of numbers: (width, height)
Implementation public function get thumbFitSize():Point public function set thumbFitSize(value:Point):void
Constructor Detail
MiniNavLayout
()
Constructor
public function MiniNavLayout()
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Constructor
Method Detail
createPanAnimation
()
method
public function createPanAnimation(delta:Number, duration:Number, applyEaser:Boolean = true):Animate
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Create a pan animation effect
Parameters
delta:Number — The distance to pan; this may be either positive or negative.
duration:Number (default = NaN) — The time duration, in milliseconds of the pan animation effect.
applyEaser:Boolean (default = true) — If true apply easing beahvior for this effect.
This will convert the elapsed fraction of the animation into an eased fraction,
which is then used to calculate the value at that eased elapsed fraction.
Returns
Animate — The animation effect object
ensureFocusCentered
()
method
public function ensureFocusCentered(focus:IAttachment):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Make sure the display is centered on the last focus item.
If needed, a pan animation is created to center the display.
public function findCardsThatIntersect(marqueeRect:Rectangle):Vector.<int>
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Find the list of cards that overlap the specified rectangle
Parameters
marqueeRect:Rectangle — The bounding rectangle for the marquee
Returns
Vector.<int> — A vector of integers that represent the indexes
of the cards in the layout that intersect the specified marqueeRect.
generateFocusEffect
()
method
public function generateFocusEffect(oldIndex:int, newIndex:int, duration:Number):Effect
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Create a focus change effect
Parameters
oldIndex:int — The index value of the element that is the current (old) focus
newIndex:int — The index value of the element that is to be the new focus
duration:Number — The duration, in milliseconds, the effect should last
Returns
Effect — The focus effect object
generatePanEffect
()
method
public function generatePanEffect(index:int, dur:Number):Parallel
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Generate the appropriate pan effect to center on the sepcified element
in the element list.
Parameters
index:int — The index value of the element to which to pan
dur:Number — The duration, in milliseconds, the effect should last
Returns
Parallel — A parallel animation effect object
generateScrollEffect
()
method
public function generateScrollEffect(dropIndex:int):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Generate the scrolling effect needed when dropping a new item into
the MiniNavLayout so that the display is centered on the dropped item.
Parameters
dropIndex:int
getPendingFocusIndex
()
method
protected function getPendingFocusIndex():int
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Get the index value of the pending focus item from the collection manager
Returns
int
getScrollPositionDeltaToElement
()
method
override public function getScrollPositionDeltaToElement(index:int):Point
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Find the x and y distances needed to scroll to reach the
specified element. The element is identified by its index number
Parameters
index:int — The index value of the element for which you want to know
the distance to scroll.
Returns
Point — Returns the distance to the element as an ordered pair (delta_x, delta_y)
measure
()
method
override public function measure():void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Sets the default component size, both width and height, in pixels.
onEffectEnd
()
method
protected function onEffectEnd(evt:EffectEvent):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Cleans up after a NavLayout event
Parameters
evt:EffectEvent — The NavLayout event effect that is to be handled
onHostEvent
()
method
protected function onHostEvent(evt:NavHostEvent):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Handles host events where the focus has changed.
Parameters
evt:NavHostEvent — The Navigator host event to be handled
setFocusAttachment
()
method
public function setFocusAttachment(newFocus:IAttachment, oldFocus:IAttachment = null):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Set the focus to a new element in the Portfolio
Parameters
newFocus:IAttachment — The IAttachment that is to be the new focus
oldFocus:IAttachment (default = null) — The IAttachment that is the current (old) focus
setFocusAttachmentInner
()
method
protected function setFocusAttachmentInner(newFocus:IAttachment, oldFocus:IAttachment):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Set the focus to a new IAttachment that is contained inside another IAttachment
that is at the same level of the current focus IAttachment. It also creates
a focus effect to run when the focus is changed.
Parameters
newFocus:IAttachment — The IAttachment that is to be the new focus
oldFocus:IAttachment — The IAttachment that is the current (old) focus
showDropIndicator
()
method
override public function showDropIndicator(dropLocation:DropLocation):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Sizes, positions and parents the drop indicator based on the specified drop location.
Use the calculateDropLocation() method to obtain the DropLocation object.
Display the visual drop indicator for drag and drop operations.
Parameters
dropLocation:DropLocation — Specifies the location to dispaly the drop indicator.
Drop location is obtained through the computeDropLocation() method.
updateDisplayList
()
method
override public function updateDisplayList(width:Number, height:Number):void
Language Version :
ActionScript 3.0
Product Version :
Portfolio 10.0
Runtime Versions :
Flash Player 10.1, AIR 2.0
Updates the MiniNavLayouts display list.
Parameters
width:Number — The width of the display list in pixels
height:Number — The height of the display list in pixels