Problem with Checkbox and Button components....(Simple one)
hi all,
new flash , actionscript 3.0,i have following issue regarding flash.
have 2 swf files contents follows: first.swf file contains check-box (instance name:my_checkbox). second.swf file contains button component(say,label name of submit , instance name: submit_btn).
now, requirement is: whenever click submit_btn button, check_box must selected/visible. if click once again, must deselected/invisible. process must continued till stop click-event on button component.
reply me possible.. in advance...
srihari.ch
i assuming both swfs built as3, , checkbox swf getting loaded button swf.
i assume using loader component.
mybtn.addeventlistener(mouseevent.click,dochangecheckbox);
function dochangecheckbox(e:mouseevent):void {
(myloader.content movieclip).mycheckbox.selected = !(myloader.content movieclip).mycheckbox.selected;
}
More discussions in ActionScript 3
adobe
Comments
Post a Comment