A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: rollover effect on a button...?

  1. #1
    Member
    Join Date
    Apr 2001
    Posts
    76
    wow... itz my 3rd question of the day... once again, i have a simple question that is too challenging for me. how do apply an rollover effect on a button such that when a user places his or her cursor on top of the button, the button gets bigger and blurry (in a loop-ing manner). am i supposed to do something with four states of the button (up,over, down and hit)? or is related to actionscripting? or both? thank you very much for stopping by. peace

    alex

  2. #2
    Old dog learning new tricks

    Join Date
    Dec 2000
    Posts
    1,498
    Ela Alecho...
    There r two ways of doing this.
    U can put a movieclip with the animation u want in the over state only.
    U can place an empty in the first frame and a stopped mc over the button. Then with actionscript assigned in the button, tell the mc to go and play frame 2. Like:
    on (rollover){
    _root.theclip.gotoAndPlay (2);
    }

  3. #3
    Member
    Join Date
    Apr 2001
    Posts
    76

    hey thanx... just a few more questions...

    hey. thanx for replying to my message... i just have few more questions...

    1. how do i put a movieclip just on over state?

    2. what do you mean by 'stopped mc' over the button? how is that different from the first method?

    3. i am kinda confused with the actionscript you told me... (i dont know much about actionscript, sorry)

    on (rollover){
    _root.theclip.gotoAndPlay (2);
    }

    what is "_root.theclip"? i see '_root' quite often but what is it?

    thank you very much again. peace

  4. #4
    9th Grade WC
    Join Date
    Sep 2000
    Posts
    1,192
    make your animation a movie clip
    then in the over state of the button
    drag the movie clip into the stage

  5. #5
    Member
    Join Date
    Apr 2001
    Posts
    76

    Smile thanx!!!

    thanx guys!!!

  6. #6
    Old dog learning new tricks

    Join Date
    Dec 2000
    Posts
    1,498
    When u put a movieclip in the stage u put an instance of it and not the real thing. So u must name this instance in order to control it. U name it by using the instance panel.
    _root represents the main timeline.
    _root.theclip means there is an instance called theclip inside the main timeline.

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