All pastes #131484 Raw Edit

Unnamed

public javascript v1 · immutable
#131484 ·published 2006-08-14 14:52 UTC
rendered paste body
fscommand("fullscreen", true);fscommand("allowscale", false);Stage.showMenu = false;stop();//------------Start basic variables------------------------released = false;//------------Start buttons functions------------------------var buttons:Array = new Array({xPos:30.95, yPos:115, instance:btn_01}, {xPos:134.5, yPos:143.45, instance:btn_02});//------------Start movie proprieties------------------------onEnterFrame = function () {	for (var k:Number = 0; k<buttons.length; k++) {		buttons[k].instance.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].instance.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 = this.xPos;						this._y = this.yPos;					}				}			};		};	}};