# How to create a star rating system

**URL:** https://forum.kirupa.com/t/how-to-create-a-star-rating-system/261269
**Category:** Uncategorized
**Created:** [May 25, 2008, 1:13pm UTC](https://forum.kirupa.com/t/how-to-create-a-star-rating-system/261269 "2008-05-25T13:13:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![RIT\_FlashKid](https://avatars.discourse-cdn.com/v4/letter/r/5daacb/32.png) [@RIT\_FlashKid](https://forum.kirupa.com/u/RIT_FlashKid)
#### Post date: [May 25, 2008, 1:13pm UTC](https://forum.kirupa.com/t/how-to-create-a-star-rating-system/261269/1 "2008-05-25T13:13:21Z")

</div>

Hi All,  
I’ve begun creating a star rating system but am unsure how to go about the actual storing and recalling of information when the user selects the number of stars. You can see a very stretched out .swf file [here](http://bjcmedia.com/starrankingsystem.swf) of what I am trying to do. I am not sure whether I need the as3 to write the data to a text file then pull the data from the same file? Any ideas would be great.  
Thanks in advance,  
BC

---

<div class="post-metadata">

### Author: ![yaim0310](https://avatars.discourse-cdn.com/v4/letter/y/85e7bf/32.png) [@yaim0310](https://forum.kirupa.com/u/yaim0310)
#### Post date: [May 25, 2008, 6:56pm UTC](https://forum.kirupa.com/t/how-to-create-a-star-rating-system/261269/2 "2008-05-25T18:56:06Z")

</div>

I don’t know if this is what you are looking for…  
[Storing local data](http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000319.html)

---

<div class="post-metadata">

### Author: ![Anogar](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Anogar](https://forum.kirupa.com/u/Anogar)
#### Post date: [May 25, 2008, 7:04pm UTC](https://forum.kirupa.com/t/how-to-create-a-star-rating-system/261269/3 "2008-05-25T19:04:16Z")

</div>

You’re going to need some sort of server side interaction to keep track of the data. Could be something very simple like PHP writing to a flat text file.

---

<div class="post-metadata">

### Author: ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)
#### Post date: [May 26, 2008, 8:07am UTC](https://forum.kirupa.com/t/how-to-create-a-star-rating-system/261269/4 "2008-05-26T08:07:48Z")

</div>

1. use graphics as you want to show the ranking.

2. have radio buttons laid out for the user to select the ranking.

3. when the user selects a radio button and submits… change the scene and show him/her that thank you for rating…

4. in background use URLloader to send the radio buttons value to php /whatever at server end. php will put it up in database/textfile

5. the stars set should be a parallel swf which loads data from a server end file php or whatever.  
on page load swf uses URLloader to load data from php … which in turn fetched that data from database/textfile.
