Proper way to do rollover / rollout ?

Ask a Question related to Macromedia Flash, Design and Development.

  1. #1

    Default Proper way to do rollover / rollout ?

    This is the effect I would like to produce:

    [url]http://www.inperspectiverecords.com/[/url]

    - the buttons that move when the mouse enters.

    I knocked this up using a button and a movie clip with a shape tween.

    [url]http://www.schoolyardrules.com/help/rollover.html[/url]

    [url]http://www.schoolyardrules.com/help/rollover.fla[/url]

    The actionscript I used on the buttons is:

    on (rollOver) {
    tellTarget ("_root.square") {
    gotoAndPlay(1);
    }
    }
    on (rollOut) {
    tellTarget ("_root.square") {
    gotoAndPlay(10);
    }
    }

    but as you can see it doesnt really work.

    What is the best way to create this effect?

    Thanks - Joe


    Joe Guest

  2. Similar Questions and Discussions

    1. RollOut too quick?
      Hello everyone, I have a question about RollOut .... I created some expand menu, which's rollOver and rollOut action is controlled by...
    2. Rollover, Rollout reversing
      I think I need help here. I used the TellTarget rollover as well as rollout, but when I finish with the buttons and mouseover them quickly, these 2...
    3. Playing movie clips from rollover & rollout?
      Hi - I have a button that once the user has entered a movie should play. Then once they roll out the movie should play again. I have made the...
    4. grid of boxes that expand on rollover and shrink on rollout
      can anybody help me with working out how the interface in the link below would work with shockwave rather than flash?, except instead of using key...
    5. Button rollout animation
      http://www.macromedia.com/support/flash/ts/documents/roll_over_animated_button.htm the blue of the sea is sometimes so blue that only blood is...
  3. #2

    Default Re: Proper way to do rollover / rollout ?


    Mke a MC with your tween. Put a stop on the first frame of the MC. Dra
    the MC to the stage and put this code on the MC.

    onClipEvent (enterFrame) {
    if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
    if (this._currentframe<this._totalframes) {
    nextFrame();
    }
    } else {
    if (this._currentframe>1) {
    prevFrame();
    }
    }


    rhame
    -----------------------------------------------------------------------
    Posted via [url]http://www.mcse.m[/url]
    -----------------------------------------------------------------------
    View this thread: [url]http://www.forum4designers.com/message41680.htm[/url]

    rhamej Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139