Packagecom.myflashlab.air.extensions.richWebView.ios
Classpublic class ScrollView
InheritanceScrollView Inheritance Object

Encapsulates the scroller settings for a web view.



Public Properties
 PropertyDefined By
  alwaysBounceHorizontal : Boolean
if YES and bounces is YES, even if content is smaller than bounds, allow drag horizontally.
ScrollView
  alwaysBounceVertical : Boolean
if YES and bounces is YES, even if content is smaller than bounds, allow drag vertically.
ScrollView
  bounces : Boolean
if true, bounces past edge of content and back again.
ScrollView
  contentOffsetX : int
[read-only]
ScrollView
  contentOffsetY : int
[read-only]
ScrollView
  contentSizeHeight : int
[read-only]
ScrollView
  contentSizeWidth : int
[read-only]
ScrollView
  indicatorStyle : int
indicates the current active scroll indicator style.
ScrollView
  maximumZoomScale : Number
must be > minimum zoom scale to enable zooming.
ScrollView
  minimumZoomScale : Number
default is 1.0.
ScrollView
  pagingEnabled : Boolean
default false.
ScrollView
  scrollEnabled : Boolean
default YES.
ScrollView
  scrollsToTop : Boolean
When the user taps the status bar, the scroll view beneath the touch which is closest to the status bar will be scrolled to top, but only if its `scrollsToTop` property is YES, its delegate does not return NO from `-scrollViewShouldScrollToTop:`, and it is not already at the top.
ScrollView
  showsHorizontalScrollIndicator : Boolean
show indicator while we are tracking.
ScrollView
  showsVerticalScrollIndicator : Boolean
show indicator while we are tracking.
ScrollView
  zoomScale : Number
[read-only] default is 1.0.
ScrollView
Public Methods
 MethodDefined By
  
displays the scroll indicators for a short time.
ScrollView
  
ScrollView
  
scrollBy($x:Boolean, $y:Boolean, $animated:Boolean):void
ScrollView
  
scrollTo($x:Boolean, $y:Boolean, $animated:Boolean):void
ScrollView
  
setContentOffset($x:int, $y:int, $animated:Boolean):void
animate at constant velocity to new offset
ScrollView
  
setZoomScale($value:Number, $animated:Boolean):void
ScrollView
Property Detail
alwaysBounceHorizontalproperty
alwaysBounceHorizontal:Boolean

if YES and bounces is YES, even if content is smaller than bounds, allow drag horizontally. default value is false


Implementation
    public function get alwaysBounceHorizontal():Boolean
    public function set alwaysBounceHorizontal(value:Boolean):void
alwaysBounceVerticalproperty 
alwaysBounceVertical:Boolean

if YES and bounces is YES, even if content is smaller than bounds, allow drag vertically. default value is false


Implementation
    public function get alwaysBounceVertical():Boolean
    public function set alwaysBounceVertical(value:Boolean):void
bouncesproperty 
bounces:Boolean

if true, bounces past edge of content and back again. default value is true.


Implementation
    public function get bounces():Boolean
    public function set bounces(value:Boolean):void
contentOffsetXproperty 
contentOffsetX:int  [read-only]


Implementation
    public function get contentOffsetX():int
contentOffsetYproperty 
contentOffsetY:int  [read-only]


Implementation
    public function get contentOffsetY():int
contentSizeHeightproperty 
contentSizeHeight:int  [read-only]


Implementation
    public function get contentSizeHeight():int
contentSizeWidthproperty 
contentSizeWidth:int  [read-only]


Implementation
    public function get contentSizeWidth():int
indicatorStyleproperty 
indicatorStyle:int

indicates the current active scroll indicator style.


Implementation
    public function get indicatorStyle():int
    public function set indicatorStyle(value:int):void
maximumZoomScaleproperty 
maximumZoomScale:Number

must be > minimum zoom scale to enable zooming. default is 1.0.


Implementation
    public function get maximumZoomScale():Number
    public function set maximumZoomScale(value:Number):void
minimumZoomScaleproperty 
minimumZoomScale:Number

default is 1.0.


Implementation
    public function get minimumZoomScale():Number
    public function set minimumZoomScale(value:Number):void
pagingEnabledproperty 
pagingEnabled:Boolean

default false. if true, stop on multiples of view bounds.


Implementation
    public function get pagingEnabled():Boolean
    public function set pagingEnabled(value:Boolean):void
scrollEnabledproperty 
scrollEnabled:Boolean

default YES. turn off any dragging


Implementation
    public function get scrollEnabled():Boolean
    public function set scrollEnabled(value:Boolean):void
scrollsToTopproperty 
scrollsToTop:Boolean

When the user taps the status bar, the scroll view beneath the touch which is closest to the status bar will be scrolled to top, but only if its `scrollsToTop` property is YES, its delegate does not return NO from `-scrollViewShouldScrollToTop:`, and it is not already at the top.

On iPhone, we execute this gesture only if there's one on-screen scroll view with `scrollsToTop` == YES. If more than one is found, none will be scrolled.

default is YES.


Implementation
    public function get scrollsToTop():Boolean
    public function set scrollsToTop(value:Boolean):void
showsHorizontalScrollIndicatorproperty 
showsHorizontalScrollIndicator:Boolean

show indicator while we are tracking. fades out after tracking. default value is true.


Implementation
    public function get showsHorizontalScrollIndicator():Boolean
    public function set showsHorizontalScrollIndicator(value:Boolean):void
showsVerticalScrollIndicatorproperty 
showsVerticalScrollIndicator:Boolean

show indicator while we are tracking. fades out after tracking. default value is true.


Implementation
    public function get showsVerticalScrollIndicator():Boolean
    public function set showsVerticalScrollIndicator(value:Boolean):void
zoomScaleproperty 
zoomScale:Number  [read-only]

default is 1.0.


Implementation
    public function get zoomScale():Number

See also

setZoomScale()
Method Detail
flashScrollIndicators()method
public function flashScrollIndicators():void

displays the scroll indicators for a short time. This should be done whenever you bring the scroll view to front.

keyboardDismissMode()method 
public function keyboardDismissMode(a:int):void

Parameters

a:int

See also

scrollBy()method 
public function scrollBy($x:Boolean, $y:Boolean, $animated:Boolean):void

Parameters

$x:Boolean
 
$y:Boolean
 
$animated:Boolean

scrollTo()method 
public function scrollTo($x:Boolean, $y:Boolean, $animated:Boolean):void

Parameters

$x:Boolean
 
$y:Boolean
 
$animated:Boolean

setContentOffset()method 
public function setContentOffset($x:int, $y:int, $animated:Boolean):void

animate at constant velocity to new offset

Parameters

$x:int
 
$y:int
 
$animated:Boolean

setZoomScale()method 
public function setZoomScale($value:Number, $animated:Boolean):void

Parameters

$value:Number
 
$animated:Boolean

See also

zoomScale