You're Browsing As A Guest! Register Now... |
||
|
Become an Expert!
Join 414,937 Programmers for FREE! Get instant access to thousands
of experts, tutorials, code snippets, and more! There are 2,673 people online right now.Registration is fast and FREE... Join Now!
|
||
Page 1 of 1
Radio Buttons.
#2
Re: Radio Buttons.
Posted 15 September 2006 - 03:11 PM
Dilerious, on 15 Sep, 2006 - 08:49 AM, said:
I'm having coding radio buttons in flash.
I know it would have an If statement but I can't figure it out.
I'm trying to make it.
If the correct radio button is selected and then they click a button it will go to a new frame.
I know it would have an If statement but I can't figure it out.
I'm trying to make it.
If the correct radio button is selected and then they click a button it will go to a new frame.
hi Dilerious,
have a look at the sample attached.
all comments in the file.
//GREEN
green_rb.data = 5;
green_rb.label = "green";
green_rb.groupName = "colors";
//RED
red_rb.data = 6;
red_rb.label = "red";
red_rb.groupName = "colors";
//BLUE
blue_rb.data = 7;
blue_rb.label = "blue";
blue_rb.groupName = "colors";
//YELLOW
yellow_rb.data = 8;
yellow_rb.label = "yellow";
yellow_rb.groupName = "colors";
// THE DATA CORRESPONDS TO THE FRAME WE WANT TO SEND THE PLAYHEAD TO
my_btn.onRelease = function() {
myFrame = colors.selectedData;
gotoAndStop(myFrame);
};
good luck
Sandro
Attached File(s)
-
radiobuttons.zip (94.08K)
Number of downloads: 1057
#3
Re: Radio Buttons.
Posted 25 September 2006 - 10:56 PM
Thank you for the reply, Sandro. The attachment did a great job answering Dilerious' question. In the future, try to answer the question in the post, however. That way everybody can see it straight away without the need for downloading and opening Flash.
See you around
See you around
Page 1 of 1


Ask A New Question
Reply




MultiQuote







|