Hi list...

There's a point in my code that a sound object drops the sound for a
split second prior to the moment it begins to fade out, and I'd like to
figure out why that's happening.

Any thoughts are appreciated.
- Michael M.

// on the root:
var tuneSound:Sound = new Sound();

// listener plays a sound object on the root:
_root.tuneSound.attachSound("showBiz");
_root.tuneSound.start();

// then sound is supposed to fade out at the end of a Tween
(onMotionFinished):

function logoTween():Void {
        var yy:Object = new Tween(_root.credits.logo, "_y",
Regular.easeOut, 150, 115, 36, false);
        yy.onMotionFinished = function():Void  {
                var rollEm:Object = new Tween(_root.credits.creditRoll,
"_y", None.easeOut, 960, 0, 100, false);
                rollEm.onMotionFinished = function() {
                        var logo_a:Object = new
Tween(_root.credits.logo, "_alpha", None.easeOut, 100, 0, 90, false);
                        // fade out music accordingly...
                        trace("---> sound cuts out briefly here!!");
                        logo_a.onMotionChanged = function():Void  {
        
_root.tuneSound.setVolume(_root.credits.logo._alpha);
                        };
                };
        };
}

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to