Need Help with Pie Chart

Hi guys,
I am trying do generate a pie chart using JSP or Servlet. I tried out the codings at the www.builder.com site.
But it's not working as it returns "index array out of bounds 0" error.
Has anyone tried it before...
Any help would be much appreciated
the url for the site
http://builder.com.com/5100-6370-1051766.html?tag=search

The comple JSP code from the site is at :
http://builder.com.com/5110-6370-1051781.html

Similar Messages

  • Need help with pie chart code

    I am new to Java and am having problems and I am in need of some help. I have written the code for my Mortgage Calculator but do not know how to get my chart to work. I found an example of the chart code in my text book but I am not sure if I wrote it wrong. When I run the MortCalc code it compiles but the Pie Chart code won't. I tried to run the chart code by itself but it prints out another calculator. My question is 1.) Is my chart code written wrong? and 2.) How do i enter it into my MortCalc code so that I get my chart?
    **Below I have included the assignment(so you know what I am doing exactly) and below that the pie chart code just in case you have questions. Thanks for any advice you can give.
    **If you need the rest of the code I can post it too. It was too long to post with the pie chart code.
    Assignment:
    Write the program in Java(w/ a GUI) and have it calculate and display the mortgage payment amount from user input of the amount of the mortgage adn the user's selection from a menu of availible mortgage loans:
    --7 yrs @ 5.35%
    --15 yrs @ 5.5%
    --30 yrs @ 5.75%
    Use an array for the mortgage data for the different loans. Read the interst rates to fill the array from a sequential file. Display the mortgage payment amount followed by the loan balance and interest paid for each payment over the term of the loan. Add graphics in the form of a chart.Allow the user to loop back and enter a new amount and make a new selection of quit. Please insert comments in the program to document the program.
    CODE:
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.Rectangle;
    //Class to hold a value for a slice
    public class PieValue {
    double value;
    Color color;
    public PieValue(double value, Color color) {
    this.value = value;
    this.color = color;
    // slices is an array of values that represent the size of each slice.
    public void drawPie(Graphics2D g, Rectangle area, PieValue[] slices) {
    // Get total value of all slices
    double total = 0.0D;
    for (int i=0; i<slices.length; i++) {
    total += slices.value;
    // Draw each pie slice
    double curValue = 0.0D;
    int startAngle = 0;
    for (int i=0; i<slices.length; i++) {
    // Compute the start and stop angles
    startAngle = (int)(curValue * 360 / total);
    int arcAngle = (int)(slices[i].value * 360 / total);
    // Ensure that rounding errors do not leave a gap between the first and last slice
    if (i == slices.length-1) {
    arcAngle = 360 - startAngle;
    // Set the color and draw a filled arc
    g.setColor(slices[i].color);
    g.fillArc(area.x, area.y, area.width, area.height, startAngle, arcAngle);
    curValue += slices[i].value;

    // Draw each pie slice
    double curValue = 0.0D;
    int startAngle = 0;
    for (int i=0; i<slices.length; i+) {
    // Compute the start and stop angles
    startAngle = (int)(curValue 360 / total);
    int arcAngle = (int)(slices.value * 360 / total);Look here and i think you will find some syntax errors.
    Count the brackets.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Need help on Pie chart

    Please check the xml given here. My requirement is as
    group1 on M_KOG3_conc (split by page break)
    - group2 on MARKT_LINE_CONC
    - pie chart showing % of QTY_TIRE_SO_FTP with respect to S2_SEGMENT2(condition:S2_SEGMENT2 not null)
    - end of group2
    end of group1
    I tried with creating two groups on M_KOG3_CONC then by MARKT_LINE_CONC outside the chart, conditional region for S2_Segment2!='' and in pie chart used value=QTY_TIRE_SO_FTP and label=S2_SEGMENT2; checked 'Group Data' option, 'chart is inside group' option, but it is coming blank in preview.
    <?xml version="1.0" encoding="UTF-8" ?>
    <DataSet>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CP20: Corporate PKW</S2_SEGMENT2>
    <RIM_IN_INCH>15</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>2415</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>3.96226415094339622641509433962264150943E-01</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CP20: Corporate PKW</S2_SEGMENT2>
    <RIM_IN_INCH>16</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>1442</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>2.36587366694011484823625922887612797375E-01</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CP20: Corporate PKW</S2_SEGMENT2>
    <RIM_IN_INCH>17</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>10</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>1.64068908941755537325676784249384741592E-03</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CP20: Corporate PKW</S2_SEGMENT2>
    <RIM_IN_INCH />
    <QTY_TIRE_SO_FTP>3867</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>6.34454470877768662838392124692370795734E-01</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CP22: Competitor PKW</S2_SEGMENT2>
    <RIM_IN_INCH>15</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>576</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>9.45036915504511894995898277276456111567E-02</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>2.60416666666666666666666666666666666667E-02</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CP22: Competitor PKW</S2_SEGMENT2>
    <RIM_IN_INCH>16</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>235</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>3.8556193601312551271534044298605414274E-02</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1.82978723404255319148936170212765957447E-01</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CP22: Competitor PKW</S2_SEGMENT2>
    <RIM_IN_INCH />
    <QTY_TIRE_SO_FTP>811</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>1.33059885151763740771123872026251025431E-01</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>7.15166461159062885326757090012330456227E-02</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT10: Corporate LKW</S2_SEGMENT2>
    <RIM_IN_INCH>17.5</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>327</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>5.36505332239540607054963084495488105004E-02</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT10: Corporate LKW</S2_SEGMENT2>
    <RIM_IN_INCH>19.5</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>350</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>5.7424118129614438063986874487284659557E-02</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT10: Corporate LKW</S2_SEGMENT2>
    <RIM_IN_INCH>20</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>6</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>9.84413453650533223954060705496308449549E-04</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT10: Corporate LKW</S2_SEGMENT2>
    <RIM_IN_INCH>22.5</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>480</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>7.87530762920426579163248564397046759639E-02</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT10: Corporate LKW</S2_SEGMENT2>
    <RIM_IN_INCH />
    <QTY_TIRE_SO_FTP>1163</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>1.90812141099261689909762100082034454471E-01</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT12: Competitor LKW</S2_SEGMENT2>
    <RIM_IN_INCH>16</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>39</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>6.39868744872846595570139458572600492207E-03</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>0</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT12: Competitor LKW</S2_SEGMENT2>
    <RIM_IN_INCH>17</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>2</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>3.28137817883511074651353568498769483183E-04</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>0</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT12: Competitor LKW</S2_SEGMENT2>
    <RIM_IN_INCH>17.5</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>54</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>8.85972108285479901558654634946677604594E-03</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>3.7037037037037037037037037037037037037E-02</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT12: Competitor LKW</S2_SEGMENT2>
    <RIM_IN_INCH>19.5</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>20</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>3.28137817883511074651353568498769483183E-03</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>0</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT12: Competitor LKW</S2_SEGMENT2>
    <RIM_IN_INCH>22.5</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>58</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>9.51599671862182116488925348646431501231E-03</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>0</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT12: Competitor LKW</S2_SEGMENT2>
    <RIM_IN_INCH />
    <QTY_TIRE_SO_FTP>173</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>2.83839212469237079573420836751435602953E-02</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1.15606936416184971098265895953757225434E-02</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R02: CES - New Tire</MARKT_LINE_CONC>
    <S2_SEGMENT2 />
    <RIM_IN_INCH />
    <QTY_TIRE_SO_FTP>6014</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>9.86710418375717801476620180475799835931E-01</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>8.46358496840705021616228799467908214167E-01</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R03: CES - Retreads</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT11: Corporate RE LKW</S2_SEGMENT2>
    <RIM_IN_INCH>22.5</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>13</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>2.13289581624282198523379819524200164069E-03</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R03: CES - Retreads</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT11: Corporate RE LKW</S2_SEGMENT2>
    <RIM_IN_INCH />
    <QTY_TIRE_SO_FTP>13</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>2.13289581624282198523379819524200164069E-03</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R03: CES - Retreads</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT13: Competitor RE LKW</S2_SEGMENT2>
    <RIM_IN_INCH>17.5</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>29</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>4.75799835931091058244462674323215750615E-03</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>0</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R03: CES - Retreads</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT13: Competitor RE LKW</S2_SEGMENT2>
    <RIM_IN_INCH>19.5</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>18</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>2.95324036095159967186218211648892534865E-03</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>0</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R03: CES - Retreads</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT13: Competitor RE LKW</S2_SEGMENT2>
    <RIM_IN_INCH>22.5</RIM_IN_INCH>
    <QTY_TIRE_SO_FTP>21</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>3.44544708777686628383921246923707957342E-03</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>0</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R03: CES - Retreads</MARKT_LINE_CONC>
    <S2_SEGMENT2>CT13: Competitor RE LKW</S2_SEGMENT2>
    <RIM_IN_INCH />
    <QTY_TIRE_SO_FTP>68</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>1.11566858080393765381460213289581624282E-02</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>0</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC>R03: CES - Retreads</MARKT_LINE_CONC>
    <S2_SEGMENT2 />
    <RIM_IN_INCH />
    <QTY_TIRE_SO_FTP>81</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>1.32895816242821985233798195242001640689E-02</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>1.60493827160493827160493827160493827161E-01</POLICY_FITTMENT_FTP>
    </ROW>
    <ROW>
    <M_KOG3_CONC>574: CHARTERWAY</M_KOG3_CONC>
    <MARKT_LINE_CONC />
    <S2_SEGMENT2 />
    <RIM_IN_INCH />
    <QTY_TIRE_SO_FTP>6095</QTY_TIRE_SO_FTP>
    <SHARE_FITTED_TIRE>1</SHARE_FITTED_TIRE>
    <POLICY_FITTMENT_FTP>8.37243642329778506972928630024610336341E-01</POLICY_FITTMENT_FTP>
    </ROW>
    </DataSet>
    Please tell me the steps if it is possible through wizard or give me the xsl if wizard is not sufficient.
    Kind Regards.

    Found this by searching for PieChart in this forum: drawing pie charts.

  • Need help with graph/chart

    Heey everyone,
    I am currently using a Spider8 and Labview to gain data from sensors, after that i use Labview to process the data to charts or graphs. Alltough I have 2 small problems using a chart/graph:
    1: For some charts/graphs i want to use 1 Y-axis (example: volts or current) and 1 X-axis, time. I want this time to be like a clock which only counts seconds (example: 0-100sec), using absolute or relative time for formatting is not an option because they count way too much/fast. There is an example of these kind of charts/graphs in the appendix: currents vs time measurement.
    2: For most of the other charts/graphs i want to use several Y-axis (example for a motor: current, RPM and torque) and i want to use a X-axis which can go "back" (example for a motor: rotations). There is an example of these kind of charts/graphs in the appendix: Torque measurement.
    I dont have any idea of how to do this the right way, so your help is very welcome
    Thanks!
    Currently using labview 8.2.1
    Solved!
    Go to Solution.
    Attachments:
    Current-vs-time measurement.JPG ‏63 KB
    Torque measurement.JPG ‏136 KB

    Could anyone help me please? I have used the XY-graph for both graphs i wanted to make and they work. The point is I want to use an XY-graph (with several Y-axis) so i can plot in several different signals. For example we have 2 signals for the XY-graph: one is going from -10 to +10 and the other from -150 to +150 but i`ve created a graph which has 2 Y-axis (one from -20 to +20 for signal 1, one from -200 to +200 for signal 2). Well how am I able to say that signal 1 is for y-axis 1 and signal 2 is for Y-axis 2. I have tried to use a "merge signals" to merge signal 1 and 2 for the Y-axis but this doesn`t really work, it only shows me 1 of the 2 signals for Y-axis 1 depending which one is on top in the merge signals block. PS: I have posted the vi which im testing this problem with in the appendix.
    If anyone knows how to solve this problem, please help me !
    Currently using labview 8.2.1
    Attachments:
    XYgraph-test.vi ‏197 KB

  • Need help with "pie" graphic

    Hi, I'm trying to create a background that has a circular pie kind of effect that's popular these days where each slice of the pie is a slightly different color to create a cool background. This isn't the greatest example but check the red and dark red sun ray effect here ...
    http://gainesvillesuzuki.com/images/ad_one.jpg
    My question is, what is the easiest way to create this in illustrator?? I've been creating one slice with the pen tool, copying it while I rotate it with the rotate tool after I change the rotate axis to the middle , but doing that like 30-40 times gets really tedious, plus the pie slices never fit exactly together at the end (because the slices aren't divisions of 360).
    If anyone knows a better way I'm all ears, thanks!

    This kind of pie graph is easy. Double-click on the graph tool and select the pie graph. Drag a square. Then enter as many digits as you need (always the same digit) in the top line of the data spreadsheet. Use the right arrow key to hop between boxes. You will need to fill in as many boxes as you need slices in the pie graph.
    When you are satisfied with the number of slices, copy/drag the graph and ungroup it. Now you can colour the slices as you wish.
    It's a good idea to keep the original grouped graph in case you need to add slices in the data spreadsheet.

  • Need help with powerpoint charts

    i can't get started in building a chart.  it tells me to close a dialog box but there are none open.  can anyone help?

    Are you using Keynote to convert a PowerPoint file to keynote, or are you using the Powerpoint application?
    Please clarify this and supply details of OS and application versions.

  • Need help with a Chart

    Hi, I apologize if this is the wrong area to enter this question but I really need to find a solution.  Please let me know where I should be posting this if it is in the wrong location.  I have a report that has a bar chart that will show me gps usage data for all vehicles in megs.   I have a formula called buckets that looks like this:
    if {@megs} < .10 then "0.00 to 0.10" else
    if {@megs} < .50 then "0.11 to 0.50" else
    if {@megs} < .69 then "0.51 to 0.69" else
    if {@megs} < .99 then "0.70 to 0.99" else
    if {@megs} < 1.5 then "1.0 to 1.5" else
    if {@megs} < 2.0 then "1.6 to 2.0" else
    if {@megs} < 3.0 then "2.1 to 3.0" else
    if {@megs} < 5.0 then "3.1 to 5.0";
    I also have a count of all vehicles called {@assetcount}
    I want the chart to show all the buckets regardless if there is data for them or not.  That way the bars will be in the same location for every one of my accounts.  Is this possible because currently I only get the buckets that have data.  I hope that makes sense.  Thanks.

    Hi Tammy
    I have tried creating a similar report where I didn't had any data for a country. When I create a achrt on it it shows me the bars for all the countries(also for the countries that dont have data).
    Please let me know what values are you grouping on and also let me know whats all fields and formulas have you selected in the chart expert.Are you using the defined formula to be displayed on the chart?
    Thanks
    Pradeep Hulke

  • Need help with image charts from query wizard

    When I try to make an image chart all I get is a broken pic. I am running Windows NT so its not a unix problem. I did however find this error in my jserv.log when I tried to display the chart.Can anyone tell me what it means?
    [09/05/2001 08:45:12:187 PDT] java.io.FileNotFoundException: http://national/pls/portal30/PORTAL30.CHART_0509084315.show?p_format=XML
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:528)
    at oracle.webdb.chart.ChartServlet.doGet(ChartServlet.java:36)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java, Compiled Code)
    at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
    at java.lang.Thread.run(Thread.java:479)
    null

    Thanks for the link! I'm able to do a File Select via JFileChooser and display the image onto a JLabel using the ImageIcon method (many thanks for that!). Currently, this is what I have (ImageFilter() extends FileFilter):
         ImageIcon photoIcon;
         JLabel photoLabel = new JLabel();
         JFileChooser fc = new JFileChooser();
         <snip>
         private JPanel DPCtr()
              <snip>
              photoIcon = new ImageIcon("default.jpg");
              photoLabel.setIcon(photoIcon);
              photoLabel.setPreferredSize(new Dimension(150, 150));
              <snip>
              return p;
         <snip>
         public void actionPerformed(ActionEvent a)
              if (a.getSource() == browseBut) {
                   fc.setFileFilter(new ImageFilter());
                   int returnVal = fc.showOpenDialog(DiseasePane.this);
                   if (returnVal == JFileChooser.APPROVE_OPTION) {
                        File imgFile = fc.getSelectedFile();
                        try {
                             photoIcon = new ImageIcon(imgFile.toURL());
                        } catch (MalformedURLException e) {
                             System.err.println("Invalid URL");
                        photoLabel.setIcon(photoIcon);
         }

  • Problem with Pie Chart

    Hi Experts!!
    I've a little problem with a Pie Chart, I want to present a Pie Chart with 3 values which are defined on the Data Series, when I deploy I get the message: "Expected exactly 1 data series in XXXXX chart. Extra data series ignored". I don't understand why, because if I try to do a Column Chart with the same information, it works Ok!
    Can anybody help me please?.
    Emilio.

    Multiple data series with Pie Chart is not possible. you must have one series if u r using pie chart

  • Need help with a currently "in-use" form we want to switch to Adobes hosting service

    Hi, I am in desperate need of help with some issues concerning several forms which we currently use a paid third party (not Adobe) to host and "re-distribute through email"...Somehow I got charged $14.95 for YOUR service, (signed up for a trial, but never used it)..and now I am paying for a year of use of the similar service which Adobe is in control of.  I might want to port my form distribution through Adobe in the hopes of reducing the errors, problems and hassles my customers are experiencing when some of them push our  "submit button". (and I guess I am familiar with these somewhat from reading what IS available in here, and I also know that, Adobe is working to alleviate some of these " submit"  issues, so let's don't start by going backwards, here) I need solutions now for my issues or I can leave it as is, If Adobe's solution will be no better for my end users...
    We used FormsCentral to code these forms and it works for the most part (if the end-user can co-operate, and thats iffy, sometimes), but I need help with how to make it go through your servers (and not the third party folks we use now), Not being cruel or racist here, but your over the phone "support techs" are about horrible & I cannot understand them or work with any of them, so I would definitely need someone who speaks English and can understand the nuances of programming these forms, to please contact me back. (Sorry, but both those attributes will be required to be able to help me, so, no "newbie-interns" or first week trainees are gonna cut it).... If you have anyone who fits the bill on those items and would be willing to help us, please contact me back at your earliest convenience. If we have to communicate here, I will do that & I can submit whatever we need to & to whoever we need to.
    I need to get this right and working for the majority of my users and on any platform and OS.
    You may certainly call me to talk about this, and I have given my number numerous times to your (expletive deleted) time wasting - recording message thingy. So, If it's not available look it up under [email protected]
    (and you will probably get right to me, unlike my and I'm sure most other folks',  "Adobe phone-in experiences")
    Thank You,
    Michael Corman
    VinylCouture
    Phenix City, Alabama  36869

    Well, thanks for writing back...just so you know...I started using Adobe products in 1987, ...yeah...back then...like Illustrator 1 & 9" B&W Macs ...John Warnock's Helvetica's....stuff like that...8.5 x 11 LaserWriters...all that good stuff...I still have some of it working on a mac...much of it was stuff I bought. some stuff I did not...I'm not a big fan of this "cloud" thing Adobe has foisted upon the creatives of the world...which I'm sure you can tell...but the functionality and usefulness of your software can not be disputed, so feel free to do whatever we will continue to pay for, ...I am very impressed with CC PS on the 64 bit PC and perhaps I will end up paying you the stipend that you demand for the other services.
    So  I guess that brings us to our problem.. a few years back and at the height of the recession and near bankruptcy myself,  I was damn lucky and hit on something and began a small arts and crafts supply service to sell my products online to a very "niche market" ...I had a unique product and still sell that product (plus others) online...My website is www.vinylcouture.com...Strange? Yes...but there is a market it seems, for everything now, and this is the market I service...Catagorically, these are 99%+ women that use these "adhesive, sticky backed vinyl products"  to make different "craft items" that are just way too various and numerous to go into... generally older women, women who are computer illiterate for the most part...and all this is irrelevant to my problem, but I want you to have every bit of background on this and especially the demographic we are dealing with, so we can get right to the meat of the problem.
    OK...So about two years ago, I decided to offer a "plain sheet" product of a plain colored "stick back" vinyl... it is available in multiple quantities of packs ( like 5 pieces, 10 pieces, 15 pieces, in a packi  & so on)...and if you are still on my site.. go to any  "GO RIGHT TO OUR ORDER PAGE"  button, scroll down a little...and then to the "PLAIN VINYL" section...you will see the Weebly website order process.) You can back out from here, I think,..but, anyway this product is available in 63 colors + or - a few. So then the problem is,  how do they select their individual colors within that (whatever) pack?... .
    So my initial idea was to enable a "selection form" for these "colors" that would be transmitted to me via email as 'part" of the "order process".. We tried getting our customers to submit a  " a list" ( something my competitiors still do, lol, poor bastards)......but that..is just unbelievable..I can't even begin to tell you what a freakin' nightmare that was...these people cannot even count to 10, much less any higher... figuring out what colors to list and send me... well, lets just say, it wasn't working......I had to figure out a better way...Something had to be done.
    So after thinking this all out,  and yeah...due to my total ignorance, i figured that we could make a form with Live Cycle Designer (Now Forms Central)...(back then something that was bundled with Adobe Acrobat Pro), I believe, and thats what this thing was authored in... and it would be all good...LOL!
    Well not so simple...as you well know, Adobe Acrobat would NOT LET YOU EMAIL anything from itself.....it just wouldn't work (and I know why, and all that hooey), but not being one to take NO for answer,.I started looking for a way to make my little gizmo work.. So I found this company that said they can "hijack" (re-direct actually) the request to email, bypass the wah-wah, and re-transmit it to the proper parties.....for less than $100 a year,  I think...its called http://pdf-fillableforms.com/.
    A nice gentleman named Joseph Silva helped us program the thing to go to his servers and back out. Please dont hassle them...I need them...for now..it basically does work...try it...you should get back a copy of the form that you filled out...good luck however,  if you're on MAC OSX or similar...
    I have included a copy of both of our forms (and feel free to fill it out and play with it)...just put test somewhere on it...(and you must include YOUR email or it will balk)..they are supposed to be mostly identical, except one seems to be twice as large....generating a 1.7 meg file upon submission, while the other one only generates a 600K file or so...thats another issue for another day or maybe you can advise on that also...
    OK so far so good......In our shop, once Grandma buys a 10 pack (or whatever), Only then she gets to the link on her receipt page ro the relevant "selection form" ,(this prevents "Filling and Sending"  with "no order" and "no payment", another early problem we had)... which they can click on and it will usually download and open up on their device if all goes well...Then our little form is supposed to be fillable and is supposed to ADD UP all the quantities, so grandma knows how many she is buying and so forth right on the fly,  and even while she changes her mind..., and IT'S LARGE so grandma can see it, and then it TOTALS it all up for them, ( cause remember, they can NOT add)..,  except there is a programming bug (mouse-click should be a mouse-up probably or something..) which makes you click in the blank spaces to get to a correct TOTAL...about 70-80% of our customers can enable all these features and usually the process completes without problems for them especially on PC's running Windows OS and Acrobat Reader X or XI...at least for most... Unfortunately it is still not the "seamless process" I would like or had envisioned for the other folks out there that do have trouble using our form....  Many folks report to us the following issues that we know of.  First of all it takes too much time to load up...We know its HUGE...is there anyway that you can see, to streamline this thing? I would love for it to be more compact...this really helps on the phones and pads as I'm sure you well know.
    Some just tell us,"it WON'T work"....I believe this is because they are totally out of it and dont even have Adobe Reader on their machine, & don't know how to get it ( yes, we provide the links).....or it's some ancient version....no one can stop this one...
    It almost always generates some kind ( at least one time)  of "error message" which we do warn them about..., telling one,  basically that "Acrobat doesnt even like this happening at all, and it could be detrimental to ones computer files", blah-blah...(this freaks grandma out really bad)...& usually they end up not even trying to send it...  and then I get calls that even you wouldn't believe...& If they DO nut up and push the Red "Submit Form" button, it will usually send the thing to us (and also back to them at the "required email address" they furnished on the form, thats what the folks at the "fillable forms place" do) so, if it's performing it's functions, why it is having to complain?. What are we doing wrong?....and how can I fix it?...Will re-compiling it or saving it as a newer version of "FormsCentral" correct any of these problems ?
    Ok, so that should keep you busy for a minute and we can start out with those problems...but the next thing is, how can I take advantage of YOUR re-direct & hosting services?, And will it get rid of the error messages, and the slowness, and the iOS incompatibilities ? (amazingly,  the last iOS Reader version worked almost OK.. but the newest version doesnt seem to work with my form on my iphone4)  If it will enable any version of the iOS to send my form correctly and more transparently, then it might be worth the money...$14.95 a MONTH you say. hmmmmm...Better be good.
    Another problem is, that I really don't need 5000 forms a month submitted. I think its like 70-100 or less....Got any plans for that?  Maybe I'm just not BIG ENOUGH to use Adobe's services, however in this case, I really don't care whose I do use as long as the product works most correctly for my customers as well as us. Like I said, If I'm doing the best I can, I won't change anything, and still use the other third party, If Adobe has a better solution, then i'm all for that as well. In the meantime, Thanks for any help you can provide on this...
    Michael Corman
    VinylCouture.com
    (706) 326-7911

  • Need help with JTextArea and Scrolling

    import java.awt.*;
    import java.awt.event.*;
    import java.text.DecimalFormat;
    import javax.swing.*;
    public class MORT_RETRY extends JFrame implements ActionListener
    private JPanel keypad;
    private JPanel buttons;
    private JTextField lcdLoanAmt;
    private JTextField lcdInterestRate;
    private JTextField lcdTerm;
    private JTextField lcdMonthlyPmt;
    private JTextArea displayArea;
    private JButton CalculateBtn;
    private JButton ClrBtn;
    private JButton CloseBtn;
    private JButton Amortize;
    private JScrollPane scroll;
    private DecimalFormat calcPattern = new DecimalFormat("$###,###.00");
    private String[] rateTerm = {"", "7years @ 5.35%", "15years @ 5.5%", "30years @ 5.75%"};
    private JComboBox rateTermList;
    double interest[] = {5.35, 5.5, 5.75};
    int term[] = {7, 15, 30};
    double balance, interestAmt, monthlyInterest, monthlyPayment, monPmtInt, monPmtPrin;
    int termInMonths, month, termLoop, monthLoop;
    public MORT_RETRY()
    Container pane = getContentPane();
    lcdLoanAmt = new JTextField();
    lcdMonthlyPmt = new JTextField();
    displayArea = new JTextArea();//DEFINE COMBOBOX AND SCROLL
    rateTermList = new JComboBox(rateTerm);
    scroll = new JScrollPane(displayArea);
    scroll.setSize(600,170);
    scroll.setLocation(150,270);//DEFINE BUTTONS
    CalculateBtn = new JButton("Calculate");
    ClrBtn = new JButton("Clear Fields");
    CloseBtn = new JButton("Close");
    Amortize = new JButton("Amortize");//DEFINE PANEL(S)
    keypad = new JPanel();
    buttons = new JPanel();//DEFINE KEYPAD PANEL LAYOUT
    keypad.setLayout(new GridLayout( 4, 2, 5, 5));//SET CONTROLS ON KEYPAD PANEL
    keypad.add(new JLabel("Loan Amount$ : "));
    keypad.add(lcdLoanAmt);
    keypad.add(new JLabel("Term of loan and Interest Rate: "));
    keypad.add(rateTermList);
    keypad.add(new JLabel("Monthly Payment : "));
    keypad.add(lcdMonthlyPmt);
    lcdMonthlyPmt.setEditable(false);
    keypad.add(new JLabel("Amortize Table:"));
    keypad.add(displayArea);
    displayArea.setEditable(false);//DEFINE BUTTONS PANEL LAYOUT
    buttons.setLayout(new GridLayout( 1, 3, 5, 5));//SET CONTROLS ON BUTTONS PANEL
    buttons.add(CalculateBtn);
    buttons.add(Amortize);
    buttons.add(ClrBtn);
    buttons.add(CloseBtn);//ADD ACTION LISTENER
    CalculateBtn.addActionListener(this);
    ClrBtn.addActionListener(this);
    CloseBtn.addActionListener(this);
    Amortize.addActionListener(this);
    rateTermList.addActionListener(this);//ADD PANELS
    pane.add(keypad, BorderLayout.NORTH);
    pane.add(buttons, BorderLayout.SOUTH);
    pane.add(scroll, BorderLayout.CENTER);
    addWindowListener( new WindowAdapter()
    public void windowClosing(WindowEvent e)
    System.exit(0);
    public void actionPerformed(ActionEvent e)
    String arg = lcdLoanAmt.getText();
    int combined = Integer.parseInt(arg);
    if (e.getSource() == CalculateBtn)
    try
    JOptionPane.showMessageDialog(null, "Got try here", "Error", JOptionPane.ERROR_MESSAGE);
    catch(NumberFormatException ev)
    JOptionPane.showMessageDialog(null, "Got here", "Error", JOptionPane.ERROR_MESSAGE);
    if ((e.getSource() == CalculateBtn) && (arg != null))
    try{
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 1))
    monthlyInterest = interest[0] / (12 * 100);
    termInMonths = term[0] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 2))
    monthlyInterest = interest[1] / (12 * 100);
    termInMonths = term[1] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    if ((e.getSource() == CalculateBtn) && (rateTermList.getSelectedIndex() == 3))
    monthlyInterest = interest[2] / (12 * 100);
    termInMonths = term[2] * 12;
    monthlyPayment = combined * (monthlyInterest / (1 - (Math.pow (1 + monthlyInterest,  -termInMonths))));
    lcdMonthlyPmt.setText(calcPattern.format(monthlyPayment));
    catch(NumberFormatException ev)
    JOptionPane.showMessageDialog(null, "Invalid Entry!\nPlease Try Again", "Error", JOptionPane.ERROR_MESSAGE);
    }                    //IF STATEMENTS FOR AMORTIZATION
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 1))
    loopy(7, 5.35);
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 2))
    loopy(15, 5.5);
    if ((e.getSource() == Amortize) && (rateTermList.getSelectedIndex() == 3))
    loopy(30, 5.75);
    if (e.getSource() == ClrBtn)
    rateTermList.setSelectedIndex(0);
    lcdLoanAmt.setText(null);
    lcdMonthlyPmt.setText(null);
    displayArea.setText(null);
    if (e.getSource() == CloseBtn)
    System.exit(0);
    private void loopy(int lTerm,double lInterest)
    double total, monthly, monthlyrate, monthint, monthprin, balance, lastint, paid;
    int amount, months, termloop, monthloop;
    String lcd2 = lcdLoanAmt.getText();
    amount = Integer.parseInt(lcd2);
    termloop = 1;
    paid = 0.00;
    monthlyrate = lInterest / (12 * 100);
    months = lTerm * 12;
    monthly = amount *(monthlyrate/(1-Math.pow(1+monthlyrate,-months)));
    total = months * monthly;
    balance = amount;
    while (termloop <= lTerm)
    displayArea.setCaretPosition(0);
    displayArea.append("\n");
    displayArea.append("Year " + termloop + " of " + lTerm + ": payments\n");
    displayArea.append("\n");
    displayArea.append("Month\tMonthly\tPrinciple\tInterest\tBalance\n");
    monthloop = 1;
    while (monthloop <= 12)
    monthint = balance * monthlyrate;
    monthprin = monthly - monthint;
    balance -= monthprin;
    paid += monthly;
    displayArea.setCaretPosition(0);
    displayArea.append(monthloop + "\t" + calcPattern.format(monthly) + "\t" + calcPattern.format(monthprin) + "\t");
    displayArea.append(calcPattern.format(monthint) + "\t" + calcPattern.format(balance) + "\n");
    monthloop ++;
    termloop ++;
    public static void main(String args[])
    MORT_RETRY f = new MORT_RETRY();
    f.setTitle("MORTGAGE PAYMENT CALCULATOR");
    f.setBounds(600, 600, 500, 500);
    f.setLocationRelativeTo(null);
    f.setVisible(true);
    }need help with displaying the textarea correctly and the scroll bar please.
    Message was edited by:
    new2this2020

    What's the problem you're having ???
    PS.

  • Need help with trim and null function

    Hi all,
    I need help with a query. I use the trim function to get the first three characters of a string. How do I write my query so if a null value occurs in combination with my trim to say 'Null' in my results?
    Thanks

    Hi,
    Thanks for the reply. What am I doing wrong?
    SELECT trim(SUBSTR(AL1.user_data_text,1,3)),NVL
    (AL1.user_data_text,'XX')
    FROM Table
    I want the XX to appear in the same column as the
    trim.The main thing you're doing wrong is not formatting your code. The solution may become obvious if you do.
    What you're saying is:
    SELECT  trim ( SUBSTR (AL1.user_data_text, 1, 3))
    ,       NVL ( AL1.user_data_text, 'XX' )
    FROM    Tablewhich makes it clear that you're SELECTing two columns, when you only want to have one.
    If you want that column to be exactly like the first column you're currently SELECTing, except that when that column is NULL you want it to be 'XX', then you have to apply NVL to that column, like this:
    SELECT  NVL ( trim ( SUBSTR (AL1.user_data_text, 1, 3))
                , 'XX'
    FROM    Table

  • I need help with resetting my ichat. When i try to login now it wont let me... it says "AOL Instant Messenger password" and then "iChat can't log in to ... because your login ID or password is incorrect. How do I reset this if I cant log in?

    I need help with resetting my ichat. When i try to login now it wont let me... it says "AOL Instant Messenger password" and then "iChat can't log in to ... because your login ID or password is incorrect. How do I reset this if I cant log in? When I try to press online the same thing pops up and I have no way of logging in or asking for help.

    Hi,
    iChat (it would help to know which version) can accept Apple IDs as valid AIM Screen Names.
    However if you have iChat 5 or earlier you cannot use ones ending in @me.com or @icloud.com issued by iCloud. (they can be used in iChat 6 or Messages as these versions make a double login to AIM and Apple to allow the use of the password).
    In addition if you are using an Apple ID for an AIM Screen Name the password still needs to keep to the 16 character limit that AIM has.
    AN @mac.com name can be used on any version of iChat  (Until the 30th June 2014)
    As it does not need a double check with Apple you can use it to log in to the AIM Web pages
    Login here with an AIM Name registered at AIM or and @mac.com name and see if you get any suspended account messages.
    Sometimes account can be suspended. Usually because something has triggered the "Unusual Activity" item.
    About a year ago many @mac.com users that travelled out of their own country found themselves suspended when they got home.
    If the Name checks out of if an Apple ID the password in known to be 16 characters or Less then do this:-
    In Lion upwards open a Finder Window and use the Go Menu whilst holding down the ALT key.
    Select the Library that appears in the menu list.
    Navigate to Preferences.
    (If you have version earlier than Lion the just navigate to ~/Library/Preferences (that's the Library in you Home - Little House icon - folder)
    Fnd com.apple.ichat.aim.plist (even if you are using Messages)
    Drag the file to the Trash and Restart the app.
    7:39 pm      Thursday; May 29, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Need help with Airport Express and so on.

    Ok so my main problem before getting into what I need help with here is that our MacBooks and now my iPhone 6 plus isn't staying online. Keep getting booted off and then I either have to select the network again or it will eventually go back on. If anyone has a solution or so please feel free to answer that as well. I'm running on Roadrunner with a Netgear 600 wireless router and a motorola modem. Both of which I'll leave the link to below for a better look.
    My Main Question: So I'm looking at a new wireless router mainly and possibly a new modem. I know Apple products are trustworthy but how good is the Airport Express and other Airport products. Also what is the Maximum speed and Maximum data speed for the cheapest express station and if anyone knows the speeds of the other devices it would be greatly appreciated.

    DSL Router to Netgear 5-port Switch and I used the switch to connect to Airport Extreme, TV, Blue-Ray DVD player and DirecTV Receiver.
    The AirPort Extreme base station (AEBS) is a router so it will do what you need.
    You need to reconfigure your setup. Connect the WAN port of the AEBS to the DSL router. Then connect the Netgear switch to one of the LAN ports on the AEBS. The AEBS will properly share the connection.

  • I need help with shooting in my flash game for University

    Hi there
    Ive tried to make my tank in my game shoot, all the code that is there works but when i push space to shoot which is my shooting key it does not shoot I really need help with this and I would appriciate anyone that could help
    listed below should be the correct code
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    listed below is my entire code
    import flash.display.MovieClip;
        //declare varibles to create mines
    //how much time before allowed to shoot again
    var cTime:int = 0;
    //the time it has to reach in order to be allowed to shoot (in frames)
    var cLimit:int = 12;
    //whether or not the user is allowed to shoot
    var shootAllow:Boolean = true;
    var minesInGame:uint;
    var mineMaker:Timer;
    var cursor:MovieClip;
    var index:int=0;
    var tankMine_mc:MovieClip;
    var antiTankmine_mc:MovieClip;
    var maxHP:int = 100;
    var currentHP:int = maxHP;
    var percentHP:Number = currentHP / maxHP;
    function initialiseMine():void
        minesInGame = 15;
        //create a timer fires every second
        mineMaker = new Timer(6000, minesInGame);
        //tell timer to listen for Timer event
        mineMaker.addEventListener(TimerEvent.TIMER, createMine);
        //start the timer
        mineMaker.start();
    function createMine(event:TimerEvent):void
    //var tankMine_mc:MovieClip;
    //create a new instance of tankMine
    tankMine_mc = new Mine();
    //set the x and y axis
    tankMine_mc.y = 513;
    tankMine_mc.x = 1080;
    // adds mines to stage
    addChild(tankMine_mc);
    tankMine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal(evt:Event):void{
        evt.target.x -= Math.random()*5;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseMine();
        //declare varibles to create mines
    var atmInGame:uint;
    var atmMaker:Timer;
    function initialiseAtm():void
        atmInGame = 15;
        //create a timer fires every second
        atmMaker = new Timer(8000, minesInGame);
        //tell timer to listen for Timer event
        atmMaker.addEventListener(TimerEvent.TIMER, createAtm);
        //start the timer
        atmMaker.start();
    function createAtm(event:TimerEvent):void
    //var antiTankmine_mc
    //create a new instance of tankMine
    antiTankmine_mc = new Atm();
    //set the x and y axis
    antiTankmine_mc.y = 473;
    antiTankmine_mc.x = 1080;
    // adds mines to stage
    addChild(antiTankmine_mc);
    antiTankmine_mc.addEventListener(Event.ENTER_FRAME, moveHorizontal);
    function moveHorizontal_2(evt:Event):void{
        evt.target.x -= Math.random()*10;
        if (evt.target.x >= stage.stageWidth)
            evt.target.removeEventListener(Event.ENTER_FRAME, moveHorizontal);
            removeChild(DisplayObject(evt.target));
    initialiseAtm();
    function moveForward():void{
        bg_mc.x -=10;
    function moveBackward():void{
        bg_mc.x +=10;
    var tank_mc:Tank;
    // create a new Tank and put it into the variable
    // tank_mc
    tank_mc= new Tank;
    // set the location ( x and y) of tank_mc
    tank_mc.x=0;
    tank_mc.y=375;
    // show the tank_mc on the stage.
    addChild(tank_mc);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onMovementKeys);
    //creates the movement
    function onMovementKeys(evt:KeyboardEvent):void
        //makes the tank move by 10 pixels right
        if (evt.keyCode==Keyboard.D)
        tank_mc.x+=5;
    //makes the tank move by 10 pixels left
    if (evt.keyCode==Keyboard.A)
    tank_mc.x-=5
    //checking if the space bar is pressed and shooting is allowed
    if(evt.keyCode == 32 && shootAllow){
        //making it so the user can't shoot for a bit
        shootAllow = false;
        //declaring a variable to be a new Bullet
        var newBullet:Bullet = new Bullet();
        //changing the bullet's coordinates
        newBullet.y = tank_mc.y + tank_mc.width/2 - newBullet.width/2;
        newBullet.x = tank_mc.x;
        //then we add the bullet to stage
        addChild(newBullet);
    if (tank_mc.hitTestObject(antiTankmine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(antiTankmine_mc);
    if (tank_mc.hitTestObject(tankMine_mc))
            //tank_mc.gotoAndPlay("hit");
            currentHP -= 10;
            // remove anti tank mine
            removeChild(tankMine_mc);
        //var maxHP:int = 100;
    //var currentHP:int = maxHP;
    //var percentHP:Number = currentHP / maxHP;
        //Incrementing the cTime
    //checking if cTime has reached the limit yet
    if(cTime < cLimit){
        cTime ++;
    } else {
        //if it has, then allow the user to shoot
        shootAllow = true;
        //and reset cTime
        cTime = 0;
    function updateHealthBar():void
        percentHP = currentHP / maxHP;
        healthBar.barColor.scaleX = percentHP;
        if(currentHP <= 0)
            currentHP = 0;
            trace("Game Over");
        updateHealthBar();

    USe the trace function to analyze what happens and what fails to happen in the code you showed.  trace the conditional values to see if they are set up to allow a shot when you press the key

Maybe you are looking for

  • Session in Flex

    You can Use the following class as a session in flex.. [Bindable] private var session:Session = Session.getInstance(); How to insert data to session session.setAttribute('username','sanka') How to retrive data from session var userName:String=session

  • Error with Soap sender channel

    I have a scenario SOAP->Proxy ..whenever I send a message through SOAP its giving error as below: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Connection S

  • No upload possible

    hi, I've just installed itunes on my computer (windows XP) and bought a music album; I wanted to load the album but it did not work; it always says that there ocured a problem and it seems to be a file damage, therefore I should reload the music titl

  • I'm getting the "spooler subsystem app has encountered and error" message

    Greetings. I have one XP machine wired to a router, and one  Win7 Laptop connected wirelessly.  I install the printer driver for the Deskjet D2530 on the XP machine, and I can print. Then I install the printer driver for the Deskjet D2530 on the lapt

  • In point in TimeView

    Hi everyone ! i have a sequence with a primatte Keying, at the begining i put this sequence at frame -722. by an error i move this at -780, i want to correct my error but impossible, i just can put this sequence at 720 or 727.... impossible to go to