Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Help I have no idea whats wrong

    I cant get my site to work. How do I fix this. I cant attach the file though.

    heres the code
    Code:
    stop();
    
    function goHome(e:MouseEvent):void {
    	gotoAndStop("Home");
    }
    Home_btn.addEventListener(MouseEvent.CLICK, goHome);
    
    function goDivisions(e:MouseEvent):void {
    	gotoAndStop("Divisions");
    }
    Div_btn.addEventListener(MouseEvent.CLICK, goDivisions);
    
    function goHistory(e:MouseEvent):void {
    	gotoAndStop("History");
    }
    History_btn.addEventListener(MouseEvent.CLICK, goHistory);
    
    function goPhotos(e:MouseEvent):void {
    	gotoAndStop("Photos");
    }
    Photos_btn.addEventListener(MouseEvent.CLICK, goPhotos);
    
    function goVideos(e:MouseEvent):void {
    	gotoAndStop("Videos");
    }
    Videos_btn.addEventListener(MouseEvent.CLICK, goVideos);
    
    function goSponsors(e:MouseEvent):void {
    	gotoAndStop("Sponsors");
    }
    Sponsors_btn.addEventListener(MouseEvent.CLICK, goSponsors);
    
    function goContact(e:MouseEvent):void {
    	gotoAndStop("Contact");
    }
    Contact_btn.addEventListener(MouseEvent.CLICK, goContact);
    This is a flash website. Heres the link to download
    http://www.mediafire.com/?odzlhyhwzwg
    problem is after you click divisions and you click back you cant click any other links on the menu. Look and open the website and you'll know what I mean.
    Last edited by Jimmix; 02-06-2009 at 01:07 AM.

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    I can't open the file right now, but are you sure that the buttons are availble in the divisions page?
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • Users who have thanked gnomeontherun for this post:

    Jimmix (02-13-2009)

  • #3
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    The buttons arent on the page. Its supposed to be
    MAIN Divisions
    Then when you click divisions all the button changes to new ones
    Then theres a back button. Which when you click it returns back to the main page. Then the buttons no longer work.

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    These buttons actually function?

    After looking harder, it finally dawned on me that you are mixing actionscript 2 and 3. I don't know why it didn't dawn on me sooner. The MouseEvent.Click is AS3, but I don't know anything about AS3 really. Try this syntax.

    Code:
    Home_btn.addEventListener("click", goHome);
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #5
    New to the CF scene
    Join Date
    Feb 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Ummm. SO how do I kinda get the buttons to work now. Because when I click the button once it goes to the keyframe. But when I re click the other button they no longer work? How will I fix that?

    O and the buttons do Work. But I changed it to your code anyway.
    Last edited by Jimmix; 02-13-2009 at 09:00 PM.

  • #6
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    No, I downloaded your file and I was wrong, its all AS3. I was under the impression from some research I did at work that gotoAndStop was not AS3, but alas it is.

    I think that it has to do with the event handlers. I don't know AS3, but something is conflicting with them (or once you click once do you have to reregister events or something?)
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

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