dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Button problems in flash!!! :s

  1. #1
    Junior Member
    Join Date
    Jul 2005
    Posts
    2

    Button problems in flash!!! :s

    Hello
    Im a bit of a newbie to flash. Been trying just to make some basic pages and ive hit a bit of a problem with the buttons. I realise that you can set the buttons to have different states but i cant work out how to activate the different animations for when the cursor is over the button, clicks the button etc.Can any one help me out?
    Cheers guys for looking.

  2. #2
    Senior Member MagnusVS's Avatar
    Join Date
    May 2005
    Location
    Oslo, Norway
    Posts
    764
    If you double click the button, you see that there are four parts of the timeline: Up, over, down and hit.

    If you e.g. want to play an animation when the mouse is over the button, you just insert the movie clip in the "over" section in the button timeline.


    You can also use this code, attached to the button:

    on(rollOver){
    movieclip.play();
    }
    on(rollOut){
    movieclip.stop();
    }

    That would start and stop a movie clip (here with the instance name "movieclip") on rollover and rollout.

    I'm not sure if i've answered all you asked for now, if there's anything more, just ask!

    Magnus

  3. #3
    Junior Member
    Join Date
    Jul 2005
    Posts
    2
    cheers m8! i think you ave. if i havent ill ask again! thank you

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