Would anyone be able to assist, and tell me why am I getting a 
" 1120: Access of undefined property MathUtil." and a 
"1180: Call to a possibly undefined method MathUtil." error.. 

here is the code below..

import com.bigspaceship.util.math.*;

myMathUtil:MathUtil = new MathUtil();

var num = MathUtil.getRandom(4,100);

*************************************
package com.bigspaceship.util.math{
    class MathUtil {

        private var min_num:int = 0 
        private var max_num:int = 0
        
        public function MathUtil() {
            trace("lollolol");
        }

        static public function getRandom(min_num:int, max_num:int) {
            //return min_num + Math.floor(Math.random() * (max_num + 1 - 
min_num));
        }


        static public function getRandomFloat(min_num:int, max_num:int) {
            //return (min_num + Math.random() * (max_num - min_num));
        }

        static public function getCenterPoint(num1:int,num2:int) {
            //return (num1 - num2 )/ 2;


        }


    }
}

_________________________________________________________________
Make distant family not so distant with Windows Vista® + Windows Live™.
http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to