GODPAPER | All Packages | All Classes | Index | Frames No Frames |
TabBarSlideTransitionManager

Package | feathers.motion.transitions
Class | public class TabBarSlideTransitionManager
Inheritance | TabBarSlideTransitionManager Object

Slides new screens from the left or right depending on the old and new selected index values of a TabBar control.

See also

feathers.controls.ScreenNavigator
feathers.controls.TabBar

Public Properties

| Property | Defined By
--- | --- | ---
|  | delay : Number = 0.1 A delay before the transition starts, measured in seconds. | TabBarSlideTransitionManager
|  | duration : Number = 0.25 The duration of the transition, measured in seconds. | TabBarSlideTransitionManager
|  | ease : Object = easeOut The easing function to use. | TabBarSlideTransitionManager
|  | skipNextTransition : Boolean = false Determines if the next transition should be skipped. | TabBarSlideTransitionManager

Protected Properties

| Property | Defined By
--- | --- | ---
|  | navigator : ScreenNavigator The ScreenNavigator being managed. | TabBarSlideTransitionManager
|  | tabBar : TabBar The TabBar that controls the navigation. | TabBarSlideTransitionManager

Public Methods

| Method | Defined By
--- | --- | ---
|  | TabBarSlideTransitionManager(navigator:ScreenNavigator, tabBar:TabBar) Constructor. | TabBarSlideTransitionManager

Protected Methods

| Method | Defined By
--- | --- | ---
|  | onTransition(oldScreen:DisplayObject, newScreen:DisplayObject, onComplete:Function):void The function passed to the transition property of the ScreenNavigator. | TabBarSlideTransitionManager

Property Detail

delay | property

`public var delay:Number = 0.1`

A delay before the transition starts, measured in seconds. This may be required on low-end systems that will slow down for a short time after heavy texture uploads.

duration | property |

`public var duration:Number = 0.25`

The duration of the transition, measured in seconds.

ease | property |

`public var ease:Object = easeOut`

The easing function to use.

navigator | property |

`protected var navigator:ScreenNavigator`

The `ScreenNavigator` being managed.

skipNextTransition | property |

`public var skipNextTransition:Boolean = false`

Determines if the next transition should be skipped. After the transition, this value returns to `false`.

tabBar | property |

`protected var tabBar:TabBar`

The `TabBar` that controls the navigation.

Constructor Detail

TabBarSlideTransitionManager | () | Constructor

`public function TabBarSlideTransitionManager(navigator:ScreenNavigator, tabBar:TabBar)`

Constructor.

Parameters

| `navigator:ScreenNavigator`
| `tabBar:TabBar`

Method Detail

onTransition | () | method

`protected function onTransition(oldScreen:DisplayObject, newScreen:DisplayObject, onComplete:Function):void`

The function passed to the `transition` property of the `ScreenNavigator`.

Parameters

| `oldScreen:DisplayObject`
| `newScreen:DisplayObject`
| `onComplete:Function`

Thu Jan 16 2014, 01:11 PM +08:00