Broken Mute Button? AS2 MP3 Player

Actionscript 2.0 questions.

Broken Mute Button? AS2 MP3 Player

Postby fungusmonkey » Sun Nov 13, 2011 8:45 am

Hey, I've been working on revamping this mp3 player, but for some reason the mute button is broken. The song will load up and play correctly, but when you press the mute button it will mute it and get stuck on that state. You can't click it again to unmute, and the button won't switch back to frame 1 (where the unmuted image is). Am I missing something? Any help would be appreciated:

Code: Select all
function playMusicFunc()
{
    mainWindowMc.tickerMc.scrollText(titlex);
    if (firstPlay)
    {
        if (autoPlayx == "true")
        {
            canScrub = true;
            firstPlay = false;
            mySound = new Sound();
            mySound.onSoundComplete = function ()
            {
                mySound.position = curPlaybackPos = 0;
                mySound.start(curPlaybackPos / 1000, 9999);
                mySound.stop();
                delete scrubPath.playBackBarMask.onEnterFrame;
                scrubPath.playBackProgSlider.stopDrag();
                hasEnded = true;
                mainWindowMc.volumeControlMc.currTime.text = "00:00";
                scrubPath.playBackProgSlider._x = 0;
                scrubPath.playBackBarMask._width = 1;
                playPause.gotoAndStop(20);
                disablePause();
            };
            mySound.loadSound(mp3x, true);
            mySound.setVolume(curTrackVolume);
            volScrub._x = 51.850000 + volumeControl._x;
            playPause._visible = true;
            showDownloadProgress();
            showPlaybackProgress();
        }
        else
        {
            canScrub = false;
            firstPlay = false;
            volScrub._x = 51.850000 + volumeControl._x;
            playPause.gotoAndStop(11);
            playPause._visible = true;
            disablePause();
        } // end else if
    }
    else
    {
        canScrub = true;
        mySound = new Sound();
        mySound.onSoundComplete = function ()
        {
            mySound.position = curPlaybackPos = 0;
            mySound.start(curPlaybackPos / 1000, 9999);
            mySound.stop();
            delete scrubPath.playBackBarMask.onEnterFrame;
            scrubPath.playBackProgSlider.stopDrag();
            hasEnded = true;
            mainWindowMc.volumeControlMc.currTime.text = "00:00";
            scrubPath.playBackProgSlider._x = 0;
            scrubPath.playBackBarMask._width = 1;
            playPause.gotoAndStop(20);
            disablePause();
        };
        mySound.loadSound(mp3x, true);
        mySound.setVolume(curTrackVolume);
        showDownloadProgress();
        showPlaybackProgress();
        disablePlay();
        autoPlayx = "true";
    } // end else if
} // End of the function
function disablePlay()
{
    playMusic.enabled = false;
    playMusic._alpha = 35;
    pauseMusic.enabled = true;
    pauseMusic._alpha = 100;
    trackInfo._alpha = 100;
} // End of the function
function disablePause()
{
    playMusic.enabled = true;
    playMusic._alpha = 100;
    pauseMusic.enabled = false;
    pauseMusic._alpha = 35;
    trackInfo._alpha = 35;
} // End of the function
function showDownloadProgress()
{
    scrubPath.onEnterFrame = function ()
    {
        scrubPath.barTOP._alpha = 25;
        var _loc2 = mySound.getBytesLoaded();
        var _loc1 = mySound.getBytesTotal();
        soundDLPercent = _loc2 / _loc1 * 200;
        scrubPath.barTOP._width = soundDLPercent;
        if (_loc2 == _loc1)
        {
            delete scrubPath.onEnterFrame;
            scrubPath.barTOPFiller._visible = true;
        } // end if
    };
} // End of the function
function showPlaybackProgress()
{
    scrubPath.playBackBarMask.onEnterFrame = function ()
    {
        soundDLDuration = mySound.duration / soundDLPercent * 200;
        scrubPath.playBackProgSlider._x = mySound.position / soundDLDuration * 200;
        scrubPath.playBackBarMask._width = mySound.position / soundDLDuration * 200;
        this._parent._parent.totalTimex.text = "/ " + getTimeCode(mySound.duration / 1000);
        this._parent._parent.currTime.text = getTimeCode(mySound.position / 1000);
    };
} // End of the function
function getTimeCode(theTime)
{
    var _loc4 = Math.round(theTime);
    var _loc3 = Math.floor(_loc4 / 60);
    var _loc2 = _loc4 % 60;
    var _loc1 = "";
    if (_loc3 < 10)
    {
        _loc1 = _loc1 + "0";
    } // end if
    if (_loc3 >= 1)
    {
        _loc1 = _loc1 + _loc3.toString();
    }
    else
    {
        _loc1 = _loc1 + "0";
    } // end else if
    _loc1 = _loc1 + ":";
    if (_loc2 < 10)
    {
        _loc1 = _loc1 + "0";
        _loc1 = _loc1 + _loc2.toString();
    }
    else
    {
        _loc1 = _loc1 + _loc2.toString();
    } // end else if
    return (_loc1);
} // End of the function
function tab()
{
} // End of the function
function url1()
{
} // End of the function
function url2()
{
} // End of the function
function url3()
{
    if (embedMcOpen == false)
    {
        var _loc2 = new mx.transitions.Tween(mainWindowMc, "_x", mx.transitions.easing.Strong.easeOut, mainWindowMc._x, -421, 0.400000, true);
        embedMcOpen = true;
        clearInterval(closeMenuInterv);
        _root.closeMenuFunction();
    }
    else
    {
        _loc2 = new mx.transitions.Tween(mainWindowMc, "_x", mx.transitions.easing.Strong.easeOut, mainWindowMc._x, 15, 0.400000, true);
        embedMcOpen = false;
        clearInterval(closeMenuInterv);
    } // end else if
} // End of the function
System.security.allowDomain("spill.com");
System.security.allowInsecureDomain("spill.com");
_global.$createTweenController = function ()
{
    var _loc3 = _root.createEmptyMovieClip("__tweenController__", 123432);
    _loc3.$_tweenPropList = new Array();
    _loc3.$_tTime = getTimer();
    _loc3.onEnterFrame = _global.$updateTweens;
};
ASSetPropFlags(_global, "$createTweenController", 1, 0);
_global.$removeTweenController = function ()
{
    delete _root.__tweenController__.$_tweenPropList;
    delete _root.__tweenController__.$_tTime;
    delete _root.__tweenController__.onEnterFrame;
    _root.__tweenController__.removeMovieClip();
};
ASSetPropFlags(_global, "$removeTweenController", 1, 0);
_global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras)
{
    if (timeSeconds == undefined)
    {
        timeSeconds = 0;
    } // end if
    if (animType == undefined || animType == "")
    {
        animType = "easeOutExpo";
    } // end if
    if (delay == undefined)
    {
        delay = 0;
    } // end if
    if (typeof(prop) == "string")
    {
        var _loc7 = [prop];
        var _loc11 = [mtarget[prop]];
        var _loc9 = [propDest];
    }
    else
    {
        _loc7 = [];
        _loc11 = [];
        _loc9 = [];
        for (var _loc32 in prop)
        {
            _loc11.push(mtarget[prop[_loc32]]);
        } // end of for...in
        for (var _loc32 in prop)
        {
            _loc7.push(prop[_loc32]);
        } // end of for...in
        for (var _loc32 in propDest)
        {
            _loc9.push(propDest[_loc32]);
        } // end of for...in
    } // end else if
    var _loc12 = false;
    if (_root.__tweenController__ == undefined)
    {
        _global.$createTweenController();
    } // end if
    var _loc4 = _root.__tweenController__.$_tweenPropList;
    var _loc8 = _root.__tweenController__.$_tTime;
    for (var _loc32 in _loc11)
    {
        if (_loc9[_loc32] != undefined && !mtarget.$_isTweenLocked)
        {
            if (mtarget.$_tweenCount > 0)
            {
                for (var _loc3 = 0; _loc3 < _loc4.length; ++_loc3)
                {
                    if (_loc4[_loc3]._targ == mtarget && _loc4[_loc3]._prop == _loc7[_loc32])
                    {
                        if (_loc8 + delay * 1000 < _loc4[_loc3]._timeDest)
                        {
                            _loc4.splice(_loc3, 1);
                            --_loc3;
                            --mtarget.$_tweenCount;
                        } // end if
                    } // end if
                } // end of for
            } // end if
            _loc4.push({_prop: _loc7[_loc32], _targ: mtarget, _propStart: undefined, _propDest: _loc9[_loc32], _timeStart: _loc8, _timeDest: _loc8 + timeSeconds * 1000, _animType: animType, _extra1: extra1, _extra2: extra2, _extras: extras, _delay: delay, _isPaused: false, _timePaused: 0, _callback: _loc12 ? (undefined) : (callback)});
            mtarget.$_tweenCount = mtarget.$_tweenCount > 0 ? (mtarget.$_tweenCount + 1) : (1);
            _loc12 = true;
        } // end if
    } // end of for...in
    ASSetPropFlags(mtarget, "$_tweenCount", 1, 0);
};
ASSetPropFlags(_global, "$addTween", 1, 0);
_global.$updateTweens = function ()
{
    var _loc8 = this.$_tTime = getTimer();
    for (var _loc6 = 0; _loc6 < this.$_tweenPropList.length; ++_loc6)
    {
        var _loc3 = this.$_tweenPropList[_loc6];
        if (_loc3._targ.toString() == undefined)
        {
            this.$_tweenPropList.splice(_loc6, 1);
            --_loc6;
            continue;
        } // end if
        if (_loc3._timeStart + _loc3._delay * 1000 <= _loc8 && !_loc3._isPaused)
        {
            if (_loc3._propStart == undefined)
            {
                if (_loc3._prop.substr(0, 10) == "__special_")
                {
                    if (_loc3._prop == "__special_mc_frame__")
                    {
                        _loc3._propStart = _loc3._targ._currentframe;
                    }
                    else if (_loc3._prop == "__special_mc_ra__")
                    {
                        _loc3._propStart = new Color(_loc3._targ).getTransform().ra;
                    }
                    else if (_loc3._prop == "__special_mc_rb__")
                    {
                        _loc3._propStart = new Color(_loc3._targ).getTransform().rb;
                    }
                    else if (_loc3._prop == "__special_mc_ga__")
                    {
                        _loc3._propStart = new Color(_loc3._targ).getTransform().ga;
                    }
                    else if (_loc3._prop == "__special_mc_gb__")
                    {
                        _loc3._propStart = new Color(_loc3._targ).getTransform().gb;
                    }
                    else if (_loc3._prop == "__special_mc_ba__")
                    {
                        _loc3._propStart = new Color(_loc3._targ).getTransform().ba;
                    }
                    else if (_loc3._prop == "__special_mc_bb__")
                    {
                        _loc3._propStart = new Color(_loc3._targ).getTransform().bb;
                    }
                    else if (_loc3._prop == "__special_mc_aa__")
                    {
                        _loc3._propStart = new Color(_loc3._targ).getTransform().aa;
                    }
                    else if (_loc3._prop == "__special_mc_ab__")
                    {
                        _loc3._propStart = new Color(_loc3._targ).getTransform().ab;
                    }
                    else if (_loc3._prop == "__special_text_r__")
                    {
                        _loc3._propStart = _loc3._targ.textColor >> 16;
                    }
                    else if (_loc3._prop == "__special_text_g__")
                    {
                        _loc3._propStart = (_loc3._targ.textColor & 65280) >> 8;
                    }
                    else if (_loc3._prop == "__special_text_b__")
                    {
                        _loc3._propStart = _loc3._targ.textColor & 255;
                    }
                    else if (_loc3._prop == "__special_sound_volume__")
                    {
                        _loc3._propStart = _loc3._targ.getVolume();
                    }
                    else if (_loc3._prop == "__special_sound_pan__")
                    {
                        _loc3._propStart = _loc3._targ.getPan();
                    }
                    else if (_loc3._prop == "__special_bst_t__")
                    {
                        _loc3._propStart = 0;
                        _loc3._extras.__special_bst_ix__ = _loc3._targ._x;
                        _loc3._extras.__special_bst_iy__ = _loc3._targ._y;
                    }
                    else if (_loc3._prop == "__special_blur_x__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BlurFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].blurX;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 0;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_blur_y__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BlurFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].blurY;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 0;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_glow_color__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.GlowFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].color;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 16777215;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_glow_alpha__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.GlowFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].alpha;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 1;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_glow_blurX__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.GlowFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].blurX;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 0;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_glow_blurY__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.GlowFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].blurY;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 0;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_glow_strength__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.GlowFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].strength;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 1;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_bevel_distance__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BevelFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].distance;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 0;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_bevel_angle__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BevelFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].angle;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 45;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_bevel_highlightColor__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BevelFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].highlightColor;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 16777215;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_bevel_highlightAlpha__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BevelFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].highlightAlpha;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 1;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_bevel_shadowColor__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BevelFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].shadowColor;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 0;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_bevel_shadowAlpha__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BevelFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].shadowAlpha;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 1;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_bevel_blurX__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BevelFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].blurX;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 0;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_bevel_blurY__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BevelFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].blurY;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 0;
                        } // end if
                    }
                    else if (_loc3._prop == "__special_bevel_strength__")
                    {
                        for (var _loc5 = 0; _loc5 < _loc3._targ.filters.length; ++_loc5)
                        {
                            if (_loc3._targ.filters[_loc5] instanceof flash.filters.BevelFilter)
                            {
                                _loc3._propStart = _loc3._targ.filters[_loc5].strength;
                            } // end if
                        } // end of for
                        if (_loc3._propStart == undefined)
                        {
                            _loc3._propStart = 1;
                        } // end if
                    }
                    else
                    {
                        _loc3._propStart = _loc3._targ[_loc3._prop];
                    } // end else if
                }
                else
                {
                    _loc3._propStart = _loc3._targ[_loc3._prop];
                } // end if
            } // end else if
            var _loc10 = _loc3._timeDest + _loc3._delay * 1000;
            if (_loc10 <= _loc8)
            {
                var _loc4 = _loc3._propDest;
            }
            else
            {
                _loc4 = _global.findTweenValue(_loc3._propStart, _loc3._propDest, _loc3._timeStart, _loc8 - _loc3._delay * 1000, _loc3._timeDest, _loc3._animType, _loc3._extra1, _loc3._extra2);
            } // end else if
            _loc3._targ[_loc3._prop] = _loc3._extras.mustRound ? (Math.round(_loc4)) : (_loc4);
            if (_loc3._prop == "__special_mc_frame__")
            {
                _loc3._targ.gotoAndStop(Math.round(_loc4));
            }
            else if (_loc3._prop == "__special_mc_ra__")
            {
                new Color(_loc3._targ).setTransform({ra: _loc4});
            }
            else if (_loc3._prop == "__special_mc_rb__")
            {
                new Color(_loc3._targ).setTransform({rb: _loc4});
            }
            else if (_loc3._prop == "__special_mc_ga__")
            {
                new Color(_loc3._targ).setTransform({ga: _loc4});
            }
            else if (_loc3._prop == "__special_mc_gb__")
            {
                new Color(_loc3._targ).setTransform({gb: _loc4});
            }
            else if (_loc3._prop == "__special_mc_ba__")
            {
                new Color(_loc3._targ).setTransform({ba: _loc4});
            }
            else if (_loc3._prop == "__special_mc_bb__")
            {
                new Color(_loc3._targ).setTransform({bb: _loc4});
            }
            else if (_loc3._prop == "__special_mc_aa__")
            {
                new Color(_loc3._targ).setTransform({aa: _loc4});
            }
            else if (_loc3._prop == "__special_mc_ab__")
            {
                new Color(_loc3._targ).setTransform({ab: _loc4});
            } // end else if
            if (_loc3._prop == "__special_bst_t__")
            {
                var _loc7 = _loc3._extras;
                var _loc9 = _global.findPointOnCurve(_loc7.__special_bst_ix__, _loc7.__special_bst_iy__, _loc7.__special_bst_cx__, _loc7.__special_bst_cy__, _loc7.__special_bst_dx__, _loc7.__special_bst_dy__, _loc4);
                if (_loc3._extras.mustRound)
                {
                    _loc3._targ._x = Math.round(_loc9.x);
                    _loc3._targ._y = Math.round(_loc9.y);
                }
                else
                {
                    _loc3._targ._x = _loc9.x;
                    _loc3._targ._y = _loc9.y;
                } // end if
            } // end else if
            if (typeof(_loc3._targ) != "movieclip" && _loc3._prop == "__special_text_b__")
            {
                _loc3._targ.textColor = (_loc3._targ.__special_text_r__ << 16) + (_loc3._targ.__special_text_g__ << 8) + _loc3._targ.__special_text_b__;
            } // end if
            if (_loc3._prop == "__special_sound_volume__")
            {
                _loc3._targ.setVolume(_loc4);
            } // end if
            if (_loc3._prop == "__special_sound_pan__")
            {
                _loc3._targ.setPan(_loc4);
            } // end if
            if (_loc3._prop == "__special_blur_x__")
            {
                _global.$setFilterProperty(_loc3._targ, "blur_blurX", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_blur_y__")
            {
                _global.$setFilterProperty(_loc3._targ, "blur_blurY", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_glow_color__")
            {
                _global.$setFilterProperty(_loc3._targ, "glow_color", _global.findTweenColor(_loc3, _loc8), _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_glow_alpha__")
            {
                _global.$setFilterProperty(_loc3._targ, "glow_alpha", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_glow_blurX__")
            {
                _global.$setFilterProperty(_loc3._targ, "glow_blurX", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_glow_blurY__")
            {
                _global.$setFilterProperty(_loc3._targ, "glow_blurY", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_glow_strength__")
            {
                _global.$setFilterProperty(_loc3._targ, "glow_strength", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_bevel_distance__")
            {
                _global.$setFilterProperty(_loc3._targ, "bevel_distance", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_bevel_angle__")
            {
                _global.$setFilterProperty(_loc3._targ, "bevel_angle", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_bevel_highlightColor__")
            {
                _global.$setFilterProperty(_loc3._targ, "bevel_highlightColor", _global.findTweenColor(_loc3, _loc8), _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_bevel_highlightAlpha__")
            {
                _global.$setFilterProperty(_loc3._targ, "bevel_highlightAlpha", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_bevel_shadowColor__")
            {
                _global.$setFilterProperty(_loc3._targ, "bevel_shadowColor", _global.findTweenColor(_loc3, _loc8), _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_bevel_shadowAlpha__")
            {
                _global.$setFilterProperty(_loc3._targ, "bevel_shadowAlpha", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_bevel_blurX__")
            {
                _global.$setFilterProperty(_loc3._targ, "bevel_blurX", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_bevel_blurY__")
            {
                _global.$setFilterProperty(_loc3._targ, "bevel_blurY", _loc4, _loc3._extras);
            } // end if
            if (_loc3._prop == "__special_bevel_strength__")
            {
                _global.$setFilterProperty(_loc3._targ, "bevel_strength", _loc4, _loc3._extras);
            } // end if
            if (_loc3._targ.onTweenUpdate != undefined)
            {
                _loc3._targ.onTweenUpdate(_loc3._prop);
            } // end if
            if (_loc10 <= _loc8)
            {
                if (_loc3._targ.onTweenComplete != undefined)
                {
                    _loc3._targ.onTweenComplete(_loc3._prop);
                } // end if
                _global.$stopTween(_loc3._targ, [_loc3._prop], false);
                --_loc6;
                if (_loc3._callback != undefined)
                {
                    if (_global.backwardCallbackTweening)
                    {
                        var _loc11 = _loc3._targ.createEmptyMovieClip("__child__", 122344);
                        _loc3._callback.apply(_loc11, null);
                        _loc11.removeMovieClip();
                        continue;
                    } // end if
                    _loc3._callback.apply(_loc3._targ, null);
                } // end if
            } // end if
        } // end if
    } // end of for
    if (this.$_tweenPropList.length == 0)
    {
        _global.$removeTweenController();
    } // end if
};
ASSetPropFlags(_global, "$updateTween", 1, 0);
_global.$stopTween = function (mtarget, props, wipeFuture)
{
    var _loc4 = _root.__tweenController__.$_tweenPropList;
    var _loc7;
    for (var _loc9 in _loc4)
    {
        _loc7 = _loc4[_loc9]._prop;
        for (var _loc5 = 0; _loc5 < props.length || _loc5 < 1 && props == undefined; ++_loc5)
        {
            if (_loc4[_loc9]._targ == mtarget && (_loc7 == props[_loc5] || props == undefined) && (wipeFuture || _loc4[_loc9]._timeDest + _loc4[_loc9]._delay * 1000 <= getTimer()))
            {
                switch (_loc7)
                {
                    case "__special_mc_frame__":
                    case "__special_mc_ra__":
                    case "__special_mc_rb__":
                    case "__special_mc_ga__":
                    case "__special_mc_gb__":
                    case "__special_mc_ba__":
                    case "__special_mc_bb__":
                    case "__special_mc_aa__":
                    case "__special_mc_ab__":
                    case "__special_sound_volume__":
                    case "__special_bst_t__":
                    {
                        delete mtarget[_loc7];
                        break;
                    }
                    case "__special_text_b__":
                    {
                        delete mtarget.__special_text_r__;
                        delete mtarget.__special_text_g__;
                        delete mtarget.__special_text_b__;
                        break;
                    }
                } // End of switch
                _loc4.splice(_loc9, 1);
            } // end if
        } // end of for
    } // end of for...in
    if (props == undefined)
    {
        delete mtarget.$_tweenCount;
    }
    else
    {
        mtarget.$_tweenCount = 0;
        for (var _loc9 in _loc4)
        {
            if (_loc4[_loc9]._targ == mtarget)
            {
                ++mtarget.$_tweenCount;
            } // end if
        } // end of for...in
        if (mtarget.$_tweenCount == 0)
        {
            delete mtarget.$_tweenCount;
        } // end if
    } // end else if
    if (_loc4.length == 0)
    {
        _global.$removeTweenController();
    } // end if
};
ASSetPropFlags(_global, "$stopTween", 1, 0);
_global.$setFilterProperty = function (mtarget, propName, propValue, extras)
{
    var _loc1;
    var _loc7 = false;
    var _loc3 = [];
    for (var _loc1 = 0; _loc1 < mtarget.filters.length; ++_loc1)
    {
        _loc3.push(mtarget.filters[_loc1]);
    } // end of for
    if (propName.substr(0, 5) == "blur_")
    {
        for (var _loc1 = 0; _loc1 < mtarget.filters.length; ++_loc1)
        {
            if (_loc3[_loc1] instanceof flash.filters.BlurFilter)
            {
                _loc3[_loc1][propName.substr(5)] = propValue;
                if (extras.__special_blur_quality__ != undefined)
                {
                    _loc3[_loc1].quality = extras.__special_blur_quality__;
                } // end if
                _loc7 = true;
                break;
            } // end if
        } // end of for
        if (!_loc7)
        {
            var _loc9;
            var _loc8 = extras.__special_blur_quality__ == undefined ? (2) : (extras.__special_blur_quality__);
            if (propName == "blur_blurX")
            {
                _loc9 = new flash.filters.BlurFilter(propValue, 0, _loc8);
            } // end if
            if (propName == "blur_blurY")
            {
                _loc9 = new flash.filters.BlurFilter(0, propValue, _loc8);
            } // end if
            _loc3.push(_loc9);
        } // end if
    }
    else if (propName.substr(0, 5) == "glow_")
    {
        for (var _loc1 = 0; _loc1 < mtarget.filters.length; ++_loc1)
        {
            if (_loc3[_loc1] instanceof flash.filters.GlowFilter)
            {
                _loc3[_loc1][propName.substr(5)] = propValue;
                if (extras.__special_glow_quality__ != undefined)
                {
                    _loc3[_loc1].quality = extras.__special_glow_quality__;
                } // end if
                if (extras.__special_glow_inner__ != undefined)
                {
                    _loc3[_loc1].inner = extras.__special_glow_inner__;
                } // end if
                if (extras.__special_glow_knockout__ != undefined)
                {
                    _loc3[_loc1].knockout = extras.__special_glow_knockout__;
                } // end if
                _loc7 = true;
                break;
            } // end if
        } // end of for
        if (!_loc7)
        {
            _loc8 = extras.__special_glow_quality__ == undefined ? (2) : (extras.__special_glow_quality__);
            var _loc12 = extras.__special_glow_inner__ == undefined ? (false) : (extras.__special_glow_inner__);
            var _loc10 = extras.__special_glow_knockout__ == undefined ? (false) : (extras.__special_glow_knockout__);
            if (propName == "glow_color")
            {
                _loc9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _loc8, _loc12, _loc10);
            } // end if
            if (propName == "glow_alpha")
            {
                _loc9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _loc8, _loc12, _loc10);
            } // end if
            if (propName == "glow_blurX")
            {
                _loc9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _loc8, _loc12, _loc10);
            } // end if
            if (propName == "glow_blurY")
            {
                _loc9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _loc8, _loc12, _loc10);
            } // end if
            if (propName == "glow_strength")
            {
                _loc9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _loc8, _loc12, _loc10);
            } // end if
            _loc3.push(_loc9);
        } // end if
    }
    else if (propName.substr(0, 6) == "bevel_")
    {
        for (var _loc1 = 0; _loc1 < mtarget.filters.length; ++_loc1)
        {
            if (_loc3[_loc1] instanceof flash.filters.BevelFilter)
            {
                _loc3[_loc1][propName.substr(6)] = propValue;
                if (extras.__special_bevel_quality__ != undefined)
                {
                    _loc3[_loc1].quality = extras.__special_bevel_quality__;
                } // end if
                if (extras.__special_bevel_type__ != undefined)
                {
                    _loc3[_loc1].inner = extras.__special_bevel_type__;
                } // end if
                if (extras.__special_bevel_knockout__ != undefined)
                {
                    _loc3[_loc1].knockout = extras.__special_bevel_knockout__;
                } // end if
                _loc7 = true;
                break;
            } // end if
        } // end of for
        if (!_loc7)
        {
            _loc8 = extras.__special_bevel_quality__ == undefined ? (2) : (extras.__special_bevel_quality__);
            var _loc11 = extras.__special_bevel_type__ == undefined ? ("inner") : (extras.__special_bevel_type__);
            _loc10 = extras.__special_bevel_knockout__ == undefined ? (false) : (extras.__special_bevel_knockout__);
            if (propName == "bevel_distance")
            {
                _loc9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _loc8, _loc11, _loc10);
            } // end if
            if (propName == "bevel_angle")
            {
                _loc9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _loc8, _loc11, _loc10);
            } // end if
            if (propName == "bevel_highlightColor")
            {
                _loc9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _loc8, _loc11, _loc10);
            } // end if
            if (propName == "bevel_highlightAlpha")
            {
                _loc9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _loc8, _loc11, _loc10);
            } // end if
            if (propName == "bevel_shadowColor")
            {
                _loc9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _loc8, _loc11, _loc10);
            } // end if
            if (propName == "bevel_shadowAlpha")
            {
                _loc9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _loc8, _loc11, _loc10);
            } // end if
            if (propName == "bevel_blurX")
            {
                _loc9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _loc8, _loc11, _loc10);
            } // end if
            if (propName == "bevel_blurY")
            {
                _loc9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _loc8, _loc11, _loc10);
            } // end if
            if (propName == "bevel_strength")
            {
                _loc9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _loc8, _loc11, _loc10);
            } // end if
            _loc3.push(_loc9);
        } // end if
    }
    else
    {
        return;
    } // end else if
    mtarget.filters = _loc3;
};
MovieClip.prototype.tween = TextField.prototype.tween = Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "tween", 1, 0);
ASSetPropFlags(TextField.prototype, "tween", 1, 0);
ASSetPropFlags(Sound.prototype, "tween", 1, 0);
MovieClip.prototype.roundedTween = TextField.prototype.roundedTween = Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound: true});
};
ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0);
ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0);
MovieClip.prototype.stopTween = TextField.prototype.stopTween = Sound.prototype.stopTween = function (props)
{
    if (typeof(props) == "string")
    {
        props = [props];
    } // end if
    if (props != undefined)
    {
        for (var _loc4 = 1; _loc4 < arguments.length; ++_loc4)
        {
            props.push(arguments[_loc4]);
        } // end of for
    } // end if
    _global.$stopTween(this, props, true);
};
ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0);
ASSetPropFlags(TextField.prototype, "stopTween", 1, 0);
ASSetPropFlags(Sound.prototype, "stopTween", 1, 0);
MovieClip.prototype.pauseTween = TextField.prototype.pauseTween = Sound.prototype.pauseTween = function (props)
{
    if (props != undefined)
    {
        if (typeof(props) == "string")
        {
            props = [props];
        } // end if
        for (var _loc6 = 1; _loc6 < Arguments.length; ++_loc6)
        {
            props.push(Arguments[_loc6]);
        } // end of for
    } // end if
    var _loc4 = _root.__tweenController__.$_tweenPropList;
    var _loc5;
    for (var _loc7 in _loc4)
    {
        if (_loc4[_loc7]._targ == this && !_loc4[_loc7]._isPaused)
        {
            if (props != undefined)
            {
                _loc5 = false;
                for (var _loc6 in props)
                {
                    if (props[_loc6] == _loc4[_loc7]._prop)
                    {
                        _loc5 = true;
                        break;
                    } // end if
                } // end of for...in
            } // end if
            if (props == undefined || _loc5)
            {
                _loc4[_loc7]._isPaused = true;
                _loc4[_loc7]._timePaused = _root.__tweenController__.$_tTime;
            } // end if
        } // end if
    } // end of for...in
};
ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0);
ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0);
ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0);
MovieClip.prototype.resumeTween = TextField.prototype.resumeTween = Sound.prototype.resumeTween = function (props)
{
    if (props != undefined)
    {
        if (typeof(props) == "string")
        {
            props = [props];
        } // end if
        for (var _loc7 = 1; _loc7 < Arguments.length; ++_loc7)
        {
            props.push(Arguments[_loc7]);
        } // end of for
    } // end if
    var _loc3 = _root.__tweenController__.$_tweenPropList;
    var _loc5;
    var _loc6;
    for (var _loc8 in _loc3)
    {
        if (_loc3[_loc8]._targ == this && _loc3[_loc8]._isPaused)
        {
            if (props != undefined)
            {
                _loc5 = false;
                for (var _loc7 in props)
                {
                    if (props[_loc7] == _loc3[_loc8]._prop)
                    {
                        _loc5 = true;
                        break;
                    } // end if
                } // end of for...in
            } // end if
            if (props == undefined || _loc5)
            {
                _loc3[_loc8]._isPaused = false;
                _loc6 = _root.__tweenController__.$_tTime - _loc3[_loc8]._timePaused;
                _loc3[_loc8]._timeStart = _loc3[_loc8]._timeStart + _loc6;
                _loc3[_loc8]._timeDest = _loc3[_loc8]._timeDest + _loc6;
                _loc3[_loc8]._timePaused = 0;
            } // end if
        } // end if
    } // end of for...in
};
ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0);
ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0);
ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0);
MovieClip.prototype.lockTween = TextField.prototype.lockTween = Sound.prototype.lockTween = function ()
{
    this.$_isTweenLocked = true;
    ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0);
};
ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "lockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "lockTween", 1, 0);
MovieClip.prototype.unlockTween = TextField.prototype.unlockTween = Sound.prototype.unlockTween = function ()
{
    delete this.$_isTweenLocked;
};
ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0);
ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0);
ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0);
MovieClip.prototype.getTweens = TextField.prototype.getTweens = Sound.prototype.getTweens = function ()
{
    return (this.$_tweenCount);
};
ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0);
ASSetPropFlags(TextField.prototype, "getTweens", 1, 0);
ASSetPropFlags(Sound.prototype, "getTweens", 1, 0);
MovieClip.prototype.isTweening = TextField.prototype.isTweening = Sound.prototype.isTweening = function ()
{
    return (this.$_tweenCount > 0 ? (true) : (false));
};
ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0);
ASSetPropFlags(TextField.prototype, "isTweening", 1, 0);
ASSetPropFlags(Sound.prototype, "isTweening", 1, 0);
MovieClip.prototype.alphaTo = TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0);
ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0);
MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0);
MovieClip.prototype.resizeTo = TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0);
ASSetPropFlags(TextField.prototype, "resizeTo", 1, 0);
MovieClip.prototype.rotateTo = TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0);
ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0);
MovieClip.prototype.scaleTo = TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0);
MovieClip.prototype.xScaleTo = TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0);
MovieClip.prototype.yScaleTo = TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0);
TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0);
MovieClip.prototype.slideTo = TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "slideTo", 1, 0);
MovieClip.prototype.roundedSlideTo = TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound: true});
};
ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0);
MovieClip.prototype.xSlideTo = TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0);
MovieClip.prototype.roundedXSlideTo = TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound: true});
};
ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0);
MovieClip.prototype.ySlideTo = TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0);
MovieClip.prototype.roundedYSlideTo = TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound: true});
};
ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0);
MovieClip.prototype.bezierSlideTo = TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
    var _loc3 = new Object();
    _loc3.__special_bst_ix__ = undefined;
    _loc3.__special_bst_iy__ = undefined;
    _loc3.__special_bst_cx__ = cpoint_x;
    _loc3.__special_bst_cy__ = cpoint_y;
    _loc3.__special_bst_dx__ = propDest_x;
    _loc3.__special_bst_dy__ = propDest_y;
    _global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _loc3);
};
ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0);
MovieClip.prototype.roundedBezierSlideTo = TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2)
{
    var _loc3 = new Object();
    _loc3.__special_bst_ix__ = undefined;
    _loc3.__special_bst_iy__ = undefined;
    _loc3.__special_bst_cx__ = cpoint_x;
    _loc3.__special_bst_cy__ = cpoint_y;
    _loc3.__special_bst_dx__ = propDest_x;
    _loc3.__special_bst_dy__ = propDest_y;
    _loc3.mustRound = true;
    _global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _loc3);
};
ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0);
ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0);
Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0);
Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Sound.prototype, "panTo", 1, 0);
MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2)
{
    if (propDest_color == null)
    {
        this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
    }
    else
    {
        var _loc3 = propDest_color >> 16;
        var _loc5 = (propDest_color & 65280) >> 8;
        var _loc4 = propDest_color & 255;
        this.colorTransformTo(0, _loc3, 0, _loc5, 0, _loc4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2);
    } // end else if
};
ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0);
TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2)
{
    var _loc3 = propDest_color >> 16;
    var _loc6 = (propDest_color & 65280) >> 8;
    var _loc4 = propDest_color & 255;
    _global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_loc3, _loc6, _loc4], timeSeconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(TextField.prototype, "colorTo", 1, 0);
