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