PDA

View Full Version : gotoAndPlay famename+counter


mozaik007
05-31-2005, 03:58 PM
Im workin on an easy game and to save me 30 mins of trial an error i was wonderin if sum1 could help me.

i have a counter called sentCount which increments when a button is clicked.

i want to have a gotoAndPlay that goes to a label which are named sent1, sent2, sent3 etc.....
the sentCount is triggered on load and is on an MC that is on the same timeline as these buttons.

how would the gotoAndPlay code read? gotoAndPlay("sent"(sentCount))?

thank you for ur time.

shotsy247
05-31-2005, 04:07 PM
gotoAndPlay("sent" + sentCount);

_t

mozaik007
05-31-2005, 04:20 PM
awesome thanks for that. it need sum modifyin tho

i had to specify the mc that the sentCount was on

so i got:

gotoAndPlay("sent" +(empClip.sentCount));

which works

you got me on the right track tho, so thanx