ok first is there an easier way to do this…
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.