1 Reply Latest reply on May 30, 2006 11:39 PM by Newsgroup_User

    when using onclipevent via on(rollover), how do I still paused a movie?

    complexity Level 1
      Hey all,
      I have a movie that is running free on the timeline and when I rollover it I am attaching a movie to the cursor.
      My problem is that when I do this, I then cant seem to pause the running time line.

      eg:
      on (rollOver){
      framevar = _currentframe;
      gotoAndStop(framevar);

      attachMovie("clickhere", "clickhere_mc", 0, {_x:_xmouse,_y:_ymouse});
      }
      onClipEvent (enterFrame) {
      clickhere_mc._x = _xmouse ;
      clickhere_mc._y = _ymouse ;
      }

      on (rollOut){
      gotoAndPlay(framevar);
      clickhere_mc.removeMovieClip();
      }

      Could someone please show me how I can do this, I dont have much experience with the onclipevent.

      FILE HERE
      http://users.ncable.net.au/~timfrancis/attachhover.fla

      Any help would be great
        • 1. Re: when using onclipevent via on(rollover), how do I still paused a movie?
          Level 7
          Use this instead:

          on (rollOver) {
          framevar = _currentframe;
          gotoAndStop(framevar);
          attachMovie("clickhere", "clickhere_mc", 0, {_x:_xmouse, _y:_ymouse});
          _root.stop();
          }
          onClipEvent (enterFrame) {
          clickhere_mc._x = _xmouse;
          clickhere_mc._y = _ymouse;
          }
          on (rollOut) {
          clickhere_mc.removeMovieClip();
          _root.play();
          }

          It should the running time on the main timeline.


          M3!



          "complexity" <webforumsuser@macromedia.com> wrote in message
          news:e5ja8u$j7i$1@forums.macromedia.com...
          > Hey all,
          > I have a movie that is running free on the timeline and when I rollover it
          > I
          > am attaching a movie to the cursor.
          > My problem is that when I do this, I then cant seem to pause the running
          > time
          > line.
          >
          > eg:
          > on (rollOver){
          > framevar = _currentframe;
          > gotoAndStop(framevar);
          >
          > attachMovie("clickhere", "clickhere_mc", 0, {_x:_xmouse,_y:_ymouse});
          > }
          > onClipEvent (enterFrame) {
          > clickhere_mc._x = _xmouse ;
          > clickhere_mc._y = _ymouse ;
          > }
          >
          > on (rollOut){
          > gotoAndPlay(framevar);
          > clickhere_mc.removeMovieClip();
          > }
          >
          > Could someone please show me how I can do this, I dont have much
          > experience
          > with the onclipevent.
          >
          > FILE HERE
          > <a target=_blank class=ftalternatingbarlinklarge
          > href=" http://users.ncable.net.au/~timfrancis/attachhover.fla
          >
          > Any"> http://users.ncable.net.au/~timfrancis/attachhover.fla
          >
          > Any</a> help would be great
          >