home *** CD-ROM | disk | FTP | other *** search
- class com.argosy.ui.PopWindow extends com.argosy.ui.baseUI
- {
- var label_tf;
- var text_format;
- var bg;
- var content_mc;
- var drop_shadow;
- function PopWindow()
- {
- super();
- }
- function set label(str)
- {
- this.label_tf.text = str;
- }
- function get label()
- {
- return this.label_tf.text;
- }
- function init()
- {
- this.text_format = new TextFormat();
- this.text_format.font = "Frutiger Bold";
- this.text_format.size = 14;
- this.text_format.color = 2046576;
- this.text_format.kerning = true;
- this.text_format.align = "left";
- super.init();
- }
- function createChildren()
- {
- this.bg = this.createEmptyMovieClip("bg",1);
- this.content_mc = this.createEmptyMovieClip("content_mc",2);
- this.label_tf = this.createTextField("label_tf",3,0,0,this.width,this.height);
- this.label_tf.type = "input";
- this.label_tf.embedFonts = true;
- this.label_tf.setNewTextFormat(this.text_format);
- this.drop_shadow = new flash.filters.DropShadowFilter(10,45,0,0.8,10,10,1,3,false,false,false);
- }
- function layout()
- {
- this.bg.clear();
- this.bg.lineStyle(0,13421772,100);
- this.bg.beginFill(16777215,100);
- this.bg.lineTo(this.width,0);
- this.bg.lineTo(this.width,this.height);
- this.bg.lineTo(0,this.height);
- this.bg.lineTo(0,0);
- this.bg.endFill();
- this.bg.filters = [this.drop_shadow];
- this.label_tf._y = 2;
- this.label_tf._x = 2;
- this.label_tf._width = this.width - 4;
- this.label_tf._height = this.height - 4;
- }
- }
-