rendered paste bodyfscommand("fullscreen", true);fscommand("allowscale", false);Stage.showMenu = false;stop();//------------Start basic variables------------------------released = false;drag = false;//------------Start buttons functions------------------------buttons = [btn_01, btn_02];//------------Start movie proprieties------------------------onEnterFrame = function () { for (var k:Number = 0; k<buttons.length; k++) { buttons[k].onPress = function() { this.startDrag(); drag = true; this.onEnterFrame = function() { btn_text.text = "X = "+(50/circle_mc._width)*this._x+" %"; btn_text2.text = "Y = "+(50/circle_mc._height)*this._y+" %"; if ((this.hitTest(_root.circle_mc) && (released))) { released = false; } else { if ((this.hitTest(_root.menu_bkg) && (released))) { this.gotoAndStop(2); this._x = 9.8; this._y = 9.3; } } }; }; buttons[k].onRelease = buttons[k].onReleaseOutside=function () { this.stopDrag(); }; }};