Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _root.qnty.onChanged = function()
- {
- estimatedP = 0;
- qty = Number(qnty.text);
- if(qty < 600) {
- estimatedP = qty*1;
- } else if (qty >= 600 && qty < 1200) {
- estimatedP = qty*0.39;
- } else if (qty >= 1200 && qty < 2500) {
- estimatedP = qty*0.29;
- } else if (qty >= 2500 && qty < 5000) {
- estimatedP = qty*0.27;
- } else {
- estimatedP = qty*0.23;
- }
- alert(estimatedP);
- estprice.text = estimatedP;
- }
Add Comment
Please, Sign In to add comment