A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Flash 8 bug!? Button Problem!!

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Posts
    25

    Flash 8 bug!? Button Problem!!

    The weirdest thing is happening to me in Flash 8...

    I have buttons in my movie that don't work properly when trying to press it REPEATEDLY in a row. The button seems to disable on its own... but check it out: If I press the button and then move the mouse cursor at least one pixel, then I can press the button again... otherwise, the button does nothing... and I know the button ISN'T disabled because 1.) there's nothing like that in my code, 2.) the mouse cursor stays as the "hand" and not the "pointer"... know what I mean?

    My button actions are not on the button itself but in the form of

    myButton.onRelease = function(){
    do this and that...
    }


    Here's another weird part of this... to test it out, I made a whole new flash movie and made a new button with new actions (just a simple trace("hello world"); action and no matter how many times I repeatedly press the button, it works. But why won't it work in my other FLA???

    And HERE's the WEIRDEST PART!!!!
    SOMETIMES when I publish a preview of the movie, the BUTTON does work when I press it repeatedly... but OTHER times when I preview the same movie, the SAME BUTTON will then NOT WORK when pressed repeatedly! What the heck is going on? HELP ME!

    I'd appreciate any help...

    (BTW, the button is basically a NEXT button for a photo gallery I'm making...)

  2. #2
    Junior Member
    Join Date
    May 2007
    Posts
    4

    Any response to this?

    I am having an identical problem, except my code is on the button itself:

    on(release) {
    gotoAndPlay(80);
    }

    I've tried changing it to gotoAndStop, and various other things using focusManager, etc.

    The problem occurs for .swf files embedded in HTML using IE7, and the same thing happens if I publish just the executable file.

    Any advice would be appreciated...

  3. #3
    Junior Member
    Join Date
    May 2007
    Posts
    4

    Track as menu item

    The saga continues.

    I changed the button properties from "Track as Button" to "Track as Menu Item" and it appears to have solved the sticky button problem for both stand-alone and web-based delivery.

  4. #4
    Junior Member
    Join Date
    Aug 2001
    Posts
    1

    solution

    You may also find that need to change your on(press) to on(release).
    Cheers
    Tolli

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