ActionScript 2.0 :: Play And Pause MovieClip With Sound Effect

Nov 16, 2011

I have a movieclip. And I try pause n play together with sound. But I can't do it. This my code in one frame just play pause movie clip without sound..

MC_play.onRelease = function(){
hal_satu.play();
sound1.play(sound1.position);
} MC_stop.onRelease = function(){
hal_satu.stop();
sound1.stop();
}

1. And must fill the sound in movie clip or in frame?
2. How I can play n pause the sound with code?

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Flash - Add A Play/pause Btn That Will Pause Both Pictures And Sound?

Dec 16, 2010

I have a timeline of 30 frames, each it's own mc (page01_mc, etc.). In each mc I show a picture or two and hear narration.I have a first, prev and next nav on the main timeline. I need to add a play/pause btn that will pause both pictures and sound. I assume I do that in each mc, but do not know where to find the code.Here is what is in each mc now:

var mySound:Sound = new Sound();
mySound.load(new URLRequest("english/Intro01.mp3"));
mySound.play()

View 1 Replies

Actionscript 3.0 :: Flash - Play And Pause Add Effect?

May 19, 2010

layer 1 --> an embeded video
layer 2 --> an invisible button

**Here is my code in layer 3**

stop();
var vid:Boolean = true;
function vid_event(event:MouseEvent) {

[code]....

I already get the play and pause fuction (that's all i need). I just want to add an image to show when the video still not playing in and pause. If the video played the image will disappear and if pause the image will appear.

View 1 Replies

ActionScript 3.0 :: Play / Pause Sound Channel?

Jan 8, 2010

The pause button in my MP3 player resets the track to the beginning, there is something wrong with my sound channel because when i trace the position it is always zero.[code]...

View 1 Replies

ActionScript 2.0 :: Pause And Play Sound Button?

Dec 24, 2011

How to add both pause and play sound button in a single button.. on play it shows the image pause and on pause it shows the image play.

View 4 Replies

ActionScript 2.0 :: Play And Pause Sound Buttons

May 21, 2004

Anyway, you see that the sound is on a seperate layer, with gotoandplay(1); or w/e on the end... so it indefinetely loops if left to it's own devices.

Now the actions for the play arrow button are:

[Code]....

Techincally, as to my VERY BASIC A/S knowledge, this should work right? I also tried instead of "on (release)" I tried "onClipEvent (mouseUp)"

View 8 Replies

ActionScript 2.0 :: Play And Pause Sound Buttons?

May 21, 2004

you see that the sound is on a seperate layer, with gotoandplay(1); or w/e on the end... so it indefinetely loops if left to it's own devices.Now the actions for the play arrow button are:

on (release) {
play();
}

and the actions for the stop square button are:

on (release) {
stop();
}

Techincally, as to my VERY BASIC A/S knowledge, this should work right? I also tried instead of "on (release)" I tried "onClipEvent (mouseUp)"but that didn't work either?

View 8 Replies

ActionScript 3.0 :: Current Sound Volume Pause/Play?

Sep 15, 2010

I have a Sound that is playing in the background of my movie, I am using Tweenlite to tween the volume of the sound at various point along the timeline.Now I have been asked to ad a pause button, which I have implimented and works(pauses the sound at the pausePoint), but when I resume the animation the sound I have no sound.I think my problem has to do with Tweenlight not updating the current soundvolume as when I trace the soundransform volume value it is 0 ?

ActionScript Code:
var myIntroloopTransform:SoundTransform = new SoundTransform(0);
// Toggle Pause

[code]....

View 1 Replies

ActionScript 1/2 :: Pause, Stop, Play A Sound That Is Loaded From The Other .swf File?

May 6, 2009

Pause and Resume external SWF sound filesI have this code that plays the sound through linkage. It reside in scene1.fla -> scene1.swf.

var mc:MovieClip = this.createEmptyMovieClip("mc",1);var myLoop:Sound = new Sound(mc);myLoop.attachSound("bg_sound");myLoopVolume=0;myLoop.setVolume(myLoopVolume);
mc.onEnterFrame = function () {  if (fadeIn01==1) {  

[code].....

View 1 Replies

Actionscript 3 :: Flash Play/Pause Sound Toggle Button?

Sep 11, 2010

I've googled and googled but got no where or outdated tutorials. Anyone know how to make it so I can toggle audio with buttons using ActionScript 3 on Flash?

View 2 Replies

ActionScript 3.0 :: Sound - When Press Stop Then Play It Only Plays From The Last Pause And Not The Beginning

Apr 26, 2009

i'm habing abit of problem with this code, its supposed to play pause and stop, the problem being that when i press stop then play it only plays from the last pause and not the beggining how to get it to play from the start after the stop button is pressed

[Code]...

View 1 Replies

Make Sound Effect Play On Collision?

Jun 3, 2010

Im an aspiring flash game developer struggling with a bit of code in my upcoming game, I want to play a sound(A "ding") everytime the main character touches a cookie on stage. The main character follows the mouse cursor, and the cookies fall down from the sky.

I have scripted the cookies main class, with this function(which works fine)
private function eFrame(e:Event):void{

Code:
private function eFrame(e:Event):void{
this.y += 3;//move the bell slowly downwards
if(this.hitTestObject(_root.mcMain)){//if this touches the main character
_root.mainJumping = true;//make him jump

[Code].....

And I was hoping it would go into the library and play the sound bit named "bellSound" but it doesnt do this, instead nothing happends, not even any errors under the "Compiler errors" So no im a bit lost, as I do not know how to make this work, so a sound is played when the main character touches the cookie.

View 3 Replies

ActionScript 3.0 :: Play The Movieclip, Then Pause It On The Last Frame?

Aug 27, 2011

i have a swf with a movie clip in it (38 static image frames long)on loading of the swf i would like to play the movieclip, then pause it on the last frame for 1 second then play the frames in reverse then pause it on the first frame for 1 seond and then play the frames in correct order ETC ETC ETC

View 1 Replies

ActionScript 3.0 :: Loading SWF Into MovieClip - Play / Pause Buttons

Aug 14, 2010

I am going out of my mind trying to get this to work. I can do it in AS2 without a hitch - but not AS3. I just need to load an external swf file into an empty movieclip. Then I have 2 buttons play and pause that need to be on the top layer of the new movie and they need to play and pause the loaded swf file. I have tried a number of things and nothing is working.

View 1 Replies

ActionScript 3.0 :: Load Swf Into Movieclip // Play Pause Buttons?

Aug 14, 2010

I am going out of my mind trying to get this to work. I can do it in AS2 without a hitch - but not AS3.I just need to load an external swf file into an empty movieclip. Then I have 2 buttons play and pause that need to be on the top layer of the new movie and they need to play and pause the loaded swf file.

View 3 Replies

ActionScript 2.0 :: Adding Pause / Play Button In MovieClip

Feb 15, 2009

I need to add code to my game. All the levels of the game are in separate frames of a movieclip called 'game'. I need a pause and play button to stop everything going on and then a play button to start it again.

View 0 Replies

ActionScript 3.0 :: Load Swf Into Movieclip / Play Pause Buttons?

Aug 14, 2010

I am going out of my mind trying to get this to work. I can do it in AS2 without a hitch - but not AS3.I just need to load an external swf file into an empty movieclip. Then I have 2 buttons play and pause that need to be on the top layer of the new movie and they need to play and pause the loaded swf file.

View 0 Replies

Flash 8 :: Simple Button Navigation - Play / Pause MovieClip

Apr 15, 2010

I have a movieclip within the main clip called "playPause" which starts with the Pause button shown. When clicked the movie clip moves to show the play button and pauses the current parent movie with the AS "_parent.stop();" when the play button is then pressed the movie plays via "_parent.play();" and reverts back to showing the pause button.

Simple so far. What is getting me is if I add a movie clip within the parent (say some scrolling object) I cannot get the added clip to pause. For example say the "parent" movie clip the playPause moveclip is within is called "intro" and the moving object is called "introObject" which is embedded in a frame along with "playPause"

What I have setup for the playPause buttons is for pausing
_root.introObject.stop();
and playing
_root.introObject.play();

View 1 Replies

ActionScript 2.0 :: Play / Pause Button To Control Loaded Movieclip?

Jun 2, 2010

I am trying to load a movieclip and have it be controlled by a play and a pause button. The load works good and the code for the play/pause works.

I need the "test2" file to load the "ball_mc" file and then I should be able to play and pause the ball as it runs across the screen. I think I need it to be a swf file also, but Flashkit won't let me upload that type of file.

View 2 Replies

ActionScript 2.0 :: Controlling A Movieclip Inside A Swf Seek,play,pause Etc?

Jul 24, 2009

how to add like a youtube type control bar into a swf to control a movieclip inside the swf so i can add any movie clip in and change a few varibles and still have the whole thing self contained inside the swf. I have been looking for about 2 hours now and i cant find any info on what im looking to do has

View 2 Replies

Javascript :: SWF Video With Controls (toggle Sound On / Off And Toggle Play / Pause)

Jan 10, 2011

I'm new to flash and just need to do a simple task but I can't manage to get it to work. I'm trying to import a video (flv) into a SWF container and need to AS functions which should be exposed to JS (using liveconnect or anything else). These two function should toggle sound on/off and toggle play/pause. I dont need any user interface or a full featured player, just these two functions.

View 1 Replies

ActionScript 3.0 :: Click Btton To Play Movieclip And Then Pause On Desired Frame?

Dec 2, 2010

Ive had a search through quite a few forums and message boards but havent quite been able to pin down what I need to do. I'm working in flash cs5 and using AS3

I have a button (bttn1) which when clicked plays a movieclip (bounce), but I would like it to play from frame 1 then stop on a desired frame(say frame 10), so when a second button is clicked (bttn2) it plays from frame 10. Hopefully i've explained it ok...

View 4 Replies

ActionScript 3.0 :: Click Button To Play Movieclip And Then Pause On Desired Frame?

Dec 2, 2010

I have a button (bttn1) which when clicked plays a movieclip (bounce), but I would like it to play from frame 1 then stop on a desired frame(say frame 10), so when a second button is clicked (bttn2) it plays from frame 10.

View 7 Replies

ActionScript 3.0 :: Default Stop To Play MovieClip With Typewriter Effect

Feb 22, 2010

I'm completely new to AS3. Being completely new to actionscripting I found a tutorial on how to create a typewriter effect, which I have successfully made into a movie clip. My problem is that I want to stop the movie for the typewritten text to appear and make the movie pause for a pre-defined number of seconds and hereafter continue to the next scene or frame or whatever is the most easy. The link for the file text.flv: [URL]

View 1 Replies

ActionScript 1/2 :: Make Flash Play Movieclip For Rollout Effect On Button

Oct 21, 2010

I have a movieclip within the "over" section of my button, which contains both an roll over and a roll out animation. My problem is that I cant seem to get flash to play the rollOut animation.
 
I placed the following code in the button itself

on (rollOut) {  this.start_mc.gotoAndPlay("mouseOut");}
 
I tried setting up a function to find when the user rolls off the button but it didn't work either.

View 1 Replies

ActionScript 1/2 :: Sounds Placed On A Movieclip - Saggy And Later On No Sound Will Play

Aug 26, 2009

I have an application in flash actionscript 2.0 that is running with several parts under each movieclips has an animation inside with a voice over. The problem occurs when I test the movie, the voice over/ sounds plays but when I click the pause button and play again the voice over/ sounds, sounds saggy and later on no sound will play.

View 3 Replies

ActionScript 3.0 :: Compiler Won't Let Me Play Sound In A Loaded Movieclip

Aug 19, 2009

I have a very simple class as so[code]...

I'm loading the mp3 from a compiled swf so I don't have to compile it every time, but am having a nightmare playing it.

Even with loader.loaderContentInfo.content, I can't seem to access my play methods.

I've tried all sorts of casting combinations from the parent timeline, but no luck.

View 4 Replies

ActionScript 3.0 :: Alphabet Recognition Game - Randomly Choose A Movieclip To Play The Sound

Mar 16, 2011

I am trying to develop a simple game for kids in which an Alphabet will be spoken and the kid will have to choose the correct alphabet being displayed on the screen. What I have tried to do is that I have saved each of the sound in a seperate movieclip.

how can I develop the code that randomly choose a movieclip to play the sound and then when the kid click on the correct alphabet, it adds the point and if wrong alphabet is clicked, it gives error.

View 6 Replies

Professional :: Sound Play One Time When The Movie Is Tested BEFORE The Mouse Is Even Over The Movieclip Object?

Apr 17, 2010

I am using Flash CS4. To illustrate, I created a new flash file and added a short tick sound to the library. I set the properties of the sound to export to Actionscript and named the class "overSound". I added a Movieclip object to the stage to represent a button and gave it an instance name of "overButton". On frame 1 of the main timeline I added the following code:

[Code]...

View 5 Replies

ActionScript 3.0 :: Nested Movies To Play Consecutively With Play Pause?

Mar 8, 2010

I have several products I want to animate with graphics and text individualy then stack them on a time line for output with play and pause buttons. Is there a tutorial somwhere that shows you how to do this? and how do I stop the entire animation on a frame, I don't understand "not_set_yet"

View 4 Replies







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