simple if then scenario with radio buttons


hi there. i'm newbie @ kind of thing, hope can me out here. have scenario whereby there question 2 radio buttons (one says yes, other no). have "next" button, , want tell next button go frame based on radio button pushed. have setup in same group toggle, can't seem want. have code on next button, no matter what, goes frame 100, never 50.

again, don't know i'm doing here, code pretty ugly.

on (release) {
trace(cabinet_yes.selected);
}
on (release) {
if (cabinet_yes.selected = true) {
}
gotoandstop(50);
}
on (release) {
if (cabinet_yes.selected = false) {
}
gotoandstop(100);
}


thanks

if getting started actionscript please started using actionscript correctly. should never attach code directly object in flash, ever, reason. should writing actions frame script space. when move flash cs3, have if want use actionscript 3.

in case, when work radio button component, can set them work group. default group themselves. when place each of radio button component instances on stage, select each 1 , click on parameters tab of property inspector window. in there, can set label , data value each button in group. you'll see group name set "radiogroup". addressing buttons group name, don't need name each component instance individually.

now, in first frame of new layer. write actionscript here. select first keyframe , open actions window. add code:


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support