MovieClip.prototype.colorTransformTo = function ()
{
    if (typeof(arguments[0]) == "object" && arguments[0] != undefined)
    {
        _global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]);
    }
    else
    {
        _global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]);
    } // end else if
};
ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0);
MovieClip.prototype.blurTo = TextField.prototype.blurTo = function ()
{
    if (typeof(arguments[0]) == "object" && arguments[0] != undefined)
    {
        _global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__: arguments[0].quality});
    }
    else
    {
        _global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__: arguments[1]});
    } // end else if
};
ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "blurTo", 1, 0);
MovieClip.prototype.xyBlurTo = TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__: quality});
};
ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0);
MovieClip.prototype.xBlurTo = TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__: quality});
};
ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0);
MovieClip.prototype.yBlurTo = TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__: quality});
};
ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0);
MovieClip.prototype.glowTo = TextField.prototype.glowTo = function ()
{
    if (typeof(arguments[0]) == "object" && arguments[0] != undefined)
    {
        _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__: arguments[0].quality, __special_glow_inner__: arguments[0].inner, __special_glow_knockout__: arguments[0].knockout});
    }
    else
    {
        _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__: arguments[4], __special_glow_inner__: arguments[5], __special_glow_knockout__: arguments[6]});
    } // end else if
};
ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "glowTo", 1, 0);
MovieClip.prototype.xyGlowTo = TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__: quality, __special_glow_inner__: inner, __special_glow_knockout__: knockout});
};
ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0);
MovieClip.prototype.xGlowTo = TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__: quality, __special_glow_inner__: inner, __special_glow_knockout__: knockout});
};
ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0);
MovieClip.prototype.yGlowTo = TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__: quality, __special_glow_inner__: inner, __special_glow_knockout__: knockout});
};
ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0);
ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0);
MovieClip.prototype.bevelTo = TextField.prototype.bevelTo = function ()
{
    if (typeof(arguments[0]) == "object" && arguments[0] != undefined)
    {
        _global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__: arguments[0].quality, __special_bevel_type__: arguments[0].type, __special_bevel_knockout__: arguments[0].knockout});
    }
    else
    {
        _global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__: arguments[8], __special_bevel_type__: arguments[9], __special_bevel_knockout__: arguments[10]});
    } // end else if
};
ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0);
MovieClip.prototype.xyBevelTo = TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2)
{
    _global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__: quality, __special_bevel_type__: type, __special_bevel_knockout__: knockout});
};
ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0);
ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0);
_global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t)
{
    return ({x: p1x + t * (2 * (1 - t) * (cx - p1x) + t * (p2x - p1x)), y: p1y + t * (2 * (1 - t) * (cy - p1y) + t * (p2y - p1y))});
};
ASSetPropFlags(_global, "findPointOnCurve", 1, 0);
_global.findTweenColor = function (objProp, tTime)
{
    var _loc8 = objProp._propStart >> 16;
    var _loc4 = objProp._propDest >> 16;
    var _loc5 = objProp._propStart >> 8 & 255;
    var _loc6 = objProp._propDest >> 8 & 255;
    var _loc9 = objProp._propStart & 255;
    var _loc7 = objProp._propDest & 255;
    var _loc12 = Math.round(_global.findTweenValue(_loc8, _loc4, objProp._timeStart, tTime - objProp._delay * 1000, objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
    var _loc10 = Math.round(_global.findTweenValue(_loc5, _loc6, objProp._timeStart, tTime - objProp._delay * 1000, objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
    var _loc3 = Math.round(_global.findTweenValue(_loc9, _loc7, objProp._timeStart, tTime - objProp._delay * 1000, objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2));
    return ((_loc12 << 16) + (_loc10 << 8) + _loc3);
};
_global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2)
{
    var _loc1 = _timeNow - _timeStart;
    var _loc4 = _propStart;
    var _loc2 = _propDest - _propStart;
    var _loc3 = _timeDest - _timeStart;
    var _loc6 = _extra1;
    var _loc7 = _extra2;
    var _loc5 = _extra1;
    switch (_animType.toLowerCase())
    {
        case "linear":
        {
            return (_loc2 * _loc1 / _loc3 + _loc4);
        }
        case "easeinquad":
        {
            _loc1 = _loc1 / _loc3;
            return (_loc2 * (_loc1) * _loc1 + _loc4);
        }
        case "easeoutquad":
        {
            _loc1 = _loc1 / _loc3;
            return (-_loc2 * (_loc1) * (_loc1 - 2) + _loc4);
        }
        case "easeinoutquad":
        {
            _loc1 = _loc1 / (_loc3 / 2);
            if (_loc1 < 1)
            {
                return (_loc2 / 2 * _loc1 * _loc1 + _loc4);
            } // end if
            return (-_loc2 / 2 * (--_loc1 * (_loc1 - 2) - 1) + _loc4);
        }
        case "easeoutinquad":
        {
            if (_loc1 < _loc3 / 2)
            {
                return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutQuad") * 0.500000 + _loc4);
            } // end if
            return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInQuad") * 0.500000 + _loc2 * 0.500000 + _loc4);
        }
        case "easeincubic":
        {
            _loc1 = _loc1 / _loc3;
            return (_loc2 * (_loc1) * _loc1 * _loc1 + _loc4);
        }
        case "easeoutcubic":
        {
            _loc1 = _loc1 / _loc3 - 1;
            return (_loc2 * ((_loc1) * _loc1 * _loc1 + 1) + _loc4);
        }
        case "easeinoutcubic":
        {
            _loc1 = _loc1 / (_loc3 / 2);
            if (_loc1 < 1)
            {
                return (_loc2 / 2 * _loc1 * _loc1 * _loc1 + _loc4);
            } // end if
            _loc1 = _loc1 - 2;
            return (_loc2 / 2 * ((_loc1) * _loc1 * _loc1 + 2) + _loc4);
        }
        case "easeoutincubic":
        {
            if (_loc1 < _loc3 / 2)
            {
                return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutCubic") * 0.500000 + _loc4);
            } // end if
            return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInCubic") * 0.500000 + _loc2 * 0.500000 + _loc4);
        }
        case "easeinquart":
        {
            _loc1 = _loc1 / _loc3;
            return (_loc2 * (_loc1) * _loc1 * _loc1 * _loc1 + _loc4);
        }
        case "easeoutquart":
        {
            _loc1 = _loc1 / _loc3 - 1;
            return (-_loc2 * ((_loc1) * _loc1 * _loc1 * _loc1 - 1) + _loc4);
        }
        case "easeinoutquart":
        {
            _loc1 = _loc1 / (_loc3 / 2);
            if (_loc1 < 1)
            {
                return (_loc2 / 2 * _loc1 * _loc1 * _loc1 * _loc1 + _loc4);
            } // end if
            _loc1 = _loc1 - 2;
            return (-_loc2 / 2 * ((_loc1) * _loc1 * _loc1 * _loc1 - 2) + _loc4);
        }
        case "easeoutinquart":
        {
            if (_loc1 < _loc3 / 2)
            {
                return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutQuart") * 0.500000 + _loc4);
            } // end if
            return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInQuart") * 0.500000 + _loc2 * 0.500000 + _loc4);
        }
        case "easeinquint":
        {
            _loc1 = _loc1 / _loc3;
            return (_loc2 * (_loc1) * _loc1 * _loc1 * _loc1 * _loc1 + _loc4);
        }
        case "easeoutquint":
        {
            _loc1 = _loc1 / _loc3 - 1;
            return (_loc2 * ((_loc1) * _loc1 * _loc1 * _loc1 * _loc1 + 1) + _loc4);
        }
        case "easeinoutquint":
        {
            _loc1 = _loc1 / (_loc3 / 2);
            if (_loc1 < 1)
            {
                return (_loc2 / 2 * _loc1 * _loc1 * _loc1 * _loc1 * _loc1 + _loc4);
            } // end if
            _loc1 = _loc1 - 2;
            return (_loc2 / 2 * ((_loc1) * _loc1 * _loc1 * _loc1 * _loc1 + 2) + _loc4);
        }
        case "easeoutinquint":
        {
            if (_loc1 < _loc3 / 2)
            {
                return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutQuint") * 0.500000 + _loc4);
            } // end if
            return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInQuint") * 0.500000 + _loc2 * 0.500000 + _loc4);
        }
        case "easeinsine":
        {
            return (-_loc2 * Math.cos(_loc1 / _loc3 * 1.570796) + _loc2 + _loc4);
        }
        case "easeoutsine":
        {
            return (_loc2 * Math.sin(_loc1 / _loc3 * 1.570796) + _loc4);
        }
        case "easeinoutsine":
        {
            return (-_loc2 / 2 * (Math.cos(3.141593 * _loc1 / _loc3) - 1) + _loc4);
        }
        case "easeoutinsine":
        {
            if (_loc1 < _loc3 / 2)
            {
                return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutSine") * 0.500000 + _loc4);
            } // end if
            return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInSine") * 0.500000 + _loc2 * 0.500000 + _loc4);
        }
        case "easeinexpo":
        {
            return (_loc1 == 0 ? (_loc4) : (_loc2 * Math.pow(2, 10 * (_loc1 / _loc3 - 1)) + _loc4));
        }
        case "easeoutexpo":
        {
            return (_loc1 == _loc3 ? (_loc4 + _loc2) : (_loc2 * (-Math.pow(2, -10 * _loc1 / _loc3) + 1) + _loc4));
        }
        case "easeinoutexpo":
        {
            if (_loc1 == 0)
            {
                return (_loc4);
            } // end if
            if (_loc1 == _loc3)
            {
                return (_loc4 + _loc2);
            } // end if
            _loc1 = _loc1 / (_loc3 / 2);
            if (_loc1 < 1)
            {
                return (_loc2 / 2 * Math.pow(2, 10 * (_loc1 - 1)) + _loc4);
            } // end if
            return (_loc2 / 2 * (-Math.pow(2, -10 * --_loc1) + 2) + _loc4);
        }
        case "easeoutinexpo":
        {
            if (_loc1 == 0)
            {
                return (_loc4);
            } // end if
            if (_loc1 == _loc3)
            {
                return (_loc4 + _loc2);
            } // end if
            _loc1 = _loc1 / (_loc3 / 2);
            if (_loc1 < 1)
            {
                return (_loc2 / 2 * (-Math.pow(2, -10 * _loc1 / 1) + 1) + _loc4);
            } // end if
            return (_loc2 / 2 * (Math.pow(2, 10 * (_loc1 - 2) / 1) + 1) + _loc4);
        }
        case "easeincirc":
        {
            _loc1 = _loc1 / _loc3;
            return (-_loc2 * (Math.sqrt(1 - _loc1 * _loc1) - 1) + _loc4);
        }
        case "easeoutcirc":
        {
            _loc1 = _loc1 / _loc3 - 1;
            return (_loc2 * Math.sqrt(1 - (_loc1) * _loc1) + _loc4);
        }
        case "easeinoutcirc":
        {
            _loc1 = _loc1 / (_loc3 / 2);
            if (_loc1 < 1)
            {
                return (-_loc2 / 2 * (Math.sqrt(1 - _loc1 * _loc1) - 1) + _loc4);
            } // end if
            _loc1 = _loc1 - 2;
            return (_loc2 / 2 * (Math.sqrt(1 - (_loc1) * _loc1) + 1) + _loc4);
        }
        case "easeoutincirc":
        {
            if (_loc1 < _loc3 / 2)
            {
                return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutCirc") * 0.500000 + _loc4);
            } // end if
            return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInCirc") * 0.500000 + _loc2 * 0.500000 + _loc4);
        }
        case "easeinelastic":
        {
            if (_loc1 == 0)
            {
                return (_loc4);
            } // end if
            _loc1 = _loc1 / _loc3;
            if (_loc1 == 1)
            {
                return (_loc4 + _loc2);
            } // end if
            if (!_loc7)
            {
                _loc7 = _loc3 * 0.300000;
            } // end if
            if (!_loc6 || _loc6 < Math.abs(_loc2))
            {
                _loc6 = _loc2;
                _loc5 = _loc7 / 4;
            }
            else
            {
                _loc5 = _loc7 / 6.283185 * Math.asin(_loc2 / _loc6);
            } // end else if
            _loc1 = _loc1 - 1;
            return (-_loc6 * Math.pow(2, 10 * (_loc1)) * Math.sin((_loc1 * _loc3 - _loc5) * 6.283185 / _loc7) + _loc4);
        }
        case "easeoutelastic":
        {
            if (_loc1 == 0)
            {
                return (_loc4);
            } // end if
            _loc1 = _loc1 / _loc3;
            if (_loc1 == 1)
            {
                return (_loc4 + _loc2);
            } // end if
            if (!_loc7)
            {
                _loc7 = _loc3 * 0.300000;
            } // end if
            if (!_loc6 || _loc6 < Math.abs(_loc2))
            {
                _loc6 = _loc2;
                _loc5 = _loc7 / 4;
            }
            else
            {
                _loc5 = _loc7 / 6.283185 * Math.asin(_loc2 / _loc6);
            } // end else if
            return (_loc6 * Math.pow(2, -10 * _loc1) * Math.sin((_loc1 * _loc3 - _loc5) * 6.283185 / _loc7) + _loc2 + _loc4);
        }
        case "easeinoutelastic":
        {
            if (_loc1 == 0)
            {
                return (_loc4);
            } // end if
            _loc1 = _loc1 / (_loc3 / 2);
            if (_loc1 == 2)
            {
                return (_loc4 + _loc2);
            } // end if
            if (!_loc7)
            {
                _loc7 = _loc3 * 0.450000;
            } // end if
            if (!_loc6 || _loc6 < Math.abs(_loc2))
            {
                _loc6 = _loc2;
                _loc5 = _loc7 / 4;
            }
            else
            {
                _loc5 = _loc7 / 6.283185 * Math.asin(_loc2 / _loc6);
            } // end else if
            if (_loc1 < 1)
            {
                _loc1 = _loc1 - 1;
                return (-0.500000 * (_loc6 * Math.pow(2, 10 * (_loc1)) * Math.sin((_loc1 * _loc3 - _loc5) * 6.283185 / _loc7)) + _loc4);
            } // end if
            _loc1 = _loc1 - 1;
            return (_loc6 * Math.pow(2, -10 * (_loc1)) * Math.sin((_loc1 * _loc3 - _loc5) * 6.283185 / _loc7) * 0.500000 + _loc2 + _loc4);
        }
        case "easeoutinelastic":
        {
            if (_loc1 < _loc3 / 2)
            {
                return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutElastic") * 0.500000 + _loc4);
            } // end if
            return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInElastic") * 0.500000 + _loc2 * 0.500000 + _loc4);
        }
        case "easeinback":
        {
            if (_loc5 == undefined)
            {
                _loc5 = 1.701580;
            } // end if
            _loc1 = _loc1 / _loc3;
            return (_loc2 * (_loc1) * _loc1 * ((_loc5 + 1) * _loc1 - _loc5) + _loc4);
        }
        case "easeoutback":
        {
            if (_loc5 == undefined)
            {
                _loc5 = 1.701580;
            } // end if
            _loc1 = _loc1 / _loc3 - 1;
            return (_loc2 * ((_loc1) * _loc1 * ((_loc5 + 1) * _loc1 + _loc5) + 1) + _loc4);
        }
        case "easeinoutback":
        {
            if (_loc5 == undefined)
            {
                _loc5 = 1.701580;
            } // end if
            _loc1 = _loc1 / (_loc3 / 2);
            if (_loc1 < 1)
            {
                _loc5 = _loc5 * 1.525000;
                return (_loc2 / 2 * (_loc1 * _loc1 * ((_loc5 + 1) * _loc1 - _loc5)) + _loc4);
            } // end if
            _loc1 = _loc1 - 2;
            _loc5 = _loc5 * 1.525000;
            return (_loc2 / 2 * ((_loc1) * _loc1 * ((_loc5 + 1) * _loc1 + _loc5) + 2) + _loc4);
        }
        case "easeoutinback":
        {
            if (_loc1 < _loc3 / 2)
            {
                return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutBack") * 0.500000 + _loc4);
            } // end if
            return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInBack") * 0.500000 + _loc2 * 0.500000 + _loc4);
        }
        case "easeinbounce":
        {
            return (_loc2 - findTweenValue(0, _loc2, 0, _loc3 - _loc1, _loc3, "easeOutBounce") + _loc4);
        }
        case "easeoutbounce":
        {
            _loc1 = _loc1 / _loc3;
            if (_loc1 < 0.363636)
            {
                return (_loc2 * (7.562500 * _loc1 * _loc1) + _loc4);
            }
            else if (_loc1 < 0.727273)
            {
                _loc1 = _loc1 - 0.545455;
                return (_loc2 * (7.562500 * (_loc1) * _loc1 + 0.750000) + _loc4);
            }
            else if (_loc1 < 0.909091)
            {
                _loc1 = _loc1 - 0.818182;
                return (_loc2 * (7.562500 * (_loc1) * _loc1 + 0.937500) + _loc4);
            }
            else
            {
                _loc1 = _loc1 - 0.954545;
                return (_loc2 * (7.562500 * (_loc1) * _loc1 + 0.984375) + _loc4);
            } // end else if
        }
        case "easeinoutbounce":
        {
            if (_loc1 < _loc3 / 2)
            {
                return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeInBounce") * 0.500000 + _loc4);
            } // end if
            return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeOutBounce") * 0.500000 + _loc2 * 0.500000 + _loc4);
        }
        case "easeoutinbounce":
        {
            if (_loc1 < _loc3 / 2)
            {
                return (findTweenValue(0, _loc2, 0, _loc1 * 2, _loc3, "easeOutBounce") * 0.500000 + _loc4);
            } // end if
            return (findTweenValue(0, _loc2, 0, _loc1 * 2 - _loc3, _loc3, "easeInBounce") * 0.500000 + _loc2 * 0.500000 + _loc4);
        }
    } // End of switch
    trace ("MC TWEEN ### Error on transition: there\'s no \"" + _animType + "\" animation type.");
    return (0);
};
ASSetPropFlags(_global, "findTweenValue", 1, 0);
getURL("FSCommand:allowscale", true);
var musicFolderName = "content/mp3/";
var thumbPath = scrollerMc.contentMain;
var scrubPath = mainWindowMc.volumeControlMc.progressBar;
var curTrackNum = 0;
var curPlaybackPos;
var soundDLPercent;
var mySound;
var mp3color = ("0x" + color);
var myColor:Color = new Color(colorbg);
myColor.setRGB(mp3color);
var FMonk = false;
var trackInfoArray;
var trackInfoTracker = 0;
var infoChangerInterv;
var soundDLDuration;
var curTrackVolume = 85;
var firstPlay = true;
var canScrub = false;
volScrub._visible = true;
var error = false;
var hasEnded = false;
playPause._visible = false;
var embedMcOpen = false;
nowPlayingTxt._visible = false;
errorMc._visible = false;
scrubPath.barTOPFiller._visible = false;
var autoplay;
var autoPlayx;
if (autoplay != undefined)
{
    autoPlayx = autoplay;
}
else
{
    autoPlayx = "false";
} // end else if
var mp3x = mp3url;
var titlex = mp3title;
this.trackInfoMc.trackInfo.autoSize = "center";
this.volumePercentText.autoSize = "left";
this.volumePercentText._visible = false;
var scrubberOpen = false;
var isOpen = false;
init = function ()
{
    root.colorbg.setRGB(0x273643);
   var _loc1 = "<div style=\"text-align:center\"><embed src=\"http://www.spill.com/audio/mp3/SpillMp3Control.swf\" width=\"356\" height=\"139\" wmode=\"transparent\" allowscriptaccess=\"always\" allowfullscreen=\"true\" scale=\"noscale\" flashvars=\"sourceId=4&mp3url=" + mp3x + "&color=273643&autoplay=" + autoPlayx + "&mp3title=" + titlex + "\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/products/flashplayer\"/></div>";
    mainWindowMc.urlx.text = _loc1;
    if (mp3x == undefined)
    {
        error = true;
        mainWindowMc.volumeControlMc.currTime.autoSize = true;
        mainWindowMc.volumeControlMc.currTime.text = "Error loading data";
    }
    else
    {
        mainWindowMc.volumeControlMc.totalTimex.text = "/ 00:00";
        mainWindowMc.volumeControlMc.currTime.text = "00:00";
        playMusicFunc();
    } // end else if
};
init();
playPause.onRollOver = function ()
{
    if (this._currentframe == 1)
    {
        this.gotoAndStop("pauseOver");
    }
    else
    {
        this.gotoAndStop("playOver");
    } // end else if
};
playPause.onRollOut = playPause.onReleaseOutside = function ()
{
    if (this._currentframe == 10)
    {
        this.gotoAndStop("pause");
    }
    else
    {
        this.gotoAndStop("play");
    } // end else if
};
playPause.onRelease = function ()
{
    if (autoPlayx == "false")
    {
        playMusicFunc();
        autoPlayx = "true";
        if (!volOn)
        {
            volOn = true;
            volOnOff_mc.gotoAndStop(1);
        } // end if
    } // end if
    if (this._currentframe == 10)
    {
        this.gotoAndStop("playOver");
        curPlaybackPos = mySound.position;
        mySound.stop();
        disablePause();
    }
    else
    {
        this.gotoAndStop("pauseOver");
        mySound.start(curPlaybackPos / 1000, 9999);
        disablePlay();
    } // end else if
    if (hasEnded)
    {
        hasEnded = false;
        showPlaybackProgress();
        disablePlay();
    } // end if
};
scrubPath.playBackProgSlider.onPress = function ()
{
    if (canScrub)
    {
        this.startDrag(true, 0, this._y, 198, this._y);
        this.onEnterFrame = scrubFunction;
        showPlaybackProgress();
        hasEnded = false;
    } // end if
};
scrubFunction = function ()
{
    if (_root.mainWindowMc._xmouse >= _root.scrubPath._x && _root.mainWindowMc._xmouse <= scrubPath._x + scrubPath.barTOP._width - 2)
    {
        var _loc2 = Math.round(_root.mainWindowMc._xmouse - scrubPath._x);
        mySound.start(soundDLDuration / 1000 * (_loc2 / 200));
        disablePause();
    } // end if
};
scrubPath.playBackProgSlider.onRelease = scrubPath.playBackProgSlider.onReleaseOutside = function ()
{
    if (canScrub)
    {
        delete scrubPath.playBackProgSlider.onEnterFrame;
        disablePlay();
        if (!hasEnded)
        {
            playPause.gotoAndStop("pause");
        } // end if
        delete this.onMouseMove;
        this.stopDrag();
    } // end if
};
this.scrubPath.barTOP.onPress = function ()
{
    this.onEnterFrame = scrubFunction;
    showPlaybackProgress();
    hasEnded = false;
};
this.scrubPath.barTOP.onRelease = this.scrubPath.barTOP.onReleaseOutside = function ()
{
    delete scrubPath.barTOP.onEnterFrame;
    disablePlay();
    if (!hasEnded)
    {
        playPause.gotoAndStop("pause");
    } // end if
    delete this.onMouseMove;
};
this.volumeControl.onPress = function ()
{
    this.onEnterFrame = volumeScrubFunction;
    if (!volOn)
    {
        volOn = true;
        volOnOff_mc.gotoAndStop(1);
    } // end if
};
this.volumeControl.onRelease = this.volumeControl.onReleaseOutside = function ()
{
    delete volumeControl.onEnterFrame;
};
this.volScrub.onPress = function ()
{
    this.startDrag(true, 18, this._y, 79, this._y);
    this.onEnterFrame = volumeScrubFunction;
    if (!volOn)
    {
        volOn = true;
        volOnOff_mc.gotoAndStop(1);
    } // end if
};
this.volScrub.onRelease = this.volScrub.onReleaseOutside = function ()
{
    this.stopDrag();
    delete volScrub.onEnterFrame;
};
volumeScrubFunction = function ()
{
    if (_root._xmouse >= volumeControl._x && _root._xmouse <= volumeControl._x + volumeControl._width)
    {
        curTrackVolume = Math.round((_root._xmouse - volumeControl._x) / 61 * 100);
        mySound.setVolume(curTrackVolume);
        volScrub._x = curTrackVolume / 100 * 61 + volumeControl._x;
    } // end if
};
infoChanger = function ()
{
    var _loc1 = new mx.transitions.Tween(mainWindowMc, "_x", mx.transitions.easing.Strong.easeOut, mainWindowMc._x, 15, 0.400000, true);
    scrubberOpen = false;
    clearInterval(infoChangerInterv);
    mainWindowMc.coverVolumeMc._visible = true;
};
closeMenuFunction = function ()
{
    closeMenuInterv = setInterval(closeMenu, 5000);
};
closeEggFunction = function ()
{
    closeMenuInterv = setInterval(closeegg, 3000);
};
closeMenu = function ()
{
    isOpen = false;
    embedMcOpen = false;
    var _loc1 = new mx.transitions.Tween(mainWindowMc, "_x", mx.transitions.easing.Strong.easeOut, mainWindowMc._x, 15, 0.400000, true);
    clearInterval(closeMenuInterv);
};
closeegg = function ()
{
    isOpen = false;
    FMonk = false;
    var _loc1 = new mx.transitions.Tween(FWindowMc, "_y", mx.transitions.easing.Strong.easeOut, FWindowMc._y, 143, 0.800000, true);
    clearInterval(closeMenuInterv);
};
var expand = new ContextMenu();
expand.hideBuiltInItems();
var $url1 = new ContextMenuItem("Spill.com MP3 Player v.1.00", url1);
var $tab1 = new ContextMenuItem("-----------------------------------", tab, false, false, true);
var $url3 = new ContextMenuItem("Embed this widget", url3);
expand.customItems.push($url1, $tab1, $url2, $url3);
expand.onSelect = menuHandler;
_root.menu = expand;
embedMc.onPress = function ()
{
    if (embedMcOpen == false)
    {
        var _loc2 = new mx.transitions.Tween(mainWindowMc, "_x", mx.transitions.easing.Strong.easeOut, mainWindowMc._x, -421, 0.400000, true);
        embedMcOpen = true;
        clearInterval(closeMenuInterv);
        _root.closeMenuFunction();
    }
    else
    {
        _loc2 = new mx.transitions.Tween(mainWindowMc, "_x", mx.transitions.easing.Strong.easeOut, mainWindowMc._x, 15, 0.400000, true);
        embedMcOpen = false;
        clearInterval(closeMenuInterv);
    } // end else if
};
embedMc.onRollOver = function ()
{
    this.gotoAndStop(2);
};
embedMc.onRollOut = function ()
{
    this.gotoAndStop(1);
};
var mouseMovex = new Object();
mouseMovex.onMouseMove = function ()
{
    clearInterval(infoChangeInterv);
    infoChangeInterv = setInterval(infoChange, 5000);
    infoChange = function ()
    {
        clearInterval(infoChangeInterv);
    };
    if (isOpen || embedMcOpen)
    {
        clearInterval(closeMenuInterv);
        closeMenuFunction();
    } // end if
};
Mouse.addListener(mouseMovex);
var volOn = true;
volOnOff_mc.onRelease = volOnOff_mc.onReleaseOutside = function ()
{
    if (volOn)
    {
        this.gotoAndStop(2);
        mySound.setVolume(0);
    }
    else
    {
        volOn = true;
        this.gotoAndStop(1);
        mySound.setVolume(curTrackVolume);
    } // end else if
};
volOnOff_mc.onRollOver = function ()
{
    this._alpha = 100;
};
volOnOff_mc.onRollOut = function ()
{
    this._alpha = 80;
};


And the pertinent code:
Code: Select all
var volOn = true;
volOnOff_mc.onRelease = volOnOff_mc.onReleaseOutside = function ()
{
    if (volOn)
    {
        this.gotoAndStop(2);
        mySound.setVolume(0);
    }
    else
    {
        volOn = true;
        this.gotoAndStop(1);
        mySound.setVolume(curTrackVolume);
    } // end else if
};
fungusmonkey
 
Posts: 37
Joined: Tue Aug 05, 2008 2:04 am
Flash Version: Adobe Flash CS5

Return to Actionscript 2.0

Who is online

Users browsing this forum: No registered users and 0 guests