A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Stop help

  1. #1
    Senior Member
    Join Date
    Jul 2008
    Posts
    128

    Stop help

    Sorry to ask this but I have a clipEvent(mouseDown) and inside of that function I have stop();. I have this in every single frame of my movie because when I have the mouse down I want it to act as a pause then when I let the mouse go I want it to resume. I will do the other part later. I'm just trying to get the mouse down to stop my movie first. Anyone know why this may not be working?

  2. #2
    [Horse Thief] gotoAndCrash's Avatar
    Join Date
    May 2007
    Location
    NW, USA
    Posts
    576
    not exactly sure if this is what you're asking but, follow me

    open a new Flash file.
    draw a little box on the left side of the stage.
    convert it to a movie clip called whatever.
    double click to go inside the movie clip.
    click on frame 150 in the timeline.
    press F6 to insert a new keyframe.
    (while on frame 150) drag the box (should be a raw shape) to the right side of the stage.
    click on frame 90.
    in the properties panel select Tween > Shape.
    Preview the movie, you should see the box tweening across the stage.
    go back to your _root timeline.
    (with the movie clip selected) give the movie clip the Instance Name "clip" (no quotes) in the Properties Panel.
    create a new layer & paste the following code in the actions panel for the new keyframe :
    Code:
    onMouseDown = function () {
    	clip.stop();
    }
    
    onMouseUp = function () {
    	clip.play();
    }
    Preview the movie & click & release to test the pausing.

    Close to what you wanted?
    1 Infinite Loop, Cupertino is a portal of Hell.

  3. #3
    Senior Member
    Join Date
    Jul 2008
    Posts
    128
    Yes thank you

  4. #4
    [Horse Thief] gotoAndCrash's Avatar
    Join Date
    May 2007
    Location
    NW, USA
    Posts
    576
    rawk.
    1 Infinite Loop, Cupertino is a portal of Hell.

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