ActionScript 1/2 :: Stop And Continue Movie With Button Click?

Jan 13, 2010

I am a novice and have just completed my first animated movie. The movie is currently looped and I have created and invisible button the size of the frame with the intention that a user can click on the movie image to stop it and on second click continue the movie from where it stopped. I have used the AS event handler method to stop the movie. I have tested it and it works. But I cannot figure suitable code to restart the movie.

Two questions;
1. Am I going about the task the right way? (should I use two buttons, one stop, one start)?
2. If my approach is feasible, can anyone give me the correct AS to re-start the movie and put me out of my misery please?

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Make A "continue" Button Appears After Movie(flv) Stop

Feb 10, 2009

My work need me create this flash:

When movie(flv) stop, one "continue" button appears, so you can click on it to go to next page.

View 9 Replies

ActionScript 3.0 :: Continue The Program When Click A Button?

Nov 28, 2009

i want to continue my program after user click on a button.

ex: when click on group1 button assign groupVal = 1 and continue the program.

View 0 Replies

ActionScript 2.0 :: Stop Movie When Click On Different Sound Button?

Aug 6, 2007

I have a flash animation with three different icons which play individual audios.

In one of the movies called 'bird' that I want to stop, I have in the first frame following code.

Code:
x = new Sound();
x.loadSound("mp3/cocky.mp3", true);
which works fine.

This movie 'bird' is then inside another movie called 'container' , any everything then sits in one scene.

In the movie 'container' I have three buttons which play individual sounds using same 'x.loadSound("...' method.

You first see and hear the animation of the 'bird' and it's sound playing straight away. After a 30 sec sound and the animation stops.

All working so far fine up to this point... But What I need is , when the user clicks on one of the other buttons to play the sound WHILE the 'bird' is still playing, I want to stop the 'bird ' animation.

At the moment it stops the sound of the 'bird' but NOT the 'bird' animation. Naturally If I wait 30 sec 'bird' animation stops and no problems there after. Only if and when user clicks before the 'bird ' animation is the problem.

View 12 Replies

ActionScript 2.0 :: After Movie Clip Goto And Stop In Another Frame On Click Of Button

Feb 10, 2011

i am doing a simple project in which i have 2 frames in the main time line and a movieclip in the first frame and a button.i have something else in the second frame.when i click the button the movieclip should start after it ends the timeline should move to second frame and stop.

View 7 Replies

ActionScript 2.0 :: The Button And The Movie Clip Draggable And The Button Continue To Function?

Oct 25, 2004

Why is it that when i have button in a movie clip and that movie clip is a draggable object the button becomes inactive? How can i have both the button and the movie clip draggable and the button continue to function. below is the script i have for the draggable movie clip, which has the button contained within that:

[Code]....

View 6 Replies

ActionScript 2.0 :: CS3 Movieclip Button - Click To Play, Click To Stop?

Jun 21, 2010

I am building a flash interface and I would like a menu where it is hidden to begin with (just a tab). You click the tab to expand it, and click again to collapse it. I've made a movieclip with animation of the menu opening up and closing, but I can't seem to work out how I'd go about making the movieclip open and close properly.

View 4 Replies

ActionScript 3.0 :: Multiple Button Functions - When Click The Button, The Mc Does Not Stop Playing And The Text Does Not Show Up?

Nov 8, 2009

I'm designing an interface for a class, and the buttons that I am using all have multiple functions.For example, when the story button is clicked, I need the mc to stop playing and change to text (in the same window/screen, just no mc playing).  The mc is 31 frames long, but if there's a way to just make it loop continuously until told not to, Currently, my code looks like this:

stop();
story_btn.addEventListener(MouseEvent.CLICK,story);
function story(event:MouseEvent):void { gotoAndStop(32);}credits_btn.addEventListener(MouseEvent.CLICK,credits);[code]...

When I click the button, the mc does not stop playing and the text does not show up. 

View 6 Replies

ActionScript 3.0 :: Click On The First Button Loads Ok But When Click On Second Still Showing The First Movie Clip In The Back

Dec 14, 2011

I have read all threads and can not find a solution but i am not somebody with a lots of knowledge about actionscript so here is my problem i am using this script .

[code]....

the problem is that when i click on the first button loads ok but when click on second still showing the first movie clip in the back ,,,,, i have try everything without luck ,,,, i guess i need to keep reading but will like to find an answer to this situation ,

View 3 Replies

ActionScript 2.0 :: Make The Movie/survey Appear At The Top Of The Html Page When The User Hits The "continue" Button?

Apr 13, 2005

i am working on a survey form in MX-04 Pro. I have the main .swf file embedded in an HTML page. The document's width is longer than the viewable screen so the person taking the survey has to scroll down to answer the remaing questions and hit the "continue" button to proceed to the next page/frame in the movie. When the user hits the "continue" button the next frame in the movie appears but the HTML page is still scrolled to the bottom. Is there any ActionScript I can inclued in the frame or continue button to make the movie/survey appear at the top of the html page when the user hits the "continue" button?#2

