# Need help with flash shared object

**URL:** <https://forum.kirupa.com/t/need-help-with-flash-shared-object/178033>\
**Category:** Uncategorized\
**Created:** [February 7, 2006, 7:38am UTC](https://forum.kirupa.com/t/need-help-with-flash-shared-object/178033 "2006-02-07T07:38:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixeldude](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pixeldude](https://forum.kirupa.com/u/pixeldude)\
**Post date:** [February 7, 2006, 7:38am UTC](https://forum.kirupa.com/t/need-help-with-flash-shared-object/178033/1 "2006-02-07T07:38:00Z")

</div>

Hi…

Okay my attempt is wanna save in sharedobject…and the amount of item depend on how many the button has been press  
here’s the code

```auto

stop();
createEmptyMovieClip("paper",999);
var i:Number = 0;
for(var j=0;j<3;j++){
	this["btn"+j].jvar = j;
	this["btn"+j].onPress = attachMC;
}

function attachMC(){
	clip = paper.attachMovie("obj"+this.jvar,"obj"+this.jvar,99+i);
	trace(clip);
	clip._x = random(500);
	clip._y = random(300);
	trace(clip._x);
	trace(clip._y);
	trace(Math.round(clip._width));
	trace(Math.round(clip._height));
	clip.onPress = dragMe;
	clip.onRelease = letMe;
	i++;
}

///////////////////////
function dragMe(){
	this.startDrag();
}

function letMe(){
	this.stopDrag();
}

```

So …what I want is I wanna store this… “obj0,\_x0,\_y0,\_x0scale,\_y0scale” it can be many item …u can check my fla …then u can see what I mean…I mean push in Array then store in sharedobject…is it possbile?..

tq…
