I faced up a problem, with my code :(. I have a EventListener and a variable into it which I want to sum. The problem is that I can’t do that. Here is my code:
public function red() {
			this.buttonMode = true;
			koli4estvo.addEventListener(Event.CHANGE, onChange);
			edcena.addEventListener(Event.CHANGE, onChange);
			_obsuma = 0;
			_sravnenie = 0;
			
			var_listener();
			
			
			
function var_listener():void
{
if ((_sravnenie != _stoinost) && (_sravnenie > _stoinost))  ;
_sravnenie = _stoinost;
_oblag[_valuee] = _sravnenie;
 for (var i:Number= 0; i < _oblag.length; i ++)
 {
	
	_sum = _sum + _oblag*;
	trace (_sum);
 }
			}
		}
		private function onChange(event:Event):void {
			_koli4estvo = Number(koli4estvo.text);
			_edcena = Number(edcena.text);
			_stoinost = _koli4estvo * _edcena;
			rzl();
			
			
			
			function rzl():void
			{
			stoinost.text = String(_stoinost);
			_valuee = num.text;
			
			
			}
			
		}
		
I want to sum all the _stoinost values I get :). Please help. 10x in advance 