A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 29

Thread: my check boxes have dissapeared?

  1. #1
    Junior Member
    Join Date
    Jan 2006
    Posts
    19

    my check boxes have dissapeared?

    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

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    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.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  3. #3
    Junior Member
    Join Date
    Jan 2006
    Posts
    19

    Where are my checkboxes?


  4. #4
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    even better here it is as a zip
    Attached Files Attached Files

  5. #5
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    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?
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  6. #6
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    try adding this to the frame that has the check boxes.

    chk1._visible=true;
    chk2._visible=true;
    chk3._visible=true;
    chk4._visible=true;
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  7. #7
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    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?
    Attached Files Attached Files

  8. #8
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    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");
    	}
    }
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  9. #9
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    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?
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  10. #10
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    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.

  11. #11
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    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.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  12. #12
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    I cant load the main.fun file as its over 300k
    zip it or post it to your webserver and put a link here.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  13. #13
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    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

  14. #14

  15. #15
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    please dont tear it apart too much

  16. #16
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Quote Originally Posted by m1les
    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.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  17. #17
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    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

  18. #18
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    Let us know.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  19. #19
    Senior Member
    Join Date
    Jul 2001
    Location
    Tinley Park, IL
    Posts
    702
    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.
    My Sites: Gaming Site Nightshade Studios MyKM Tutorials

    --------------------------------------------------
    What I'm using: Gimp, Koolmoves, Sepy, HTML-Kit, Inkscape

  20. #20
    Junior Member
    Join Date
    Jan 2006
    Posts
    19
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center