home *** CD-ROM | disk | FTP | other *** search
- function dragmcPress()
- {
- clickx = _root._xmouse;
- clicky = _root._ymouse;
- onMouseMove = dragger;
- }
- function dragmcRelease()
- {
- onMouseMove = undefined;
- _quality = __quality;
- if(!live_mode)
- {
- if(this.doubleClick() == true)
- {
- clearInterval(singleclick_delay);
- maximizeApplication();
- }
- }
- }
- function dragger()
- {
- if(!maximized or live_mode)
- {
- _quality = "LOW";
- var _loc1_ = mdm.Input.Mouse.getPosition();
- var _loc3_ = _loc1_[0];
- var _loc2_ = _loc1_[1];
- mdm.Forms.MainForm.x = _loc3_ - clickx;
- mdm.Forms.MainForm.y = _loc2_ - clicky;
- }
- }
- function sizeRollover()
- {
- Mouse.hide();
- size_mc.mouse_icon_mc._visible = true;
- }
- function sizeRollout()
- {
- Mouse.show();
- size_mc.mouse_icon_mc._visible = false;
- }
- function sizemcPress()
- {
- block_pos_listener = true;
- sclickx = _root._xmouse;
- sclicky = _root._ymouse;
- var _loc2_ = mdm.Input.Mouse.getPosition();
- dx = _loc2_[0] - mdm.Forms.MainForm.width - mdm.Forms.MainForm.x;
- dy = _loc2_[1] - mdm.Forms.MainForm.height - mdm.Forms.MainForm.y;
- onMouseMove = sizer;
- _quality = "LOW";
- }
- function sizemcRelease()
- {
- block_pos_listener = false;
- setPos();
- onMouseMove = undefined;
- _quality = __quality;
- }
- function sizer()
- {
- var _loc1_ = mdm.Input.Mouse.getPosition();
- var _loc3_ = _loc1_[0];
- var _loc2_ = _loc1_[1];
- sizer_form_width = _loc3_ - mdm.Forms.MainForm.x - dx;
- sizer_form_height = _loc2_ - mdm.Forms.MainForm.y - dy;
- if(sizer_form_width < 500)
- {
- sizer_form_width = 500;
- }
- if(sizer_form_height < 50)
- {
- sizer_form_height = 50;
- }
- mdm.Forms.MainForm.width = Math.round(sizer_form_width);
- mdm.Forms.MainForm.height = Math.round(sizer_form_height);
- saved_premaximize_width = mdm.Forms.MainForm.width;
- saved_premaximize_height = mdm.Forms.MainForm.height;
- }
- if(_root.useFSP_path != "true")
- {
- application_border_mc._visible = false;
- dragbar_mc._visible = false;
- tools_mc._visible = false;
- size_mc._visible = false;
- application_title_op._visible = false;
- }
- application_border_mc._x = 0;
- application_border_mc._y = 0;
- application_border_mc._width = Stage.width - 1;
- application_border_mc._height = Stage.height - 1;
- dragbar_mc._width = Stage.width;
- dragbar_mc.useHandCursor = false;
- tools_mc._x = Stage.width - 53;
- tools_mc.minimize_mc.onRelease = function()
- {
- minimizeApplication();
- };
- tools_mc.maximize_mc.onRelease = function()
- {
- maximizeApplication();
- };
- tools_mc.quit_mc.onRelease = function()
- {
- renderExit();
- };
- var clickx;
- var clicky;
- dragbar_mc.onPress = mx.utils.Delegate.create(this,dragmcPress);
- dragbar_mc.onReleaseOutside = dragbar_mc.onRelease = mx.utils.Delegate.create(this,dragmcRelease);
- var sclickx;
- var sclicky;
- size_mc.onPress = mx.utils.Delegate.create(this,sizemcPress);
- size_mc.onReleaseOutside = size_mc.onRelease = mx.utils.Delegate.create(this,sizemcRelease);
- var dx = 0;
- var dy = 0;
-