# AS 'Slider' with Relative Positioning

**URL:** <https://forum.kirupa.com/t/as-slider-with-relative-positioning/209321>\
**Category:** flash\
**Created:** [December 7, 2006, 6:25pm UTC](https://forum.kirupa.com/t/as-slider-with-relative-positioning/209321 "2006-12-07T18:25:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rynobot](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rynobot](https://forum.kirupa.com/u/rynobot)\
**Post date:** [December 7, 2006, 6:25pm UTC](https://forum.kirupa.com/t/as-slider-with-relative-positioning/209321/1 "2006-12-07T18:25:31Z")

</div>

Hey -  
anyone know how to create a Slider using relative positioning instead of an absolute x/y coordinate.

I am creating a full screen site - and would like the position to be relative to the screen size opposed to a fixed digit. A percentage of the screen.

basically - what I have been trying to do is combine these two types codes (these are just generic abrevations for example):

```auto
var homeMCy = new Array(0, -526, 40);
function jumpTohomeMCY(number) {
	homeMC.newY = homeMCy[number];
}

```

```auto
logoBar.onResize = function() {
	this._y = Stage.height-40;
	this._x = (Stage.width)-240;
};
Stage.addListener(logoBar);
logoBar.onResize();

```

Anyone have any idea how I could make something work - so that the Array holds relative positioning…??
