home *** CD-ROM | disk | FTP | other *** search
- class DynamicPack extends State
- {
- var oPanel;
- var mcRef;
- static var sSTATE_ENTER = "Enter";
- static var sSTATE_IDLE = "Idle";
- function DynamicPack(_mcRef, _sInitState, _sStartDynamic)
- {
- super(_mcRef);
- this.setState(_sInitState);
- if(_sInitState == DynamicPack.sSTATE_IDLE)
- {
- this.oPanel = new ScrollingPanel(this.mcRef.mcState);
- this.oPanel.setState(_sStartDynamic);
- }
- }
- function cleanUp()
- {
- super.cleanUp();
- this.oPanel.cleanUp();
- }
- function Enter()
- {
- if(this.stateFinished())
- {
- this.setState(DynamicPack.sSTATE_IDLE);
- this.oPanel = new ScrollingPanel(this.mcRef.mcState);
- }
- }
- function Idle()
- {
- }
- }
-