Question about Graphics Publishing, Design & Multimedia Software

2 Answers

Pause Actionscript I have created a flash clip with pictures of a cruise. Within that clip, I have a play button and stop button. I wanted the stop button to stop at the point the button is clicked and released, but I don't know how to do that (I guess this is a pause function) The Play button would resume the clip when the button is clicked - don't know how to do this either. I am a beginner at this and I just know the basic start and stop. Can anyone help?

Posted by on

  • 1 more comment 
  • Vic33 Apr 03, 2008

    Thanks so much for your help! But I realize, I really don't know what I am doing!



    ok, so the script says



    StopBtn.onRelease = function () {
    trace ("onRelease called");
    };



    StopBtn- is what I have called my Stop button -- but the error that I am getting says



    Scene= Scene 1, Layer = Layer 37, frame= 1, Line 1

    Statement must appear within on handler



    what am I doing wrong?

  • Vic33 Apr 03, 2008

    ok, now I have tried this



    on (release) {StopBtn.onRelease = function () {
    trace ("pause");
    };
    }



    But "Pause" nor "Stop" works, how do I finish off the script?

  • Vic33 Apr 04, 2008

    Hi Bob,



    Thanks for the help! But, it's still not working. My flash file is 1 scene, with 39 Layers in which there is 1 image on each Layer and each image goes through a transition state. The Stop/pause button and play buttons are each on their own layer also. So, I clicked on the Stop(pause) button to apply the action script you suggested above to it. The clip plays and when I click the button, it doesn't work. Are there any other properties or script I should be using? I also tried a new file with the whole swf imported and then having the 2 other layers with the buttons but that didn't work either.



    I really appreciate your help.

×

2 Answers

For the pause button:

on (press) {
myMusicPosition=_root.myMusic.position/1000;
_root.myMusic.stop("myMusic01");
}



For the continue or play button:

on (press) {
_root.myMusic.start(myMusicPosition,0);
}


sumit

Posted on Jun 16, 2008

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 1 Answer

Button.onRelease
go to the help file in flash and enter your question.
that's what i did here, it should work for you.
if not, let me see the code you have written
bob

Posted on Apr 02, 2008

  • robert233 Apr 04, 2008

    Vic33

    here is your code

    on (release) {StopBtn.onRelease = function () {
    trace ("pause");
    };
    }

    try this code



    StopBtn.onRelease = function() {
    stop();
    }

    StopBtn is your stop button (normal sintax is Stop_btn)

    the action is "onRelease"

    the function is "stop"

    so what this new code is saying is -

    when the StopBtn is released, the action script will run a function called :"stop"

    and stop your movie from running.



    if you want, send me your complete action script, and or flash file to rcarlo233@yahoo.com and i'll take a look at it for you.



    a great tool for learning flash is Learn Flash . com

    they are awsome videos



    good luck

    bob

×

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2 Answers

ACTIONSCRIPT 3.0 BUILDING SIMPLE WEBSITE FLASH CS4


you can try this site http://www.xnynz.com/.
I built my own website from this site.
It provides best features.

Oct 12, 2009 | Adobe Flash Pro CS4 for PC

1 Answer

Creating youtube video in flash for only play and pausethe video


try downloading and installin flash player 8 or update ur graphic accelerator.......thn q...

Sep 12, 2009 | Macromedia Graphics Publishing, Design &...

1 Answer

Actionscript to playback to a certain frame


you need to make sure that your button is a button not a movie clip.
then enter the following:
on (release) {
//Movieclip GotoAndStop Behavior
_root.gotoAndStop("5");
//End Behavior

}

were it says 5 change to another frame number also change stop to play if you want it to auto play.

Try action script 2.0 it is easier to use:

First click on your symbol and got the behaviors menu
Then click the + symbol movie clip goto and stop or play
then click absolute and type in the frame you want



Jul 01, 2009 | Macromedia Flash MX

2 Answers

Flash animation & actionscript


You need flash to create the animations,once done you need to save it and then insert it in dreamweaver and from there create the links...Please note the use of time frames to implement motions..

Jun 25, 2009 | Macromedia Flash MX

1 Answer

Enlarge the image in scrolling sldeshow


post your file to trmmedia.com admin for free flash help/fix

Dec 12, 2008 | Macromedia Flash MX

1 Answer

Actionscript and buttons


please clarify.
in AS2.0 you can use
on(release){
playingClipName.stop();
}
or in AS 3.0 u need to addEventListener to a button like
btStop.addEventListener(MouseEvent.CLICK,dothisFunction);
function dothisFunction(evt:Event){
playinClipName.stop();
}
Thats it.

Sep 29, 2008 | Macromedia Director MX 2004

2 Answers

Flash actionscript


I WANT SUITABLE SOFTWARE FOR PLAYING THE VIDEO/AUDIO RECORDED IN THE NOKIA-3110C MOBILE. PLS LET ME KNOW ANY FREE DOWNLOAD IS AVAILABLE LIKE WINDOW MEDIA PLAYER

Jul 10, 2008 | Adobe Photoshop 7.0 for PC

10 Answers

Download


i want to Adobe Flash 8.5

May 22, 2008 | Macromedia Flash MX Pro 2004

2 Answers

Movie clip script problem


hi rananjay is here the link is given bellow ,where you find your solution http://www.actionscript.org/resources/articles/538/1/Creating-a-Scrolling-menu/Page1.html

Sep 16, 2007 | Macromedia Flash MX

2 Answers

Uploading Camtasia video to web page


If you are using a Flash then you can create your own flash play, pause, stop and exit button by flash using action script so that when you upload video through website it will work. if no idea with action script then refer to this site www.actionscript.org .... Thank you

Apr 11, 2007 | TechSmith Camtasia Studio for PC

Not finding what you are looking for?
Graphics Publishing, Design & Multimedia Software Logo

Related Topics:

636 people viewed this question

Ask a Question

Usually answered in minutes!

Top Graphics Publishing, Design & Multimedia Software Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18299 Answers

Cindy Wells

Level 3 Expert

4758 Answers

kakima

Level 3 Expert

96576 Answers

Are you a Graphics Publishing, Design and Multimedia Software Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...