PDA

View Full Version : How to create a star rating system....



RIT_FlashKid
May 25th, 2008, 10:13 AM
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

yaim0310
May 25th, 2008, 03:56 PM
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)

Anogar
May 25th, 2008, 04:04 PM
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.

sparkdemon
May 26th, 2008, 05:07 AM
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.