Click to See Complete Forum and Search --> : my check boxes have dissapeared?
m1les
01-08-2006, 11:52 AM
Hi to all,
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???
What am I missing?
would apreciate any help :doughnut:
dniezby
01-08-2006, 11:58 AM
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.
m1les
01-08-2006, 12:13 PM
soz should have realised
http://www.southcoastidol.co.uk/km/enter.fun
m1les
01-08-2006, 12:24 PM
even better here it is as a zip
dniezby
01-08-2006, 12:51 PM
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?
dniezby
01-08-2006, 01:09 PM
try adding this to the frame that has the check boxes.
chk1._visible=true;
chk2._visible=true;
chk3._visible=true;
chk4._visible=true;
m1les
01-08-2006, 01:27 PM
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
any more ideas?
dniezby
01-08-2006, 01:35 PM
This will cut down on the amount of ELSE IF's you had.
The || = or
&& = And
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");
}
}
dniezby
01-08-2006, 01:41 PM
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?
m1les
01-08-2006, 01:55 PM
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.
Your help is much appreciated.
dniezby
01-08-2006, 02:52 PM
Visit this site that I'm working on
http://www.ferriswheelpictures.com
Then go to the Join US page.
Scroll down and click on the "click here" link. Is that what you're looking to do?
A pop up form.
dniezby
01-08-2006, 03:00 PM
I cant load the main.fun file as its over 300k
zip it or post it to your webserver and put a link here.
m1les
01-08-2006, 03:10 PM
i like that its very slick.
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)??
Help
m1les
01-08-2006, 03:23 PM
http://www.southcoastidol.co.uk/km/main.zip
m1les
01-08-2006, 03:25 PM
please dont tear it apart too much
dniezby
01-08-2006, 04:18 PM
please dont tear it apart too much
LOL
I won't. I'm not that skilled...yet.
BTW, if you want to use a combobox I can show you how to do that...I just learned how to do that myself.
m1les
01-08-2006, 04:37 PM
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
dniezby
01-08-2006, 04:45 PM
Let us know.
dniezby
01-08-2006, 04:50 PM
As soon as I load the main.fun file it gives me a warning saying there are conflicts in shape names. Check that...I'll bet it's a conflict.
m1les
01-08-2006, 04:56 PM
I only got that message after the upgrade, i've been through the whole fun file and renamed every shape, not a scrap of difference!
Chris_Seahorn
01-08-2006, 05:12 PM
I was gonna take a look at the source but the links are dead.
m1les
01-08-2006, 05:56 PM
my server has been a bit tempermental today, the file is still there
Chris_Seahorn
01-08-2006, 06:22 PM
Temporary preview removed. Resolved.
docree
01-08-2006, 09:46 PM
It could be the swf in another swf mucking it up...
Or you have a variable that is in use by Flash itself...
Try renaming your variables.
And which layer are you calling the variables from?
_root.
this.
m1les
01-09-2006, 02:05 PM
tried renaming all my shapes in both files, even tried just a new fun file with just 2 chk boxes in the centre of the page, tried system restore to take KM back to pre update (backto V5.0.5 from 5.1.8) but then KM gave me 'unrecognised tag' errors (I assume from using new fun in old KM version) never mind I had to remake my main fun file again (carefully)! and this seems to have done the trick. http://www.southcoastidol.co.uk (click the enter button)
Thanks for all the advice though!
Miles
m1les
01-12-2006, 04:01 AM
Same thing has happened again anybody got any ideas?
m1les
01-23-2006, 04:15 AM
Totaly changed the thing after it went the same again can't afford to change it every five minutes. see the result www.southcoastidol.co.uk click on 'enter'
Bob Hartzell
01-23-2006, 08:12 AM
I suggest that you strip down the site to the essence of what isn't working. In other words, if you remove everything except the check boxes, do they work then?
Chris_Seahorn
01-23-2006, 04:35 PM
It's your export settings. I thought this was resolved. Here it is working fine:
http://sandbox.blogdns.com/enter.html
Here is it's settings:
http://sandbox.blogdns.com/miles.jpg
I didn't check off "include" flash8...you did...I just checked "include flash6" and made the export a hard coded 6 instead of "above minimum".
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.