ActionScript 3.0 :: Muting Audio Inside A Timeline With A Button AS3
Oct 12, 2009
I have a narrated fla which needs to have an audio mute button so you can mute the audio, problem is I can only find how to do with streaming audio. I need this done off a button where the audio is on a layer inside the timeline.
View 10 Replies
Similar Posts:
Jul 12, 2011
I have a file with a main movie clip called "clip" and inside that I have a couple separate movie clips. One of them has embedded audio and is called "trackPiano". I want to put an action on a keyframe so that when that keyframe is reached, the audio mutes. I think I should be able to use the soundTransform property, but I'm not sure how to go about implementing it.
Also, I'd like to then un-mute the audio for that mc when I go to another specific keyframe.
View 8 Replies
Jul 19, 2011
I have a file with one main mc called "clip" that contains 9 different embedded audio tracks (all inside their own separate mc) on the first keyframe. They span the entire length of the mc - 10 frames in this case. Essentially what this does is creates a full song with 9 separate tracks that I want to mute (and unmute) when I arrive at a specific keyframe.I am using a slider (called "aSlider") on the main timeline to navigate between the keyframes.Everything starts out muted and as we progress, tracks are unmuted and the song starts to build. It is working great right now in that direction. However, if I move the slider backwards, it seems to be re-creating the audio clips so that I am overlaying more and more audio on top of each other.. which is quite the mess. Here's the AS for the slider.
aSlider.width = 324;
aSlider.move(309, 681);
addChild(aSlider);
[code].....
View 1 Replies
Oct 18, 2007
How are you all going?? I'm having a bit of trouble with muting some sound and unmuting it with the same button.[code]What i'm trying to do is mute the sound when the button is clicked...and then when it's clicked unmute the sound..I was thinking about using an if statement to check if the volume was set to 0 and if so change it to 100 and visa versa.i'm muting the sounds on the root level of my swf...
View 1 Replies
Oct 26, 2007
how to mute a audio embedded in a button's timeline from the main stage
View 1 Replies
Jan 1, 2011
So from the headline u know that i want to do but i don't know how to do it!
ActionScript Code:
/// activate the mc with the button from the main Menu
mathSecondMenu.addEventListener(MouseEvent.CLICK, otvoriVtoroMenu);
[Code]....
the problem is that i can get to the button from the first event, but i can make the Mc "proba" to go to "math_basic"!
View 8 Replies
Mar 11, 2010
Because the player optimizes framerate, antialiasing etc dependent on the performance capabilities of the platform upon which it is running, it was nearly impossible to ensure animation syncronization w/ audio. If the audio were on the timeline you could set sync params to stream, but if the audio is loaded programically forget it .. well until AS3 ..The following code throttles the player framerate to lock step the animation to the audio .. not perfect but the principal works ..
View 1 Replies
Oct 25, 2009
The images for animation load okay. The sound loads okay. But the animation images need to be inserted in coordination with the sounds, which is difficult using only the ears There is a visual graph of audio levels in the library window, which I have seen appear in the timeline also but only momentarily. I do not know how to keep the audio graph on the timeline so as to know where to put the images. I can keep the graph open on the little library window when it is open but not on the timeline. how to keep the graph open on the audio track while I work on the image tracks.
View 1 Replies
Aug 13, 2011
I have a movieclip inside the OVER on a button, right now I have an animation that causes the button's brightness increases from 0 to 10 over 24 frames and then come stops because of a stop (). I now intend to add an animation after stop () which gets the button's brightness goes back to 0 again when you no longer hold the mouse over the button. I would therefore like to make some kind of mouseOut event that allows Movieclip go to the next frame. I have tried to insert a target path but it seems that it can't reach the movie clip inside the button.
View 1 Replies
Oct 28, 2010
First off, I have a movie clip called mc_instructions. Inside the movie clip, about 940 frames into it, a button appears called btn_ready. I need this button to bring me to frame 3 on the main timeline when clicked on.
View 1 Replies
Jan 31, 2009
I created a Movie Clip with a button inside it. The Movie Clip contains simple animation within its timeline. I dragged the Movie Clip to the main stage and tested the movie/ My goal is to have the button start the animation inside the Movie Clips timeline but it is not working.The Movie Clip instance is named 'film_mc' and the button inside it is named 'first_btn.' The frame is labeled 'one'. I tried these two Action Scripts that I put on the main timeline. Where am I going wrong?
film_mc.first_btn.onRelease=function(){
film_mc.gotoAndPlay("one");
}
[code].....
View 1 Replies
May 5, 2011
I have a scrollPane on my stage, and I have a movieClip inside of it with a bunch of buttons. When you click on one of the buttons, I need it to gotoAndPlay a frame label on the main timeline. So far I cannot get this to work.
View 6 Replies
Jan 1, 2010
I create a movieclip button, and I want to change main timeline from it. what should I do ?
Is it useful to use MovieClip(root).gotoAndPlay(Is there any other way to change main timeline?
View 6 Replies
Oct 4, 2010
I'm having a bit of a hard time with calling a function in the main timeline through a button in a movieclip. The mc is in the main timeline and in it I added a button with this.removeMovieClip(); and so far it works, but when I try to call a function from the main timeline it just doesn't seem to work.
View 13 Replies
Mar 10, 2010
I have a movie clip on the main stage- inside that movie clip is a button- I want that button to contol a function on the main timeline-
example: Button Script
closeAll_btn.addEventListener(MouseEvent.MOUSE_DOWN, goCloseAll);
function goCloseAll(e:MouseEvent):void {
****don't know what to put here to activate "closeAllOpenMovieClips" function on main stage****
}
example: Main Stage Timeline Script
function closeAllOpenMovieClips():void { trek_mc.gotoAndStop(1); lost_arts_mc.gotoAndStop(1); rain_mc.gotoAndStop(1); vintage_mc.gotoAndStop(1);}
***don't know if I need more script on Main Stage Timeline that just "function" ***
View 5 Replies
Mar 16, 2012
On the main timeline I have a movie clip called clock_mc and playBtn playBtn is placed in the center of clock_mc When you press playBtn clock_mc starts playing
playBtn.addEventListener(MouseEvent.CLICK, playClock);
function playClock(event:MouseEvent):void
{
if (event.target == playBtn)
[Code].....
I've tryed to placed the replayBtn on the stage on the main timeline and I've set it up to replayBtn.visible = false; And then I add replayBtn.visible = true; to last AS frame of clock_mc but it wont work Even when I put the button physically to the last frame of clock_mc it will not work either.
View 3 Replies
Jan 31, 2012
Hiding Button on Main Timeline from inside separate Movieclip
View 1 Replies
Nov 3, 2004
I've created a movieclip with buttons inside that I want to use to navigate to different scenes on the main timeline. I have created a function() that loads the button movieclip into the main timeline, but if I try to write a function() to activate the button and move the main timeline to a different scene/frame label it doesn't work. I have tried various things:
navBack_mc.book_btn.onRelease = function() {
_root.gotoAndStop("book1");
}
I put the code above on the main timeline. It doesn't seem to work. Basically, I could put just an on(release) handler on the buttons, but I wanted to try to keeping all the AS in one place if I can.
View 7 Replies
Nov 3, 2004
I've created a movieclip with buttons inside that I want to use to navigate to different scenes on the main timeline. I have created a function() that loads the button movieclip into the main timeline, but if I try to write a function() to activate the button and move the main timeline to a different scene/frame label it doesn't work. I have tried various things:
navBack_mc.book_btn.onRelease = function() {
_root.gotoAndStop("book1");
}
[code]......
View 7 Replies
May 11, 2011
ive made a simple game for a uni project, when you get game over a movieclip comes up and inside the movie clip there is a button to restart the game. how to i code the button inside the movieclip to gotoAndPlay to frame 1 on the main timeline?
[Code]...
View 4 Replies
May 13, 2005
I'm using the preloader like the one rhamej posted here:[URL]The part of the code I need help with is as follows:
[AS]
//fire the MovieClipLoader and attach the listener to it
var container1:MovieClipLoader = new MovieClipLoader();
container1.addListener(mclListener);
[code]....
I realize the code is wrong. I wondered if it was possible after loading an external .swf ("1_movie.swf") within the container, if you could then press a button (enter_button) located within the external .swf ("1_movie.swf") , and use the preloader code to load another external .swf on release ("tree20.swf"). I'm having trouble because the preloader code is in the main timeline of my main flash file ("index.fla"), and I don't know how to make the preloader code recognize the button located within the external .swf, and use it to load another external .swf within the same movie clip.
View 3 Replies
May 13, 2005
I'm using the preloader like the one rhamej posted here:
[URL]
The part of the code I need help with is as follows:
[AS]
//fire the MovieClipLoader and attach the listener to it
var container1:MovieClipLoader = new MovieClipLoader();
container1.addListener(mclListener);
[Code].....
I realize the code is wrong. I wondered if it was possible after loading an external .swf ("1_movie.swf") within the container, if you could then press a button (enter_button) located within the external .swf ("1_movie.swf") , and use the preloader code to load another external .swf on release ("tree20.swf"). I'm having trouble because the preloader code is in the main timeline of my main flash file ("index.fla"), and I don't know how to make the preloader code recognize the button located within the external .swf, and use it to load another external .swf within the same movie clip.
View 3 Replies
Feb 7, 2011
I'm looking for an animation timeline or video/audio timeline ui or maybe like a gantt chart thing that can be adjustable. It's basically draggable icons in tracks and bars that you can adjust the size of.
View 0 Replies
Jun 10, 2009
why the timeline inside these movie clips and the timeline on the main scene have to correspond to work. [URL]
View 1 Replies
Oct 23, 2009
I have a button inside a movieclip, to which I would like to apply a rollover function. When rolled over, this button (inside MOVIECLIP 1) would make (MOVIECLIP 2) jump to second frame. I'm using Flash 8.This is turning onto a real headache for me, since i've searched every single forum and thread concerning this matter, and nothing seems to work.
View 7 Replies
Aug 25, 2009
I have a swf I am loading in and I need to be able to mute the sound of those soundChannels in the keyframes inside of the other swf. I have a mute button that I am toggling its visiblity on and off, one for mute one for sound. I need to be able to access the sound clip inside the external swf.
View 3 Replies
Jan 28, 2010
Is there a way to scrub audio on the timeline in Flash?
I'm trying to sync a soundtrack with animation and need certain sections to match up.
View 1 Replies
Apr 19, 2010
I'm having an issue that I never ran across using AS2, and I'm completely baffled. I'm making a program that is going to be, more or less, an interactive training program. Each frame is a separate "page" of training, and has its own unique audio clip that plays.
The frames are laid out like this: On the main timeline, there is a movie clip object. Inside that object is the interface the user interacts with, along with a movie clip that contains the audio, set to stream (I have it set to stream because they sometimes have to move around in the training within the timeframe of that audio clip. If I have it set to event, I can't have them skip a section of the audio clip, etc)
Things have been going well, but I just added a new layer to my main timeline, containing a navigation bar (a few movie clips), and all hell has broken loose. Every single audio clip starts playing at once, right from the beginning, even though the frames that contain those audio clips haven't even come up yet.Are audio clips used completely differently in AS3 than AS2? I've figured out the SoundMixer class, and I have SoundMixer.stopAll(); on the first frame of each movie clip that contains the audio clips (the audio clips start on frame 2) as a safeguard, but man.
View 2 Replies
Nov 5, 2010
I am attempting to complete a learning module that contains audio voice over in CS4...However, I am unable to view the audio waveform on the timeline. The sound has been added but I can't see the waveform..
View 5 Replies
Aug 17, 2011
I'm trying to get my timeline to move on to the next frame when the audio has finished playing. The audio is in the timeline. I'm new to all this so please be gentle; i am a reformed Director user.
import flash.media.SoundMixer;import flash.media.SoundChannel;import flash.media.Sound;
private var channel:SoundChannel;
stop();
[code].....
View 2 Replies