

LblStatement.text = "STARVATION: Consider gaining weight by eating healthy foods and building your muscles by strength training." Įlse if (RadioMetric.Checked = true & BMI = 15 & =< 18.5 || RadioImperial.Checked = true & BMI = 15 & =< 18.5) If (RadioMetric.Checked = true & BMI < 15 || BMI < 15 & RadioImperial.Checked = true) selectedData gets the value of the RadioButton that is selected from the group oup determines the group that GImperial is in oup determines the group that GMetric is in void indicates that the function does not return a valueīMI = ( Weight / Height * Height || Weight * 703 / Height * Height ) e:MouseEvent is the click event experienced by the button This line makes the textinput, txtinWeight and txtinHeight RadioImperial.addEventListener(MouseEvent.CLICK, clearLabels) RadioMetric.addEventListener(MouseEvent.CLICK, clearLabels) When these components are clicked, the clearLabels function is called These lines make the textinput and the radioButtons wait for a mouse click When the button is clicked, the determineBMI function is calledītnDetermine.addEventListener(MouseEvent.CLICK, determineBMI) This line makes the button, btnDetermine wait for a mouse click Can someone please correct it for me? Here are the errors: Expecting identifier before assign, Expecting rightparen before leftbrace, and Expecting rightparen before BMI. Hello, I am new to ActionScript 3.0 and I do not understand the problem with my code.
