Answered
simple expression evaluator
Hi all,
need some help with an expression evaluation:
user inputs a string like "x*x+dx*dy" or "x*dx-y*dy" and I would like Flash to covert this to an actionscriptline so in the code it appears like:
x=3;
dx=0.6;
dy=0.1;
aa=x*x+dx*dy;
trace(aa);
and the output would be: 9.06
Now my problem is converting the operator.
Anybody for a solution for this newbie?
thnx
Rob
need some help with an expression evaluation:
user inputs a string like "x*x+dx*dy" or "x*dx-y*dy" and I would like Flash to covert this to an actionscriptline so in the code it appears like:
x=3;
dx=0.6;
dy=0.1;
aa=x*x+dx*dy;
trace(aa);
and the output would be: 9.06
Now my problem is converting the operator.
Anybody for a solution for this newbie?
thnx
Rob