FORUMS: list search recent posts

checkbox click help

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
lastsplash
checkbox click help
on May 17, 2006 at 4:23:44 pm

i am having trouble with a checkbox component. can someone tell me how to have a click on event with a checkbox? i want it to be when the checkbox is clicked on, it will go to and play frame 2.
thanks


Return to posts index

Sher Ali
Re: checkbox click help
on May 18, 2006 at 8:46:57 am

CheckBox class has a click event, which can be used for
this purpose. Attach the following code to the _root timeline

stop();
var listenerObj:Object = new Object();

listenerObj.click = function() {
if(myCheckBox.selected){
_root.gotoAndPlay(2);
}
}
myCheckBox.addEventListener("click",listenerObj);

//here myCheckBox is a CheckBox instance on the _root timeline


Sher Ali
Web Eye Studio
http://www.webeyestudio.com
+92 0300 97 99 341


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]