result_meet.gotoAndPlay("go");
result_meet.myresult.text = "Fields with (*) must be filled.";
mussicc
It looks like you have taken this from a Chris Seahorn load vars example, which is fine, as long as you realise that the gotoandplay function refers to a movie clip chris had on his stage called myresult I think. otherwise the code looks fine.
Before I head back to the cave...I want to mention... (Wilbert has also mentioned this many times before as well)......
Always make sure to give the components at least two frames...the first one to create it and the scripting on the second (or any frame after the original frame it was placed in the timeline).
For example if I coded that whole thing on one frame I could validate the combobox (read it's chosen value) but could not send commands to it. This line which tells it to default to it's first item (which has no value on purpose ):
meet_ampm.setSelected(0);
would fail on a one frame movie using a combo.
As long as the combo is already placed and I script it on a following frame (frame two in my example) it will accept the command to control it as well as read it
Last edited by Chris_Seahorn; 04-16-2007 at 10:00 PM.
That is a lot to do for reading the choice of a simple checkbox. Here is what I do. You choose with method works best for your application.
On stage are two items.
my combobox and a dynamic textbox.
Name your textbox "choice1" or whatever you want.
Select properties of the combobox. Add your values. In the on Change box add this action script.
Code:
_root.choice1.text = getValue();
That's it.
Whatever the user selects will put the response in the textbox and you can now send the data using which ever method you choose.
When the form goes live you can hide the textbox behind your background image, off stage (_x = 2000; ) or just change the colors other attributes so it can't be seen.
His expected new based on the assumption no dropdown has been clicked (because most likely his does not contain an empty item value but even if it did it's easily addressed)...
So your solution is to add another textfield to track what is already contained in the value (or lack thereof ) in the combo? That is sound advice or efficient?...OK...if you say so...
I'm also pretty sure that your concerns here:
That is a lot to do for reading the choice of a simple checkbox.
Were pointed out here:
This example is a little more involved than you need but it's meant to give you ideas. Dissect what is useful and save the rest for down the road
Thanks for adding an uneeded object to his movie though...that might also be something he wants to do down the road
Last edited by Chris_Seahorn; 04-17-2007 at 01:54 AM.