2-state button
Posted: Mon Jul 04, 2011 4:26 pm
Hi, I'm a newbie, just off the 2011 Summer Academy.
I've been following the BYU tutorials, and have got to a point where I want to create a 2-state button, e.g. Record/Stop recording, where the same button will switch dynamically to its opposite function, e.g. if it's recording, it will show Stop recording, and vice versa.
I'm thinking it must be a very commonly used routine, (and I don't want to waste time needlessly re-inventing existing wheels) but I can't seem to find a standard routine for this anywhere online. Anyone got the code for this, or is it something I should work it out for myself?
Cheers
I've been following the BYU tutorials, and have got to a point where I want to create a 2-state button, e.g. Record/Stop recording, where the same button will switch dynamically to its opposite function, e.g. if it's recording, it will show Stop recording, and vice versa.
I'm thinking it must be a very commonly used routine, (and I don't want to waste time needlessly re-inventing existing wheels) but I can't seem to find a standard routine for this anywhere online. Anyone got the code for this, or is it something I should work it out for myself?
Cheers