Mike Chambers

code = joy

New Poll : What is your favorite game system?

with 7 comments

I have put up a new poll on the right of the page. This weeks question is “What is your favorite gaming system”?

The previous poll went well with over 500 responses. According to poll, Pollster is by far the most popular item on DRK 4.

This poll is run by Pollster, which is available on DRK 4. More info here.

Written by mikechambers

August 13th, 2003 at 2:34 pm

Posted in DRK

7 Responses to 'New Poll : What is your favorite game system?'

Subscribe to comments with RSS

  1. On your Results
    Sorry to bug you here but do you know how you made the legend move the pie wedges? I have a pie chart thing I am working on but the legend doesn’t move the pie wedges like yours.

    Ed

    13 Aug 03 at 3:23 pm

  2. If you have DRK 4 (which I am assuming you do), you can see the code for the Flash part of pollster.

    Specifically, look at:

    classes\ResultScreenClass.as

    In init, there is:

    ResultsScreenClass.prototype.init = function()
    {
    this.total = 0;
    this.pie.showLabels(false);

    this.pie.addListener(this);
    this.legend.addListener(this);
    }

    and then the listener is:

    ResultsScreenClass.prototype.onSelect = function(chart, index)
    {
    this.pie.setSelectedIndex(index, false);
    }

    Basically, the same function is used as the onSelect listener for the Pie and Legend components.

    Hope that helps…

    mike chambers

    mesh@macromedia.com

    mike chambers

    13 Aug 03 at 3:31 pm

  3. Thanks Mike,

    Got another question for you is their a way to add many bars to a graph from info from a text file. I am having a horrible time trying to get it to work of course the drk4 bar chart.

    I am using the dataproviderclass to put it in but i can only get hardcoded values into the graph.

    If you can help thanks again

    Ed

    14 Aug 03 at 4:32 pm

  4. Yes. Just load the data and convert it to a dataprovider in the correct format.

    Do you have an example of the format of the data in the text file?

    mike chambers

    mesh@macromedia.com

    mike chambers

    14 Aug 03 at 5:12 pm

  5. Yeah it is a comma delineated list of numbers just like this

    3,4,5,6,7,3,2,6

    but when I set them to a variable like

    var number_info = “3,4,5,6,7,3,2,6″;

    then do the

    dp.addItem({data: [number_info] });

    it doesn’t do anything

    i have also tried using an array instead like

    number_info[0] = 3;
    number_info[1] = 40;

    dp.addItem( {data: [number_info[0],number_info[1]]} );

    Ed

    14 Aug 03 at 6:56 pm

  6. try this:

    var number_info = “3,4,5,6,7,3,2,6″;

    dp.addItem({data:number_info.split(“,”)});

    you may need to convert each item to a number, since they are strings right now.

    mike chambers

    mesh@macromedia.com

    mike chambers

    14 Aug 03 at 10:42 pm

  7. I need some help with the Flash charting
    components.
    First where can I get info on all the methods
    and properties of the chart objects.
    Second, does anybody know how to add
    two data sets on the same graph: for example putting two different lines on the same graph(if possible).

    pablo

    pablo

    12 Feb 04 at 12:43 pm

Leave a Reply