A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Button reverse problem

  1. #1
    Vox = Voice Vox98's Avatar
    Join Date
    Mar 2001
    Posts
    879

    Button reverse problem

    I have reverse animations on my buttons with a simple glow on rollover and fade to normal on rollout. I have a Hit state only button over the animation and it works fine, just that i find that sometimes I will rollover it and the animation sticks sometimes even after i have rolled off it. Any ideas?

    Code is as follows:

    14 Frames:

    Action Layer
    frame 1
    Code:
    stop();
    frame 7
    Code:
    stop();
    Button Code
    Code:
                      on (rollOver) {
                        gotoAndPlay(2);
                       }
    
                         on (rollOut) {
                           gotoAndPlay(7);
                       }

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Try changing frame 7 to 8 instead.

    on (rollOut) {
    gotoAndPlay(8);
    }

    Having conflicting actions can mean trouble.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Vox = Voice Vox98's Avatar
    Join Date
    Mar 2001
    Posts
    879
    thanx i got it!

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