LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-15-2004, 12:48 PM
purpleproject purpleproject is offline
Registered User
 
Join Date: Oct 2004
Location: London
Posts: 8
Rep Power: 0
purpleproject is on a distinguished road
If you fancy a challenge.....

Hey guys,

I'm almost there with regard to the form I am creating except I have an ongoing issue with two dependable comboboxes.
The problem is this -

The user inputs text in text fields and chooses options in dependable comboboxes. All this data is then displayed at the end of the form in a kind of summary box. All the info from the textfields and listboxes display fine in the result box but the combo boxes stop working when I add the code in to display their results- they work fine when I take it out. I know this is linked to the fact that they have arrays in them but I just dont know what to do. I am not a Flash coder by any means and I'm sure the problem is glaringly obvious so I would really appreciate some help. Here is the code -

Actionscript:
// function to display the selection of Turnaround Time
function comboDisplay (component) {
	combo = component.getSelectedItem().label ;
}
// We assign the function to the Turnaround
turnaround_cb.setChangeHandler ("comboDisplay") ;

// function to display the selection of Media Type Box
function comboDisplay2 (component) {
	combo2 = component.getSelectedItem().label ;
}
// We assign the function to the Media Type Box
main_cb.setChangeHandler ("comboDisplay2") ;

// function to display the selection of Packaging Box
function comboDisplay3 (component) {
	combo3 = component.getSelectedItem().label ;
}
// We assign the function to the Packaging Box
sub_cb.setChangeHandler ("comboDisplay3") ;

// function to display the selection of Quantity
function comboDisplay4(component) {
	combo4 = component.getSelectedItem().label ;
}
// We assign the function to the Disc print Box
function comboDisplay5 (component) {
	combo5 = component.getSelectedItem().label ;
	}
// We assign the function to the Disc print Box
discprint_cb.setChangeHandler ("comboDisplay5") ;

// function to display the selection of Packaging Print Box 
function comboDisplay6 (component) {
	combo6 = component.getSelectedItem().label ;
}
// We assign the function to the Packaging Print Box 
yesno2_cb.setChangeHandler ("comboDisplay6") ;

// function to display the selection of Packaging Print Box 2
function comboDisplay7 (component) {
	combo7 = component.getSelectedItem().label ;
}
// We assign the function to the Packaging Print Box 2
packagingprint_cb.setChangeHandler ("comboDisplay7") ;



// Submit button function
onSubmit = function () {
	texte = quantity.text;
	texte2 = name.text;
	texte3 = email.text;
	texte4 = phone.text;
	texte5 = company.text;
	texte6 = message.text;
	_root.gotoAndStop ("page2");
}

This then jumps to the frame in the timeline with the result box. The code for this frame is - 

stop();
result.text+= "You requested turnaround of - "+combo+"\n";
result.text+= "Your chosen media is - "+combo2+"\n";
result.text+= "Your chosen packaging is - "+combo3+"\n";
result.text+= "Number of units - "+texte+"\n";
result.text+= "Name - "+texte2+"\n";
result.text+= "Email - "+texte3+"\n";
result.text+= "Phone - "+texte4+"\n";
result.text+= "Company - "+texte5+"\n";
result.text+= "Disc Print - "+combo5+"\n";
result.text+= "Packaging Print - "+combo6+"\n";
result.text+= "Print re	quired - "+combo7+"\n";
result.text+= "Additional Information:\n"+texte6;
The comboboxes are Media Type Box, Packaging Box, Packaging Print Box and Packaging print Box 2 with Media type box and packaging print being the combo's the affect the other two's options. AS mentioned, when I add the code in to display their results in the result box, they stop working...

I hope this makes sense and isnt too stupid. I have attached the file as its getting a bit complicated this post! PLease ignore the mess in this flash file as ai've been throwing in together somewhat...

Thanks in advance!
Attached Files
File Type: zip form.zip (78.2 KB, 4 views)
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gondor Gaming Challenge 2 Inglor Flash Games 0 05-25-2005 04:50 PM
Gondor Gaming Challenge (contest with prizes) Inglor General Flash 3 01-29-2005 08:38 AM
Challenge LinkD Newbies 7 11-10-2004 05:56 AM
Challenge: Shoot 'Em Up knuckles Flash MX 2 12-11-2002 04:44 PM
Challenge #1: Shorten this Script dv8 Flash MX ActionScript 5 10-16-2002 10:19 PM




All times are GMT. The time now is 10:10 AM.