WidgetWithTabs

Kind of class: public class
Package:
Inherits from:
  • MovieClip
Version: 19 Jun 2010
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.widgets.WidgetWithTabs
File last modified: Friday, 12 November 2010, 15:34:14
A class for widgets with simple navigation: Requires a MovieClip on the stage with an instance name of nav, which contains dynamic TextFields that function as buttons. The text in each TextField should match a frame label - on mouse click, the playhead is sent to the frame label.

Summary

Constructor
Instance properties
  • nav : MovieClip
    • A movie clip with TextFields in it.
  • container : MovieClip
    • Container for dynamic content
Instance methods
  • select (button:MovieClip)
    • Selects one of the nav buttons

Constructor

WidgetWithTabs

function WidgetWithTabs()

Instance properties

container

container:MovieClip = new MovieClip(read,write)

Container for dynamic content

Instance methods

select

function select(button:MovieClip)

Selects one of the nav buttons