View Full Version : MX Clicking Radio Buttons
Kelna
03-20-2005, 03:57 AM
Ok, I got the whole making radio buttons and putting them in groups, I just don't know how to make it so when you click a radio button it moves you to a frame. Could someone whip me up some action script for clicking a radio button in Flash MX. This is kinda Urgent cuase I need it for a school project in a few days.
ps: if you could also attach a .Fla of the radio button moving to a different frame to your post then that would be cool also.
Why don't you just use normal buttons to do it?
I've never had to use radio buttons, but I did give this a shot, here's what you do;
give your radio button an instance name. I've named mine radio.
add this code in a frame, preferably on a layer called actions.
//stop movie
stop();
this.radio.onRelease = function(){
gotoAndPlay("Start");
}
"Start" is a frame label, you can exchange that with a scene name or specify a frame number.
(I'd attach the file here but I haven't figured out why my zip files are so big, so go here for the file (http://www.november21st.com/radio.zip))
Kelna
03-20-2005, 09:45 PM
Ok, I got how to make the buttons move you through the frames, but how do i make it so the radio buttons are checked, and only one being checked in a group at once?
and how would i make it say like: If Radiobutton A and Radiobutton B are checked then go to frame X
Radiobuttons A and B being in two different groups. and X being a frame that i decide.
And btw, your .fla wasn't openable. And again if you could send me a .fla then that would be really cool, that way i can look at it and understand it really easily.
Thx! :D
I honestly wouldn't know, I haven't used radio buttons before, sorry!
as for my fla file, there shouldn't be a problem with it, I checked it and it opens fine with me, what flash version do you have?
Kelna
03-21-2005, 01:12 AM
Well, I decided to change a few things and so i worked around it. thanks anyway. :)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.