A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Addition problem

Threaded View

  1. #1
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323

    Addition problem

    Hey guys, I managed to make a voting system by myself!

    once you vote, it will go to another flash movie (results.swf) and in the results movie it will say how many votes have been made for each question.

    also I have made a blue rectangle behind each vote count which i want its xscale to be the percentage of that vote compared to the others.

    what I did was I made a variable called tally.

    here is the script:

    tally = vote1+vote2+vote3+vote4;

    lets say vote 1 is 5, vote2 is 7, and vote3 and vote4 are both 0.

    i made a textField to show the tally.

    instead of 8 coming up, it would come up 1700.

    If i can find out how to stop it from putting them infront of eachother and get them to ADD UP, that would be great!

    and thats where flashkit comes in...


    NOTE: hopefully this doesn't have something to do with the fact that all of the numbers are being read from seperate txt files.
    Last edited by bounceboy; 04-14-2009 at 10:31 AM.

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