forked from: Main

by bradsedito
♥0 | Line 40 | Modified 2013-02-22 09:45:35 | MIT License
play

ActionScript3 source code

/**
 * Copyright bradsedito ( http://wonderfl.net/user/bradsedito )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/aDI7
 */






package 
{
    import flash.display.*;
    import flash.events.*;
    import flash.text.*;
    import flash.trace.*;


    public class TheEquation extends Sprite 
    {
        private var equation:String;
        private var criticals:Array;
        private var debug:TextField;
        private var _answerText:TextField;
        private var _answer:String;
        
        public function TheEquation() 
        {
            equation = "|(  (x-1)+(x-2)  )|";    //|x-1|+|x-2|"; 
            debug = new TextField();
            this.addChild(debug);
            debug.x = 100;
            debug.y = 20;
            
            Parse( equation );
            debug.text = equation;
        }


        private function Parse(s:String):Boolean
        {
            s = "XYN";
            return true;
            
            _answerText = new TextField();
            _answerText.text = _answer;
            _answer.x = 100;
            _answer.y = 20;
            this.addChild( _answer );
            trace( s );
        }


        private function F(x:Number):Number
        {
            return 0;    
        }


    }
}