A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Button - hold down?

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    1

    Button - hold down?

    So I have a button that goes to "play" after "release" and there's a picture in the button's "down" part. But when the button has been released by the mouse the picture in the "up" part flashes before the flash starts.

    So how can I make it so that the "down" picture is there the time until the flash starts? Also I'm kinda new in flash so explain it easily, haha.

  2. #2
    Moderator whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    use a movieClip with as many frames as you need and use code to display that frame.

    PHP Code:
    buttonClip.onRollOver = function(){
        
    this.gotoAndStop(2);
    }

    buttonClip.onRollOut = function(){
        
    this.gotoAndStop(1);
    }
    buttonClip.onPress = function(){
        
    this.gotoAndStop(4);
    }
    buttonClip.onRelease = function(){
        
    this.gotoAndStop(3);

    for example..

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