Is it possible to make the items in a List component sort randmoly? or maybe alternate between "ASC" & "DESC" order? Furthermore, there would be an "Other" option included in my list but I would like that to remain at the bottom of the list while the other items in the list were sorted randomly?

View 2 Replies

ActionScript 2.0 :: Continue Timeline After Stop?

Dec 4, 2004

how to do more AS than tweens.I have this script on my MC on frame one


Code:
onClipEvent(enterFrame) {
speed = 17;
this._x -= speed;
}

i have a MC moving across the stage, i tried stopping it with a delete onenterFrame but it will jump and not stop.. my second quesiton is, after i get it to stop, how do i continue the timeline and not repeat frame one,

View 5 Replies

Play And Stop Movie On A Key Click?

Apr 7, 2009

I just want to play and stop my movie on a key click.I don't want to have the drop menu open and have the user click 'play'. Isn't there some way they can just press any key and the animation will progress forward?

View 4 Replies

ActionScript 3.0 :: Stop Movie On Click?

Jul 9, 2009

I created a slideshow in flash cs4 that continues to play infinitely. I am looking for a strip of coding to stop the movie on a thumbnail click, so the pictures can just be browsed through instead of playing automatically. The problem is, if I set autoplay to false, then it doesn't play at all. I want it to play automatically until someone clicks on a thumbnail.The coding needed is below.
 
var auto_play:Boolean = true; // true (OR) false
var auto_play_duration:Number = 6400; // 1 second equals 1000
var folder:String = "photos/";

[code]......

View 1 Replies

Professional :: Stop Music With The Click Of A Button?

Oct 13, 2011

I have a Start button on the title screen. I want the music to stop when you click on the start button. Also, I want for another music to start when you go to the next part of the animation and to stop when you click on another button.

View 5 Replies

Stop Movie Then GotoAndPlay On Mouse Click

Apr 9, 2009

I have a presentation which is one movie clip in one frame on the main timeline. The movie clip has quite a lengthy timeline. What I need to do is stop the movie at a frame then play on mouse click and in some cases gotoandplay, then stop again. There are no other movie clips inside the main movie clip and I want there to be no buttons. Just proceed to the next bit on mouse click.

View 2 Replies

ActionScript 3.0 :: Start Stop Movie On Click

May 5, 2010

i have a plane with movie material on it, im trying to make when i click on that plane. im trying to make if i click on that plain and material is playing that stop play and if is not playing that srarts.may plane is named 'film' and material on it 'movieAssetMaterial2', can someone explain me how to do it? i have tryed to make it myself but cant find out how.[code]

View 1 Replies

ActionScript 3.0 :: Start Stop Movie On Click?

May 5, 2010

i have a plane with movie material on it(im using papervision), im trying to make when i click on that plane. im trying to make if i click on that plain and material is playing that stop play and if is not playing that srarts.

may plane is named 'film' and material on it 'movieAssetMaterial2'

here is the code( it is the whole code of cubic panorama that im vorking on)

