home *** CD-ROM | disk | FTP | other *** search
- package
- {
- import flash.display.*;
- import flash.events.*;
- import flash.text.TextField;
-
- [Embed(source="/_assets/assets.swf", symbol="symbol33")]
- public class DescriptionMessage extends MovieClip
- {
- public var background:MovieClip;
-
- private var _height:Number;
-
- public var textDescription:TextField;
-
- private var _width:Number;
-
- public function DescriptionMessage()
- {
- super();
- _width = 120;
- _height = 97;
- background.visible = false;
- }
-
- public function redraw() : void
- {
- background.width = _width;
- background.height = _height;
- textDescription.width = _width;
- textDescription.y = _height / 2 - textDescription.textHeight / 2 + 4;
- }
-
- public function setSize(param1:Number, param2:Number) : void
- {
- _width = param1;
- _height = param2;
- redraw();
- }
- }
- }
-
-