# Re: Flash MX Vibration Tutorial

**URL:** <https://forum.kirupa.com/t/re-flash-mx-vibration-tutorial/154469>\
**Category:** flash\
**Created:** [July 10, 2005, 2:12am UTC](https://forum.kirupa.com/t/re-flash-mx-vibration-tutorial/154469 "2005-07-10T02:12:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![parietal\_03](https://avatars.discourse-cdn.com/v4/letter/p/e5b9ba/32.png) [@parietal\_03](https://forum.kirupa.com/u/parietal_03)\
**Post date:** [July 10, 2005, 2:12am UTC](https://forum.kirupa.com/t/re-flash-mx-vibration-tutorial/154469/1 "2005-07-10T02:12:54Z")

</div>

```auto
onClipEvent (load) {
	//movie width/height
	height = 550;
	width = 600;
	//------------------------//
	//makes everything random //
	//------------------------//
	this._x = Math.round(Math.random()*width);
	this._y = Math.round(Math.random()*height);
	var temp = this._alpha=Math.random()*100;
	this._xscale = this._yscale=temp;
	//setting initiaion position
	cx = this._x;
	cy = this._y;
}
onClipEvent (enterFrame) {
	//causes the object to be offset
	this._x = cx+(1+Math.random()*5);
	this._y = cy+(1+Math.random()*5);
}

```

How would one alter this code in order to give the movie clip a fixed position and a display size of 100% (actual size)?
