# gotoAndStop(value)

**URL:** <https://forum.kirupa.com/t/gotoandstop-value/114402>\
**Category:** Uncategorized\
**Created:** [June 28, 2004, 9:14am UTC](https://forum.kirupa.com/t/gotoandstop-value/114402 "2004-06-28T09:14:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skatata](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@skatata](https://forum.kirupa.com/u/skatata)\
**Post date:** [June 28, 2004, 9:14am UTC](https://forum.kirupa.com/t/gotoandstop-value/114402/1 "2004-06-28T09:14:41Z")

</div>

ok here’s the problem I am creating multible objects from an array which holds values like this;

```php

object_array[0] = [["type1",xpos,ypos],["type2",xpos,ypos]];

```

i create the objects like so;

```php

for (i=0; i<_root.mission_array[_root.mission].length+1; i++) {
		_root.attachMovie("enemy2", "e_"+i, i+200);
		_root["e_"+i]._x = _root.base._x+_root.mission_array[_root.mission]*[1];
		_root["e_"+i]._y = _root.base._y+_root.mission_array[_root.mission]*[2];
		_root["e_"+i].gotoAndStop(_root.mission_array[_root.mission]*[0]);
		}

```

it will do everything except tell the clip to gotoAndStop at the right frame. I can’t figue out why it doesn’t work. Anyone got the answer?
