Poll
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Poll

  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    3

    Unhappy

    Do you know how to make a poll meter?
    Then I mean: I someone pushes button RED the left bar goes at 100% and the Right Bar goes to 0%.
    Then there is pushed again; This time the Left bar goes to 50% and the right bar goes to 50%, And so on....

    Is this possible?

    ------------------

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Posts
    597

    Post

    There are quite a few ways to achieve this and without specific knowledge of what you require its hard to suggest exactly what is needed, but here is a starter

    Create a movie clip and then create two instances of it one called "right" and one called "left"

    Use the set property command to vary their sizes. For example

    Set Property ("/right", Y Scale) = 25
    Set Property ("/left", Y Scale) = 75

    Flash scales in relation to the movie clip's registration point so depending on what you need to do you may need to reposition the movie clip and/or registration point.

    Hope this helps,

    Rich.

  3. #3
    Hack
    Join Date
    Mar 2000
    Location
    Madison, WI
    Posts
    1,753

    Post

    I assume you want to poll several different people that visit your site. Flash alone can't save variables to a file, so you won't be able to keep track of all the votes unless you use database / scripting. maybe take this question over to that area of the message boards.

    As for drawing the actual poll meter, the solution above is fine. Make two bars, both going to 100%. The set property ("no", Y Scale) = no / (no+yes) and set property ("yes", Y Scale) = yes / (no+yes)

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

Poll by Flashkit.com