PDA

View Full Version : flash 5 form check boxes



soup
June 24th, 2003, 10:34 AM
i did run a search on varoius terms

i think it is a basic question

i am looking to create a list of checkboxes -
ideally in a duplicating loop, which is no problem

i have not been able to find how to
make a checkbox though

the idea would be something like
a user being able to choose from a list of items
by checking the boxes - click submit and eliminate all the other chooses until the movie is reloaded

all i really need to know is if its possible to create a check box in flash 5 dynamically and have it hold a variable that would coorespond to an MC.

a link would suffice -

thanks
soup

soup
June 24th, 2003, 12:45 PM
i suppose i could make an MC that simulates a check box
and duplicate that

but still would like a response to above...

soup

soup
June 24th, 2003, 02:33 PM
as far making an MC check box
and duplicating it, this is what i have come up with

there is a button in each that does nothing,
but provide the hand on mouse over,
and an MC instanced as mark

only the original clip functions properly




onClipEvent(load) {
var count = 0;
}

onClipEvent(enterFrame) {
while(count<15) {
this.duplicateMovieClip("check"+count, count);
_root.check0._y = _root.check._y + 20;
_root["check"+count]._y = _root["check"+(count-1)]._y+20;
count += 1;
}
}


onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, true) && this.mark._alpha < 100) {
this.mark._alpha = 100;
var txtPrint = 1;
stop();
} else if (this.hitTest(_root._xmouse, _root._ymouse, true) && this.mark._alpha > 0) {
this.mark._alpha = 0;
var txtPrint = 0;
stop();
}
}



nevers seems to attach my attachments

http://www.route108.com/soup/portfolio/check_box_2.fla