School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 309,243 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,730 people online right now. Registration is fast and FREE... Join Now!




checkboxes not working

 

checkboxes not working

jrb47

7 Oct, 2009 - 02:17 PM
Post #1

New D.I.C Head
*

Joined: 21 Apr, 2007
Posts: 28


My Contributions
Dont know what i did or am doing wrong!
i also tried with leaving the == true off - adds to zero
The code files are at
http://teachingbytechnology.com/finalgame/

New Code
CODE

substance.text = myVars.substance;
sum.text= myVars.sum;
score.text = Score;
var atoms:Number = 0;
var ions:Number = 0;
var compound:Number = 0;
var molecule:Number = 0;
var element:Number = O;
//var sum2:Number = 0;
count = 0;

function CreateAnswers() {
if (cb_ionic_compound.selected == true)
ions = 6;
if (cb_compounds.selected == true)
compound = 2;
if (cb_molecule.selected == true)
molecule = 3;
if (cb_element1.selected == true)
element = 4;
if (cb_atom.selected == true)
atoms = 5;

var sum2 = ions + compound + molecule + element + atoms;
}


This post has been edited by jrb47: 7 Oct, 2009 - 10:56 PM

User is offlineProfile CardPM
+Quote Post


Posts in this topic
jrb47   checkboxes not working   7 Oct, 2009 - 02:17 PM

Fast ReplyReply to this topicStart new topic

Time is now: 11/26/09 09:21AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month