PDA

View Full Version : Could really do with someones help


KingCHAD
12-19-2004, 01:01 PM
:confused: Hi

I am really struggling with this component thing and my project is well over due...plz could someone download my file and help me get my forms working

I wouldn't ask but its really overdue now and I just havent got a clue

click here to download the forms (http://www.obscuradesign.co.uk/forms.zip) :confused:

genuinairguitar
12-20-2004, 04:29 PM
Hi KingCHAD, had a look at your form. Not gonna work. What version of flash are you working in?

Your components you're using are mx2004, such as the checkbox's etc?

getValue wont work unless you use the mx components.

If you need anything else let me know.

KingCHAD
12-20-2004, 05:05 PM
How do I use mx components if i am using mx 2004??

do you know of a way to make it work in 2004 cuz this project is getting well over due and dont really know wot else to do????? :eek:

genuinairguitar
12-21-2004, 01:13 PM
If you havent got mx components you'll need to do it in version 7.

I've made some changes to the file to get the flash working, I cannot use PHP so unable to confirm whether that is wrong or not.

I seem to have a problem attaching the zip file, is anyone else having the same problem?

genuinairguitar
12-21-2004, 01:23 PM
okay, they've got a 1mb limit. Nice of them to say.

Here it is. Not sure what you wanted it to do, but I've just sorted out the code to put all the values on the first page to display on the second.

If it's meant to be different let me know and I'll change it.

KingCHAD
12-21-2004, 01:47 PM
Sorry to be a pain but I need the data given in the components to be sent to booking.php along with the data entered into the input text fields

is it possible

genuinairguitar
12-21-2004, 03:49 PM
Right, I've had to change stuff around to get it to work. I'm no PHP coder but have got it to work in ASP and have modified the PHP code so should work. I'm sure you've got a server to test it on.

A new window will pop up for the php page, but you can switch that off in the flash code if it works.

Looking at the form you should really get rid of the check boxes as you dont really need them. i.e. someone doesnt need to click "Twin Room" and then say how many. You could change the "Twin Room" to text and then the user only needs to complete the list field.

Hope that makes sense

splict
12-21-2004, 03:54 PM
Is there a simple way of showing what has been selected in my combobox in a dynamic text field because this way i could send the data in that field with the other text fields :)
You can get the data from a component just as easily as you can from a textfield. In 2004 use the property myCombobox.value just like you would use myTextfield.text In mx I think it was the method myCombobox.getValue()

KingCHAD
12-21-2004, 04:04 PM
This works fine as far as I can see but now i only need this form to work

http://www.obscuradesign.co.uk/colingrazierhotel/form2.htm

I have taken out most components leaving in the combobox , all i need this to do is display the answer given in the combobox in a dynamic text field called result

And wot im gonna do is send the info in result text field to my php code the same as i do with the other fields

plz could you take a look at this for me i wont bother you again after this i promise

form2.fla (http://www.obscuradesign.co.uk/colingrazierhotel/form2.fla)

genuinairguitar
12-21-2004, 04:27 PM
I'm going home now, if someone hasnt resolved it by tomorrow I'll sort it for you.

KingCHAD
12-21-2004, 04:43 PM
cheers nice one

ill post if someone sorts it out

splict
12-21-2004, 05:02 PM
Did you try what was in my post? You have to give you combobox an instance name before you can refer to it. I gave it an instance name of type_cb and then in the onrelease I added the following first line.
type = type_cb.value; // this line I added
action = "Send"; // this line was already here but I am showing it so you know where to put the previous line

KingCHAD
12-21-2004, 10:36 PM
I have tried relating to the combobox so that the value shows in a text box

result = type.value;

all this seems to show is the first item in the combobox

Choose One

this is the form here so you can see what im on about

http://www.obscuradesign.co.uk/colingrazierhotel/form2.htm

:confused:

splict
12-21-2004, 10:46 PM
did you put that line inside of the onrelease?

CyanBlue
12-21-2004, 11:04 PM
Why did you have to post this in FMX forum??? Moving to FMX 2004 forum!!!

Can you post the latest FLA???

genuinairguitar
12-22-2004, 09:33 AM
Here's the fla with the combo working as you wanted. You dont really need to put it in the results field you could just send it to your php page on submit.

Anyway, hope it helps

KingCHAD
12-22-2004, 10:26 AM
I like keeping my options open because its taking me so long to figure this out

you can down load the fla here (http://www.obscuradesign.co.uk/colingrazierhotel/form2.fla)

All i need is the combobox to display the selcted value in the text box (result)
so that i can send the answer that is in the text box to my php code along with the other input fields :confused:

KingCHAD
12-22-2004, 10:29 AM
nice one you have really helped me out on this one now i can study the flas and learn alot more about action scripting

thanks everyon who helped out

:) :) :) :) :) :) :)

genuinairguitar
12-22-2004, 11:23 AM
No probs