A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: noobish button issue

  1. #1
    Senior Member
    Join Date
    Jul 2001
    Location
    San Jose California
    Posts
    144

    noobish button issue

    I have an HTML page with a Flash splash containing two buttons.

    The problem is a click on linux_bn sends me to "free_trial/index.html" when it should be going to "forms/register.php?continue[]=linux"

    It seems like one button is hijacking the code for the other. When I removed the free_audit_mc code the linux button works. Anybody know what I'm doing wrong here? See my frame code below.


    free_audit_mc.onMouseDown = function(){
    getURL("free_trial/index.html", _self)
    }

    linux_bn.onMouseDown = function(){
    getURL("forms/register.php?continue[]=linux", _self)
    }

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Is linux_bn within the movie clip?
    If so any handlers set on mcs will override other actions on other symbols within that movie clip...

    Use 2 buttons within the clip, and no mouseDown action on the clip itself.

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    San Jose California
    Posts
    144

    I'm not sure I follow

    I should have just attached this stripped version to take the guesswork out.
    Attached Files Attached Files

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    San Jose California
    Posts
    144
    How should I rearrange this so it will work?

  5. #5
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    This
    Attached Files Attached Files

  6. #6
    Senior Member
    Join Date
    Jul 2001
    Location
    San Jose California
    Posts
    144
    Hmmm very interesting Old Newbie Wan Kanobi. It seems to work just fine if you have the links open new windows. Unfortunately pop ups would be less than ideal in this situation.

    Did you adjust anything besides "_self" to "_blank" ?

  7. #7
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Well I added doubles quotes for one thing, and corrected your syntax on onRollOver and onRollOut and changed the mouseDown to an onRelease...

    But if you use "_self", how will I be able to press on the button, rather than on the clip? Use the browser's back button?

  8. #8
    Senior Member
    Join Date
    Jul 2001
    Location
    San Jose California
    Posts
    144
    Wow I must really be tired to not even see that! hahaha ok see the little guy in the footer? yeah uh huh that's me...

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