MarcellUrbaniack
02-09-2011, 12:06 AM
Again I have a problem
I looked about and found nothing on my particular issue :(
I have text boxes below a combobox which contains numbers
1 2 3 4
the visibility of my text boxes are all set to false. ie
answerBox1.visible = false;
answerBox2.visible = false;
answerBox3.visible = false;
answerBox4.visible = false;
If 1 is selected in the combobox, the visiblity of answerbox 2 - 4 is false and one is true
therefore 2 selected means 1 and 2 true , 3 and 4 false.
Declaring them all as false outwith the functions works , however it throws this error
TypeError: Error #1009: Cannot access a property or method of a null object
I have a version in AS2.0 dealing with visiblity of mcs (not with comboboxes data) which I could refer to if I dig it out, be I fear it may be a different approach in 3.0
ps. I'm using a varaible to track the comboxes data
Amount = Question.selectedItem.data;
I need the visiblity of the textboxes working as soon as the combobox value has been clicked
Thanks
I looked about and found nothing on my particular issue :(
I have text boxes below a combobox which contains numbers
1 2 3 4
the visibility of my text boxes are all set to false. ie
answerBox1.visible = false;
answerBox2.visible = false;
answerBox3.visible = false;
answerBox4.visible = false;
If 1 is selected in the combobox, the visiblity of answerbox 2 - 4 is false and one is true
therefore 2 selected means 1 and 2 true , 3 and 4 false.
Declaring them all as false outwith the functions works , however it throws this error
TypeError: Error #1009: Cannot access a property or method of a null object
I have a version in AS2.0 dealing with visiblity of mcs (not with comboboxes data) which I could refer to if I dig it out, be I fear it may be a different approach in 3.0
ps. I'm using a varaible to track the comboxes data
Amount = Question.selectedItem.data;
I need the visiblity of the textboxes working as soon as the combobox value has been clicked
Thanks