ZoomNav
| Kind of class: | public class |
|---|---|
| Package: | ZoomNav |
| Inherits from: | EventDispatcher |
| Version: | 1.0 |
| Author: | Zevan Rosser |
| Classpath: | ZoomNav |
| File last modified: | Tuesday, 10 November 2009, 14:38:42 |
ZoomNav adds zoom-style navigation to a group of MovieClips. It can be used
for a wide variety of different cases... including website navigations, map applications, simple games
and more.
ZoomNav makes use of the depricated TweenLite version 10. It will not function properly
without this library.
for a wide variety of different cases... including website navigations, map applications, simple games
and more.
ZoomNav makes use of the depricated TweenLite version 10. It will not function properly
without this library.
Events broadcasted to listeners:
- Event with type:
TARGET_SELECTED- dispatched when a ZoomNav is fully zoomed in on a specific clip and the ZoomNav.current property has been set to this clip. - Event with type:
TARGET_DESLECTED- dispatched when a ZoomNav has been instructed to zoom in on another clip
and the previous clip is now the ZoomNav.previous property. - Event with type:
ZOOMED_OUT- dispatched when ZoomNav has fully zoomed out. - Event with type:
ANIMATING- dispatched when ZoomNav is animating.
Summary
Constructor
- ZoomNav (pages:MovieClip, zoomOutBtn:MovieClip)
- Creates a new ZoomNav instance
Constants
- ZOOMED_OUT : String
- Constant value for use with the ZoomNav "zoom out" event
- ANIMATING : String
- Constant value for use with the ZoomNav "animating" event
- TARGET_SELECTED : String
- Constant value for use with the ZoomNav "target selected" event
- TARGET_DESELECTED : String
- Constant value for use with the ZoomNav "target deselected" event
Instance properties
- zoomTime : Number
- How long the zoom animation should last.
- easePosition : Function
- The TweenLite easing function that is used for position when zooming in
- easeScale : Function
- The TweenLite easing function that is used for scaling when zooming in
- easeResetPosition : Function
- The TweenLite easing function that is used for position when zooming all the way out
- easeResetScale : Function
- The TweenLite easing function that is used for scaling when zooming all the way out
- current : MovieClip
- The current clip that the ZoomNav is zoomed in on
- previous : MovieClip
- The previous clip that the ZoomNav was zoomed in on
Instance methods
- destroy : void
- Removes all internal listeners within ZoomNav
Constructor
Constants
ANIMATING
public static const ANIMATING:String = "animating"
(read)
Constant value for use with the ZoomNav "animating" event
TARGET_DESELECTED
public static const TARGET_DESELECTED:String = "targetDeselected"
(read)
Constant value for use with the ZoomNav "target deselected" event
TARGET_SELECTED
public static const TARGET_SELECTED:String = "targetSelected"
(read)
Constant value for use with the ZoomNav "target selected" event
ZOOMED_OUT
public static const ZOOMED_OUT:String = "zoomedOut"
(read)
Constant value for use with the ZoomNav "zoom out" event
Instance properties
current
public current:MovieClip
(read)
The current clip that the ZoomNav is zoomed in on
easePosition
public easePosition:Function = Quart.easeOut
(read,write)
The TweenLite easing function that is used for position when zooming in
easeResetPosition
public easeResetPosition:Function = Linear.easeOut
(read,write)
The TweenLite easing function that is used for position when zooming all the way out
easeResetScale
public easeResetScale:Function = Linear.easeOut
(read,write)
The TweenLite easing function that is used for scaling when zooming all the way out
easeScale
public easeScale:Function = Back.easeOut
(read,write)
The TweenLite easing function that is used for scaling when zooming in
previous
public previous:MovieClip
(read)
The previous clip that the ZoomNav was zoomed in on
zoomTime
public zoomTime:Number
(read,write)
How long the zoom animation should last. The default is 1 (or 1 second)
Instance methods
destroy
public function destroy (
) : void
Removes all internal listeners within ZoomNav