A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: this doesn't count up

  1. #1
    I'm trying to make a order for wich allows you type in the articel and the the quantity. That's no problem. but a want to count up the quantity and I can't do it. please help

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    Just use,

    Set variable: "/:total" = /:price + /:tax +/:whatever

    Just use a button or frame action to total it. ~ mgb

  3. #3
    Am I stupid. It says it has a error when i use this script or it gives the variable names
    [Edited by michael123 on 12-25-2000 at 03:30 PM]

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    Make sure the " = " is checked when you add the variables. They must be expressions when you add them. ~ mgb

    ps just click the 'ab' button beside the field for the variables.

  5. #5
    i'm sory to bother you again but all it says when i type 2+4 is 24 instead of 6

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    Can you copy and paste your code into a post and send it exactly as is? It should work...mgb

  7. #7
    I'm sorry but I got sick of it so I trew it away. Is it possible you make one for me?

  8. #8
    Senior Member
    Join Date
    Aug 2000
    Posts
    2,235
    When you set the variables that are to be added check the " = " sign. That's all you should need to do as well as checking the ' = ' for the sum....When you put the cod e in the only variable with "" should be the total variable.

    Set variable: "/:total" = /:a + /:b + /:c

    mgb

  9. #9
    hey i think it's working now thanx

  10. #10
    Junior Member
    Join Date
    Oct 2000
    Posts
    4

    Other solution : very usefull !!!

    You can make the first prog work by modifying it that way :

    Set variable: "/:total" = Number(/:price) + Number(/:tax) + Number(/:whatever)

  11. #11
    yep that what i found out now i use

    on (release) {
    total = String (number(quan1)+number(quan2)+number(quan3));
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center