[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Getting ActionScript Error

Asked by DIGITALUnderworld in ActionScript

package gs.easing
{

    public class Expo extends Object
    {

        public function Expo()
        {
            return;
        }// end function

        public static function easeOut(param1:Number, param2:Number, param3:Number, param4:Number) : Number
        {
            return param1 == param4 ? (param2 + param3) : (param3 * (-Math.pow(2, -10 * param1 / param4) + 1) + param2);
        }// end function

        public static function easeIn(param1:Number, param2:Number, param3:Number, param4:Number) : Number
        {
            return param1 == 0 ? (param2) : (param3 * Math.pow(2, 10 * (param1 / param4)--) + param2 - param3 * 0.001);
        }// end function

        public static function easeInOut(param1:Number, param2:Number, param3:Number, param4:Number) : Number
        {
            if (param1 == 0)
            {
                return param2;
            }// end if
            if (param1 == param4)
            {
                return param2 + param3;
            }// end if
            var _loc_5:* = param1 / (param4 / 2);
            param1 = param1 / (param4 / 2);
            if (_loc_5 < 1)
            {
                return param3 / 2 * Math.pow(2, 10 * param1--) + param2;
            }// end if
            return param3 / 2 * (-Math.pow(2, -10 * --param1) + 2) + param2;
        }// end function

    }
}
[+][-]04/08/09 11:58 AM, ID: 24100611Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20100315-EE-VQP-143 - Hierarchy / EE_QW_3_20080625