# 2 questions in one

**URL:** <https://forum.kirupa.com/t/2-questions-in-one/316423>\
**Category:** flash\
**Created:** [November 20, 2010, 10:36pm UTC](https://forum.kirupa.com/t/2-questions-in-one/316423 "2010-11-20T22:36:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rifts1103](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rifts1103](https://forum.kirupa.com/u/Rifts1103)\
**Post date:** [November 20, 2010, 10:36pm UTC](https://forum.kirupa.com/t/2-questions-in-one/316423/1 "2010-11-20T22:36:42Z")

</div>

ok first is there an easier way to do this…

```auto
mone.addEventListener(MouseEvent.CLICK, gotolevelmone);
fone.addEventListener(MouseEvent.CLICK, gotolevelfone);
oone.addEventListener(MouseEvent.CLICK, gotoleveloone);
cone.addEventListener(MouseEvent.CLICK, gotolevelcone);

function gotolevelmone(e:MouseEvent)
{
	gotoAndStop(3);
}

function gotolevelfone(e:MouseEvent)
{
	gotoAndStop(3);
}

function gotoleveloone(e:MouseEvent)
{
	gotoAndStop(3);
}

function gotolevelcone(e:MouseEvent)
{
        gotoAndStop(3);
}
	
}

```

There are going to be 20+ levels so is there a way to see which was clicked on and then depending on that do something.

and secondly can I pass information with a gotoAndStop?

because I’m trying to make all the levels on one frame but I need to be able to tell which level button was clicked so I can create the level based on which level was clicked.
