Fade in/out library sound?

hi all
having real problems finding anything about fading in and out sound in flash, have searched for 3 days now and found mostly as2 related articles, wondering if you could help me out?
i have the following
var myintSnd:introSound;
var sndintChannel:SoundChannel;
myintSnd = new introSound;
sndintChannel = myintSnd.play();
just wondering how i would fade in this sound using as3?
so that i could maybe reverse the solution, so that on buttonclick the music will fade out ready for the next frame
Ive heard it can be done using timers that increment the volume over time, but havent had much success with them, hope you can help, would much appreciate it
thanks
fonzio

hi and thanks for the reply
yes i used audacity to fade the sound in, so that worked, however i need to have the sound keep looping until a user clicks a button on which i need it to fade out,
can you help?
thanks
fonzio

Similar Messages

  • Fade in/out several tracks with the crossfade tool?

    Can I Fade in/out several tracks with the crossfade tool? I mean without selecting them and then add value...? just like in ProTools just selecting the regions and apply the fade tool???? VIP question

    The Sound Factory Studio wrote:
    Can I Fade in/out several tracks with the crossfade tool? I mean without selecting them and then add value...? just like in ProTools just selecting the regions and apply the fade tool???? VIP question
    No.
    To add crossfades or fade in/outs to multiple audio regions, you must do it from the fade parameter box, either entering numerically, or by clicking and dragging on the numeric value.

  • Fade in/out with external SWFs

    Hi All.. I"m very new to AS in general..
    I'm trying to have a simple slideshow with external SWFs that outomatic and onClick..I achieved it except the abrupt white space after the unloaded clip goes away... I have this code and I'm not getting any errors - but I mut not have it connected somehow because the fade out is still not there... Can someone please please help me with this... I really appreciate any help ahead of thime...
    //Import classes for easier use
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    //Timer
    var slideDuration:uint = 8000;  // or use whatever
    var slideTimer:Timer=new Timer(slideDuration,0);
    slideTimer.addEventListener(TimerEvent.TIMER,autoAdvanceF);
    slideTimer.start();
    var btnA:Array = [one_btn,two_btn,three_btn];
    var previousBtn:SimpleButton = one_btn // use class type of your buttons
    function autoAdvanceF(e:TimerEvent):void{
    nextButtonF(previousBtn).dispatchEvent(new MouseEvent(MouseEvent.CLICK));
    function nextButtonF(btn:SimpleButton):SimpleButton{ // use class type of your buttons
    for(var i:uint=0;i<btnA.length;i++){
    if(btnA[i]==btn){
    return btnA[(i+1)%btnA.length];
    return null;
    //Load external SWF into main
    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/one_btn.swf");
    var target_mc:MovieClip = new MovieClip();
    addChild(target_mc);
    var target_mc2:MovieClip = new MovieClip();
    addChild(target_mc2);
    //load swf to movieClip
    target_mc.addChild(loader);
    //variables that store current content clip and current content indes
    var activeTarget:MovieClip = new MovieClip();
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChildAt(loader,0);
    //Btns universal function (whenver any button is clicked, the loader will be removed
    function btnClick(event:MouseEvent):void {
        if (target_mc.alpha > 0) {
            target_mc.alpha -=10;
        if(target_mc2.alpha < 100) {
            target_mc2.alpha +=10;
    slideTimer.reset();
    slideTimer.start();
        previousBtn = SimpleButton(event.currentTarget);
        removeChild(loader);
        var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
        var myTween:Tween = new Tween(loader, "alpha", None.easeIn, 0, 2, 1, true);
        loader.load(newSWFRequest);
        loader.x = Xpos;
        loader.y = Ypos;
        addChildAt(loader,0);
    loader.addEventListener(Event.ENTER_FRAME, onEnter);
    // Movie level enterFrame event handler that will fade down object 1 (if it's alpha ishigher than 0) and fade up object 2 (if its aslpha is less than 100)
    function onEnter(event:Event):void {
        if (target_mc.alpha > 0) {
            target_mc.alpha -= 10;
        if (target_mc2.alpha < 1 ) {
            target_mc2.alpha +=10;
        loader.removeEventListener(Event.ENTER_FRAME, onEnter);
        trace ("the movie clip is faded in");
    /// Button Listerners
    one_btn.addEventListener(MouseEvent.CLICK,btnClick);
    two_btn.addEventListener(MouseEvent.CLICK,btnClick);
    three_btn.addEventListener(MouseEvent.CLICK,btnClick);

    The Sound Factory Studio wrote:
    Can I Fade in/out several tracks with the crossfade tool? I mean without selecting them and then add value...? just like in ProTools just selecting the regions and apply the fade tool???? VIP question
    No.
    To add crossfades or fade in/outs to multiple audio regions, you must do it from the fade parameter box, either entering numerically, or by clicking and dragging on the numeric value.

  • Fade in/out Ghosting in DV

    Finished upgrading my FCP 4.5 system to FCS 5.1.1 and immediately I have a problem.
    When I create a crossfade or a fade from/to black, the last/first frame ends up with the a ghosted image of the shot I'm fading on.
    image:
    http://img400.imageshack.us/img400/117/picture2ac7.jpg
    I'm working in regular old DV/DVCPRO - NTSC (CCIR 601), captured via Firewire. Lower field dominance.
    The only possible thing that went wrong on the production side of things is that the guy who shot it did so with the wrong audio sample rate (32KHz instead of 48KHz), causing me to get a bunch of messages while I captured. The sound sync is fine, however, and I can't see how that would impact this fading problem in the slightest.
    It's barely visible on my NTSC monitor, but on all my LCDs it's very clear and very annoying.
    Any thoughts? Thanks!
    Aging Powerbook G4 Titanium | Mac Pro 2.66Ghz, 1 Gig RAM   Mac OS X (10.4.7)   iPod 5G, Final Cut Studio 5.1
    Aging Powerbook G4 Titanium | Mac Pro 2.66Ghz, 1 Gig RAM   Mac OS X (10.4.7)   iPod 5G, Final Cut Studio 5.1

    Thanks for the quick reply, guys!
    Adding a slug does definitely help in that the last (or first) frame of the sequence doesn't show the ghosted image.
    However, the ghosted image still "flashes" during a fade in/out from/to a slug. It flashes right at the last (or first) frame of the fade.
    I just don't remember the standard FC fades being like that in 4.5. I'm also on slightly different LCDs than I used to be, but still, it seems strange to me.

  • Looping without Fade in/out clicks

    Hi
    I would like to play a simple sine wave sound continuously so that it lasts one minute instead of the current 500ms. However, when I loop it I get little clicks where the beginning of the sound file fades in/out. The same clicks appear when I copy/paste it, and I don't know how to get rid of them. See attached picture to see what it looks like. Please let me know if there is a way to fix this.
    Thanks
    -Darym

    You need to edit it so that it joins up at a Zero Crossing point. Should be simple if it is a true sine wave, no crossfade should be necessary. Make sure that you have snapping to Zero Crossings turned on and you zoom in far enough to see the zero crossing.

  • How to fade in/out volume in editor?

    We do a lot of multi camera work with kids.  We constantly need to turn off their mics (in post) when not in use because they are rubbing them, coughing, etc.  We turn it up when they talk and off when they're not talking.
    Like this:
    Sometimes it's a bit more complicated than this and I want to get a full scren version of just this one track.  So I thought double-clicking on it and bringing up the waveform editor (is that what it's called?) would be just the ticket.  It's very quick especially with hotkeys 0 and 9 to go back and forth.  But I can't se those handles or the volume line anywhere inside as you can see here:
    How can I do this in the waveform editor?  I know I can do it in the multitrack editor by making the view area of the track bigger by stretching it.  But that's a lot of work when you have 6 kids and each one has 200 up/down points per session. 
    I would like a quick "multi-track view to fullscreen of one track" with one single click or hotkey.
    Thanks for your help!

    Great, Steve.  Sounds good.  I don't like doing anything destructive since we work in a multi-person environment. I'm afraid that with so many people touching the projects, it's easy for a mistake to be made.
    I like your last idea a lot (razor cuts).  Maybe to pick your brain a bit, I would still like to fade these in/out a bit so we don't get the bad background noise (if a mic has it) popping in and out just before/after the person talks. 
    ... Oh, I just tried this.  Do you see any probs with doing something like this to fade in/out?  This would be very easy for us?
    Also, what would you recommend to keep the individual clips from shifting around accidentally?  I know you mentioned muting the other clips, which is a great idea.  But is there another way to do it with cutting out the non-used sections?  I really like that idea better, since you can visually see where a person's audio comes in/out at in Premiere (something that was a bugger there unless you have your waveform expanded very large--but if you do that, you run out of screen real estate for video editing).
    Since there are sometimes 6 mics to sync up to a video recording, if one clip gets bumped here or there, we're in trouble since now there's 20 little clips sitting on a track instead of one long one with up/down keyframes.  Before it would be easy--just slide the whole long clip over to 00:00;00 and you're good.  Now it could get messy.
    I know the mutted tracks would be a solution, but since you're an expert at this, is there a way I can keep things locked in place while having clip-blank-clip-blank tracks?
    Thanks again for your awesome help!

  • Fade in/out bug..!!!

    hello everyone ..recently i just discovered the most annoying bug in logic..so the problem goes like this:
    on my vocal track i create like fade in/fade out on it..when i played it before i close my project those fades still play fine..but when i close it and load my project next time, that vocal track that has fade in like played other tracks sound but only on the fade in section when and it happens on my whole project that has fade in/out on it, so every time theres a fade on it the track like playing other noise...has anyone ever stumbled to this kind of problem..could anyone tell me what should i do in order to avoid this kind of annoying bug..??
    thank you for your time.

    Hey, thanks Sampleconstruct.
    I was getting this bug from time to time too. What I did was shorten the region (first removing the fade) then putting the region back to the original length then re-applying the fade. It worked, but got tedious when it decided to do it on 12 or 16 tracks.
    Your solution worked perfectly and takes a lot less time and frustration when this occasionally raises it head. i wonder what causes the fades to corrupt.

  • How can I fade in/out audio only below a certain frequency?

    I have an MP3 made from a MIDI file in which all instruments are unfortunately in a single track. I want to fade the tom part in because I thought it would be easy considering its obvious separation from the marimba part in the Spectral Pitch Display. How can I fade in these lower sounds only without affecting the higher marimba sound?

    You need to go back to the MIDI file and adjust the level there - you can't do this after the event unless you use something like the incredibly expensive Melodyne. This can achieve harmonically related event isolation, which Audition doesn't do. Toms don't just exist at one frequency; they have a harmonic spectrum and if you don't capture all of the harmonics, you won't be able to alter the relative level of all of them - which is what you'd need to do. Otherwise it will sound completely wrong.

  • I need help with XML Gallery Fade in out transition. somebody please help me :(

    I need help with XML Gallery Fade in out transition. somebody please help me
    I have my post dont want to duplicate it

    The problem doesn't lie with your feed, although it does contain an error - you have given a non-existent sub-category. You need to stick to the categories and sub-categories listed here:
    http://www.apple.com/itunes/podcasts/specs.html#categories
    Subscribing to your feed from the iTunes Store page work as such, but the episodes throw up an error message. The problem lies with your episode media files: you are trying to stream them. Pasting the URL into a browser produces a download (where it should play the file) of a small file which does not play and in fact is a text file containing (in the case of ep.2) this:
    [Reference]
    Ref1=http://stream.riverratdoc.com/RiverratDoc/episode2.mp3?MSWMExt=.asf
    Ref2=http://70.33.177.247:80/RiverratDoc/episode2.mp3?MSWMExt=.asf
    You must provide a direct link to the actual mp3 file. Streaming won't work. The test is that if you paste the URL of the media file (as given in the feed) into the address bar of a browser it should play the file.

  • Help with transitions and fade in / out

    I need help. I need some kind and infinitely patient personto explain, step by step, in simple words of less that one syllable how I can fade in my movie and how I can apply transitions between the clips.
    I’ve tried, oh have I tried. I’ve read the manual, I’ve watched three video’s on youtube (they were bad!), found a lot of quality online help but I still don’t get it.
    What I do get is random results.  Like my movie fades in once then it won’t do it again. Like I get the grey transition box but can’t extend the transition beyond0.1 of a second. Like I trim my movie and the transition removes the trim. And so on.
    So if some kind soul could help, or even point me in the direction of transitions made simple I’d appreciate it.
    Many  thanks.

    Transitions and FCE are all about Media Handles.
    Search this forum for mor info, you will find plenty.
    Here's a start:
    https://discussions.apple.com/message/1356445?messageID=1356445&amp%3b#1356445
    This may help for Fade in/out settings:
    https://discussions.apple.com/message/9037985#9037985
    Al

  • Dynamically add a fade in/out transition to a caption when "showing" it from an Action?

    I have a conditional action set up where if things are not correct (text input in two entry fields), I show feedback in a caption box. I figured out how to set the caption box to be initially invisible (via unchecking the Visible checkbox for the caption's properties), and how to show it when this condition occurs. But I 'd like it to also do the traditionall transition of fade in & out when I show it fromt he action. My Advanced Action is executed when the user clicks an "OK" button.
    Any thoughts or advice?

    Yes. Plenty of media on either end. The good news is that trashing the permissions and repairing worked.
    BUT I have a question while these great minds are assembled...When repairing disk permissions the Utility says that to repair permissions on startup disk, start using my OSX install disk, which in my case is the the CD that came with my powerbook. When I tried to startup using that CD, holding down the "c" key on startup, it went into install mode. I told it I did not want to install, set the startup disk as the CD again, and kept looping around in this manner. I am probably missing a step...First question:
    1) Is it in fact necessary to start up from this CD in order to properly repair permissions?
    2) If yes, how do I get away from the install mode and to the disk utility, once the installer pops up.
    Thanks in advance. You guys are lifesavers once again.

  • Individual track start and end times: Fade in & out?

    I can set start & end times for individual tracks.
    Can I also fade in & out?

    You can set start and stop times for individual tracks using Get Info>>Options tab.
    iTunes Preferences>>Playback tab has a crossfade option that you could check out to see if it does what you want on fading in and out.

  • Text fade in/out won't work if a light makes shadows

    I found that text won't actually use a fade in/out behavior if you are using a light that projects shadows.
    Now, that's an interesting thing. I used to notice with drop-shadows in Mo3, the shadow would show up and the fade would be sort of weird since you could see the shadow under while it faded in. It wasn't a very pretty fade since it got dark and muddy first.
    So, now, it just won't let you do it.
    Bug or user error?

    Adjusting the opacity of a text layer forces it's rasterization. This essentially gives it the properties of a 2D layer which aren't affected by lights.
    In order for you to get a cast shadow AND a fade in/out, you must first flatten the text layer. This can be done by selecting the Flatten button in the Text tab of the inspector. Or else you can drop the text into a 3D group and flatten the group from the Group tab.
    Andy

  • Adobe Audition CC 2014 - Fade In/Out to playhead?

    Hello all,
    My question is this: In a multitrack session (or in waveform editor) I want to be able to tell Audition to fade in/out to the playhead. At present, I can set a shortcut to "Clip--Fade In(Out) Normal". However, when I use said shortcut in a multitrack session Audition makes a fade in/out of a predetermined length (appx 16 sec). If anyone knows how to adjust this please let me know, otherwise let this thread stand as a feature request.
    Thanks.

    I think you misunderstand the question. I know how to draw a volume envelope. Here's what I want to do:
    Right now to use the automatic fades that are present on each clip I have to grab the box and draw it out. Now, as I said before, there are keyboard shortcuts that will activate this without having to draw it out. I have done this by going to the keyboard shortcut editor, finding "Clip--Fade In (or Out) Normal" and assigning Alt-G to it. If I use my assigned shortcut now it makes a fade that seems to be set at random, probably in relation to the overall length of the selected clip (longer clip=longer fade). What I would like it to do is exampled by the pic above, simply give me a fade in/out in relation to where the playhead is on the selected clip. This would be similar if one was in ProTools (with a-z mode) and types "D" (Fade from start) or "G" (Fade to end). If this option isn't available it should be on a future release.

  • Out put sound - speker

    pleases help me .. my lap top modle is dm4t  one of spekar is not out put sound under this spekar write dolby  why this problam   ---- my english language is not good

    akbarabooali wrote:
    pleases help me .. my lap top modle is dm4t  one of spekar is not out put sound under this spekar write dolby  why this problam   ---- my english language is not good
    Is your laptop still in warranty? Have you owned it for less than one year?
    If the answer is yes, then Contact HP for warranty repair.
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

Maybe you are looking for