SWiSHzone.com Support Forums: Star Rating - SWiSHzone.com Support Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Star Rating Rate Topic: -----

#1 User is offline   nevri 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 53
  • Joined: 22-August 06
  • Gender:Male

Posted 07 November 2009 - 01:56 AM

Pls there is Star Rating System in flash ? thx
0

#2 User is offline   Wolf Gross 

  • Advanced Member
  • PipPipPip
  • Group: Moderator
  • Posts: 19,916
  • Joined: --
  • Gender:Male
  • Location:Perth/Australia

Posted 07 November 2009 - 01:12 PM

...what's a "Star Rating System"?

wolf
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified
0

#3 User is offline   crslz 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 1,475
  • Joined: 09-June 05
  • Gender:Male
  • Location:Belgium, West-vl (dutch language)
  • Interests:html, swish, php, flash, photoshop, 3D design, hardware, ubuntu, windows..

Posted 07 November 2009 - 05:59 PM

hi,

guess you mean this

Posted Image

I have never seen it before in swishmax.. but it's easy to build, the calculation can be done with swishmax but you'll need php to external txt file to store/load the total votes and the rating value..

- you'll need to draw a yellow bar (as background bar) the width = 100% (total width from 5 stars)
- draw 5 stars
- first time, php variable rating = 0
- every star has some code, onpress star 1, rating + 1.. onpress star 2, rating +2.. onpress star 3, rating +3... etc...
- to display the average rating score you can do something like this

a example

visitor 1 press star 5.. rating total = 5
visitor 2 press star 3.. rating total = 8
visitor 3 press star 4.. rating total = 12

rating total = 12 / 3 visitors = average rating score = 4

4 = 80% width for the yellow background bar = 4 stars are yellow, the 5 isn't

grtz

This post has been edited by crslz: 07 November 2009 - 08:06 PM

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users