Code:
package {
import flash.display.*;
import flash.events.*;
import flash.ui.Keyboard;

[Code]....

View 1 Replies

ActionScript 3.0 :: Music To Stop And Continue Once Leave That Page

Oct 11, 2011

I created a flash site with four pages with music playing in the backround. on one page I want the music to stop and continue once you leave that page.

View 2 Replies

ActionScript 3.0 :: Play Movie Clip ONCE Then Stop (on Click)?

Dec 17, 2009

i have a movie clip symbol on the stagei have set up a "CLICK" event listener. in the nction it saysCode:MC.play();how can i make it stop after playing once? WHY IS THIS SO HARD!i tried putting a stop(); inside the movie clips last frame but that did nothing

View 3 Replies

ActionScript 3.0 :: Stop Only Flv Video Sound And Continue The Bg Music To Play

Sep 3, 2010

I made a webiste with bg sound home, portfolio, gallery, contcts. This  are the links. when click portfolio, which contain a flv file, when  clicking the flv file bg music stop and video will play smoothly.But if i  navigate to other links the sound from the flv remains their and my bg  music not playing also.. one code SoundMixer.stopAll();  i got this code  b4, it vil stop all sounds... i dnt need to stop the background music, i  need to stop only my flv video sound.. there's a bg music playing, when  entering to the portfolio section thers a flv video vth sound. i can  stop all other sounds ven playing this flv video but i cant stop this  sound ven navigating to other sections and i need to continue the bg  sound ven navigating to other sections...

View 1 Replies

ActionScript 3.0 :: Stop At Frame 1 And Wait For Click On Start Button

May 7, 2010

I wrote the following code to have flash stop on frame 1 and wait for the click on the start button. I will use the animation in Connect Pro and without a Start button, the audio starts before the video. Here is the code and following is the error I get in the Compiler when I play the animation. The button does have the instance name play_btn :

play_btn.addEventListener(MouseEvent.CLICK, buttonClicked);
function buttonClicked(event:MouseEvent):void {
gotoAndPlay(2);
} stop();

The error I get is:
Location: Scene=Scene1, layer=actions, frame=1, line 3
Description: The class or interface 'MouseEvent' could not be loaded.
Source: Function buttonClicked(event:MouseEvent);void

View 3 Replies

Professional :: Link Audio To Button To Make It Play And Stop On Click?

Mar 2, 2010

I am trying to connect audio to the button so when I click on the button music it starts playing and when clicked again music stops.

View 5 Replies

ActionScript 2.0 :: Click On A Button Preloader Shows Up But Doesn't Stop To Load The Content?

Mar 4, 2006

I just tested out my site in Firefox and IE. Everything works the way I want it to in Firefox but in IE I'm having trouble. When I click on a button my preloader shows up but doesn't stop to load the content, it plays straight through and then my movie pops up. Does anyone know why this might be happening? I've never encountered this problem before.

[url]...

Web Design, Illustration, Resume and Downloads are all I have working so far.

View 4 Replies

ActionScript 3.0 :: Unloading A Movie With A Button Click From The Loaded Movie?

Oct 27, 2010

I have a movie clip (a) with a button that will load movie clip (b) when clicked. It loads (b) on top of (a) which is exactly what i want.

Now the problem. I have a button in (b) that I want to use to close (or unload) (b).

This is the code in (a) that loads (b):

Code:
spinner_mc.production.addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickHandler2);
function doubleClickHandler2(event:MouseEvent):void {

[Code]....

View 3 Replies

ActionScript 2.0 :: Movie To Stop At The Current Frame Whenever Click And Hold The Mouse Down Within The Area Of The Container?

May 4, 2005

I was certain that this type of problem would have been previously discussed here or in a tutorial. I have looked quite a bit and could not find anything that puts all the pieces of my puzzle together.As the movie is playing (looping), I would like the movie to stop at the current frame whenever I click and hold the mouse down within the area of the container. Furthermore, I would like to be able to scrub the movie backward if I drag my mouse to the left within the container and as I reach the left end of the container, the movie is at the first frame. And similarly, I would like to scrub forward if I drag to the right within the container and as I reach the right end of the container, the movie is at the last frame. On top of this daunting task, I would like the movie to resume playing from wherever I have released the mouse.

Here is a file that I have started and I am pretty much at a loss as to where to go now. I know it has something to do with where the mouse is relative to either side of the container, but...how does one get it to work?Basically, I would like to emulate the functionality of the QuickTime Player - the one where you can grab the slider and drag it left or right to scrub in either direction and then upon release of the slider it resumes playing.I do not understand the media components in MX 2004, maybe this type of thing is "easy" to program in to one of those modules?

View 1 Replies

ActionScript 3.0 :: Flash - Play Movie Clip With The Button Click Without Playing All The Movie Clips On The Main Timeline

Apr 26, 2009

I'm trying to make a flash website that has clickable buttons that will play different movie clips. But I dont know how to make it to just play the movie clip with the button you click without playing all the movie clips on the main timeline.

View 1 Replies

ActionScript 2.0 :: Reverse The First Movie When Click The Button For The Next Movie?

Jul 28, 2002

When I loadmovie and load another can I reverse the first movie when I click the button for the next movie..

View 2 Replies

ActionScript 2.0 :: Bar - Play And Stop Button To Play And Stop Frames In A Flash Movie

Dec 1, 2004

give me the actionscript for a bar that has a play and stop button to play and stop frames in a flash movie. i would be gratefull if you could as i am really stuck

View 2 Replies

IDE :: Continue Movie Clip After Rollover?

Nov 24, 2009

I am working on doing a clickable menu in flash cs4 and i have made my movie clips that animate each menu item on rollover (I did this by putting the movie clip into the "over" state inside the button which resides on my main scene)When I test it that all works fine each movie clip plays on rollover. But when I roll off the button it cuts the animation short.

What I want it to do is continue the movie clip after I take my mouse off the button and hold in that end frame until I have rolled over another button. But still I want it to play through the movie clip if I roll off one button and onto another. So if someone rolls over all the menu buttons they each play all the way through but will disappear after end frame and only the last button that i have rolled over will remain at last frame of its animation.

View 6 Replies

ActionScript 2.0 :: Music To Continue Playing But The GetURL Function Seems To Stop The Music

Dec 13, 2005

When the movies performs the getURL action, I want the music to continue playing, but the getURL function seems to stop the music at frame 152 (where the getURL action is placed), when I wanted the music to continue to frame 257 (the end of the movie). I hope I've explained this clearly

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved