I am a relatively new user but have a strange problem (with kool moves!).
I have created a feedback / competition entry form which works OK, I have just added 4 check boxes which change a text value 'venue'
ie when chk1 is ticked venue.text = "venue 1" , chk2 venue text= venue 2 etc
when I test this by playing in kool moves (play in web browser) it works fine
when I publish the swf and play it stand-alone it works fine
when I load this movie into the 'main' page (another swf file) the tick boxes don't show???
First, you should post the fun file so that anyone that is able to help you can see what you've done with your code. Second, check to make sure that you don't have the same instance names in both movies.
Post it up, there are plenty that are willing to help out. The best thing about people like us is that we like to figure out why things are broken and providing a solution.
Where did you get some of your code?
What I mean is that you have 10 lines of code to do something that can be done in one.
Not that it's a big deal but every bit of code increases size.
Right off the bat though, your problem may be the size of the movie or the visibility. Can use see the reset and send buttons when the page loads?
yes the form has been working OK until i tried updating it. my initial thought was a drop down list with the 4 choices but i couldn't get the text in the ddl to transfer to the text box ready for posting to the php file. so i resorted to the checkboxes which on change puts the value to the text box fine when i test it but when load this movie into its 'parent' movie main (ive attached it)
it doesn't show the check boxes.
i have tried the code below (added it to frame 2) still the same
which bit have i got too much code for? always looking to learn better methods etc
This will cut down on the amount of ELSE IF's you had.
The || = or
&& = And
Code:
on (release) {
// This one line will check if ANY of these are blank.
if (title == "" || surname =="" ||city == "" ||postcode == "" ||email ==""||sex == ""||day == "" ||month ==""||year == ""||venu =="") {
gotoAndstop("error"); // If anything is blank, go to the Error page.
} else { // If they contain data, goto thank you page.
gotoAndplay("thanx");
function validate(email) {
if (email.length>=7) {
if (email.indexOf("@")>0) {
if ((email.indexOf("@")+2)<email.lastIndexOf(".")) {
if (email.lastIndexOf(".")<(email.length-2)) {
return (true);
}
}
}
}
return (false);
}
//this sends the form to the php file
loadVariables(mailform, 0, "POST");
}
}
Not bad looking site. Simple but effective. I love the buttons you made. Very nice work there.
Do you have the fun file for this part. Maybe the problem is related to the original file?
So, what button will make the form appear?
Also, do you want it to open as a pop up?
would there be an advantage to open it as a popup?
I cant load the main.fun file as its over 300k (not very helpful).
The idea is when potential contestants click on the 'enter' button the enter.swf is loaded into the frame they then fill in the form and select when they want to come for an audition. Thats the idea anyway but i cant get the thing to work hence here we are.
I noticed something about my problem, i opened my main page, clicked on enter and if you look top left corner the bottom right chk box is visible?????
Not sure what is going on. to eliminate name conflicts etc i made a completely new swf called enter with just 4 tick boxes and the text box in it and still no joy. (only in the top left corner anyway)??
I have a sneaky suspicion I know what the problem is, I have just upgraded my KM??
anyway i just created a blank fun file with 3 frames, stop on frame 3 and load enter.swf. this works perfectly all the chk boxes are in the correct place etc?
I think i may do a complete rebuild of my main.swf see if that cures it