View Full Version : Check Boxes
Avitar
01-31-2005, 07:44 PM
I am new to components in Flash. I haVe a check box that if clicked will send the user to a new frame. My first question is if I need to create a form? If I don't how do I code? Please Help!!!! This what I think ot would be.
on (release) {
if(checkbox.getValue() == true) {
gotoAndStop("1");
}
}
shawn_t
02-02-2005, 08:25 PM
The Flash components have a Change Handler field in their Properties box. You can provide a function name in this field and then implement that function. For example, if the Change Handler field is set to: checkChanged you can implement the following:
function checkChanged()
{
// Invoked when user changes check box
// -------------------------------------
trace("check box changed");
}
Avitar
02-02-2005, 08:34 PM
I see the output and it is getting me on the right track, but if I take out the tace and add if checkbox.changed==true
gotoandstop("W1"). Nothing happens. I am closer but still lost.
CyanBlue
02-02-2005, 11:37 PM
Howdy and Welcome... :)
Just to let you know... You are opening a jar full of warms by using gotoAndStop("1"); line... You should use a frame label that's starting with a string like 'lable1' or 'someLable" to avoid that problem... ;)
shawn_t
02-04-2005, 03:56 AM
I just tried it and it works fine...
I will post the sample at the following link for a few days:
FILE REMOVED! POST A REPLY IF YOU ARE INTERESTED
jerryj
03-05-2005, 09:20 PM
hi Shawn,
well... i am very interested beacause I am still trying to get a checkbox working in my form. Hopefully you can show the solution,
thank you very much,
Jerryj.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.