home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 148
/
MOBICLIC148.ISO
/
mac
/
Milan.swf
/
scripts
/
com
/
milanpresse
/
capsule
/
AbstractMenuCapsule.as
next >
Wrap
Text File
|
2012-10-16
|
1KB
|
58 lines
package com.milanpresse.capsule
{
import flash.display.Sprite;
public class AbstractMenuCapsule extends GameEngineCapsule
{
private var _layers:Array;
private var _menu;
public function AbstractMenuCapsule()
{
this._layers = [];
super();
this.createLayers();
}
public function createLayers() : void
{
this._layers["background"] = addChild(new Sprite());
this._layers["activeModule"] = addChild(new Sprite());
this._layers["top"] = addChild(new Sprite());
}
public function set menu(param1:*) : void
{
this._menu = param1;
}
public function get menu() : Sprite
{
return this._menu;
}
public function get layerModule() : Sprite
{
return this._layers["activeModule"];
}
public function get layerMenu() : Sprite
{
return this._layers["top"];
}
public function talk() : void
{
this._menu.talk();
}
public function talkEnd() : void
{
this._menu.talkEnd();
}
}
}