mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
64 lines
1.4 KiB
ActionScript
64 lines
1.4 KiB
ActionScript
package ecard
|
|
{
|
|
import flash.display.MovieClip;
|
|
import loader.MediaHelper;
|
|
|
|
public class ECardImageBase
|
|
{
|
|
|
|
private var _mediaId:int;
|
|
|
|
private var _img:MovieClip;
|
|
|
|
private var _img2:MovieClip;
|
|
|
|
private var _imgHelper:MediaHelper;
|
|
|
|
private var _imgHelper2:MediaHelper;
|
|
|
|
public function ECardImageBase()
|
|
{
|
|
super();
|
|
}
|
|
|
|
public function init(param1:int) : void
|
|
{
|
|
this._mediaId = param1;
|
|
this._imgHelper = new MediaHelper();
|
|
this._imgHelper.init(this._mediaId,this.imgReceived);
|
|
this._imgHelper2 = new MediaHelper();
|
|
this._imgHelper2.init(this._mediaId,this.img2Received);
|
|
}
|
|
|
|
private function imgReceived(param1:MovieClip) : void
|
|
{
|
|
this._img = param1;
|
|
this._imgHelper.destroy();
|
|
this._imgHelper = null;
|
|
}
|
|
|
|
private function img2Received(param1:MovieClip) : void
|
|
{
|
|
this._img2 = param1;
|
|
this._imgHelper2.destroy();
|
|
this._imgHelper2 = null;
|
|
}
|
|
|
|
public function get img() : MovieClip
|
|
{
|
|
return this._img;
|
|
}
|
|
|
|
public function get img2() : MovieClip
|
|
{
|
|
return this._img2;
|
|
}
|
|
|
|
public function get mediaId() : int
|
|
{
|
|
return this._mediaId;
|
|
}
|
|
}
|
|
}
|
|
|