A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: moving buttons

  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    5

    moving buttons

    I am currently building a site that has buttons that move from left to right across the screen. I have placed the button inside of a movie clip so I can perform this movement within the movie clip and I then attached the following code to the movie clip

    on (rollOver) {
    stop();
    }

    on (release) {

    _root.gotoAndPlay(20);
    }


    which stops the button from moving whilst mouseover and which then advanced the main movie to frame 20 after it has been clicked. My problem is I want the button to continue to move after the mouseover event if the button isn't clicked. Can anyone point out how to this as I pulling my hair out here!

  2. #2
    Senior Member Dricciotti's Avatar
    Join Date
    Aug 2002
    Posts
    2,988
    Are you moving your button inside a MC or using actionscript? A little more of an explanation would help

  3. #3

  4. #4
    Junior Member
    Join Date
    Feb 2001
    Posts
    5
    I am moving the button within the mc using simple tweens

  5. #5
    Junior Member
    Join Date
    Feb 2001
    Posts
    5
    Quote Originally Posted by austriaman
    code:
    on (rollOut) {
    play();
    }

    Thankyou, that is what I was looking for I am just learning the actionscript as you can probably tell!

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