home *** CD-ROM | disk | FTP | other *** search
- class com.techsmith.widgets.panels.VPanel extends com.techsmith.widgets.Movable implements com.techsmith.widgets.panels.IPanel
- {
- var m_left = null;
- var m_mid = null;
- var m_right = null;
- function VPanel()
- {
- super();
- }
- function init(width, styles)
- {
- this.m_left = this.attachMovie(styles.left_top,"m_left",1,{_x:0,y:0,_visible:false});
- this.m_mid = this.attachMovie(styles.middle,"m_mid",2,{_x:0,y:0,_visible:false});
- this.m_right = this.attachMovie(styles.right_bottom,"m_right",3,{_x:0,y:0,_visible:false});
- if(width == null || width == undefined || isNaN(width))
- {
- this.setSize(100);
- }
- else
- {
- this.setSize(width);
- }
- this.m_left._visible = true;
- this.m_mid._visible = true;
- this.m_right._visible = true;
- }
- function setSize(width, height)
- {
- var _loc2_ = width - (this.m_left._width + this.m_right._width);
- this.m_mid._x = this.m_left._width;
- this.m_mid._width = _loc2_;
- this.m_right._x = this.m_mid._x + _loc2_;
- }
- }
-