home *** CD-ROM | disk | FTP | other *** search
- class Intro extends Library.State
- {
- var mcRef;
- static var sSTATE_FIRST = "First";
- static var sSTATE_SECOND = "Second";
- function Intro(_mcRef)
- {
- super(_mcRef);
- this.setState(Intro.sSTATE_FIRST);
- Main.Instance.doAddListener(this);
- }
- function doFirst()
- {
- if(this.isStateComplete())
- {
- Main.Instance.onIntroFirstPartOver();
- this.setState(Intro.sSTATE_SECOND);
- }
- }
- function doSecond()
- {
- if(this.isStateComplete())
- {
- this.mcRef.mcState.stop();
- Main.Instance.doRemoveListener(this);
- }
- }
- }
-