Skip navigation
marissa_d
Currently Being Moderated

AS 3.0 - Button Won't Stop Flashing in SWF Preview

Jun 26, 2009 9:27 AM

I'm in the process of switching from AS 2.0 to AS 3.0, so apologies if this is really obvious....

 

I am modifying/updating an old template for a client and am inserting customized navigation buttons. One is a play/pause button and I was able to swap the old buttons for the new in the library and show them on the stage with no problems. When I export to swf to preview the movie, the new button just flashes repeatedly between the different "play" and "pause" states (up, over, etc).

 

I checked to make sure I didn't change any names of the buttons or movie clips.  I tried inserting stop(); but it doesn't work...probably because I'm not putting it in the right spot.  When I select the button, it has "up, over, down, hit" in the Timeline and says the selection can't have any actions applied to it.

 

Advice? I hope this is a very simple oversight on my part!

 

I am using CS4 and AS 3.0.

 
Replies
  • kglad
    62,016 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 26, 2009 10:31 AM   in reply to marissa_d

    is your button's timeline a typical button timeline or movieclip timeline?

     
    |
    Mark as:
  • kglad
    62,016 posts
    Jul 21, 2002
    Currently Being Moderated
    Jun 26, 2009 11:44 AM   in reply to marissa_d

    if you don't see any error messages post a link to your fla.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 14, 2011 7:38 AM   in reply to marissa_d

    I'm having this problem too. Button keeps cycling between up and over state. Looks like it flashing.  Have you found a solution?

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 14, 2011 7:48 AM   in reply to raylaur

    if you have a compiler error, that error must be corrected.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 21, 2011 5:07 AM   in reply to marissa_d

    is the button you just replaced is also a button timeline?


     
    |
    Mark as:
  • Currently Being Moderated
    Feb 21, 2011 6:50 AM   in reply to Ysong_1983

    I found the problem.  I had converted some buttons into graphics so that when I stop on the intended keyframe the over/down highlight would remain constant.

    But I did't change the default loop setting to single frame - so it was looping through all the states.  Ultimately I ended up using movie clips as buttons and using code to keep them in state I want.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points