Please help me to draw a special line Chart!

Hi, I am programming to draw a line chart with X-axis as timepoint (for example, t1, t2, t3, t4, ...) and Y-axis as values (v1, v2, v3,v4,...) and have a line connecting all the (t, v) point. The issue I have encountered is that when a value (for example, v3) is missing at the timepont(t3), I still want the timepoint to show on X-axis but the connectiong line to stop at (t2, v2) and start again at (t4, v4). Is it possible to draw such a line chart? Is there any 3rd party supporting it? If so, may you please give me hints and help me out of this? Thanks alot.

I did find this:
import java.awt.event.*;
import java.awt.*;
public class Pxy extends Frame 
public Pxy()
     addWindowListener(new WindowAdapter()
    {     public void windowClosing(WindowEvent ev)
          {     dispose();
               System.exit(0);}});
     setBounds(1,1,670,450);
     txy pan = new txy();
     add(pan);     
     setVisible(true);
public class txy extends Panel
     int xt[] = {1,1,1,0,1,1,1,1,0,1,1,1,1,0,1,1};
     int yv[] = {40,15,30,90,105,128,120,98,199,250,269,203,90,210,200,145};
     int sx = 40;
     int sy = 30;
public txy()
     super();
     setBackground(Color.pink);
public void paint(Graphics g)
     g.setColor(Color.white);
     for (int i=0; i < 21; i++)
          g.setColor(Color.white);
          g.drawLine(i*30+sx,sy,i*30+sx,sy*10);
          g.setColor(Color.blue);
          g.drawString(""+i*30,i*sy+sy+2,30*10+30/2);
     for (int i=0; i < 10; i++)
          g.setColor(Color.lightGray);
          g.drawLine(sx,i*30+sy,20*30+sx,i*30+sy);
          g.setColor(Color.blue);
          g.drawString(""+i*30,10,i*sy+sy+2);
     g.setColor(Color.black);
     for (int i=0; i < xt.length-1; i++)
          if (xt[ i ] == 1)
          g.drawLine(i*30+sx,yv[ i ]+sy,(i+1)*30+sx,yv[ i+1 ]+sy);
public void update(Graphics g)
     paint(g);
public static void main(String[] args )
     new Pxy();

Similar Messages

  • Dear Friends, I am trying to draw a structure in Adobe Illustrator with 3D effect. But I am unable to give it proper shape. Can someone please help me for drawing the similar structure as showed below. I have facing problems in giving 3D effect.

    Dear Friends, I am trying to draw a structure in Adobe Illustrator with 3D effect. But I am unable to give it proper shape. Can someone please help me for drawing the similar structure as showed below. I have facing problems in giving 3D effect.
    Thanks a lot for your great help...

    i made a quick example:
    and what it's made of:
    just shapes and gradients. used a combination of pathfinder and shape builder to get the shapes exact.

  • PLEASE HELP!! Drawing Lines

    Hi, I'm new to Java and i need some help with drawing an asymptotic curve.
    I have tried many times experimenting with g.drawline but I have no idea how to do it !!
    here is an example of what i want to draw:
    http://www.iit.edu/~smart/acadyear/fredstof.gif_
    Can someone please help me?
    I need the code urgently!
    I just need the lines, plain black with a white background
    and it should also be able to be stretched to any size by dragging the corner of the window
    THANK YOU VERY, VERY MUCH.

    http://forum.java.sun.com/thread.jspa?threadID=5258979

  • How to draw a simple line chart using GRAPH_MATRIX_2D function

    Hello,
    can anyone help me with that function please,
    i couldn't draw a line graph with three data series, i mean with three lines in the graph.
    i want to the chart to be drawn as line graph at the beginning, i shouldn't have to change the chart type later,
    can anybody send me a sample code that does what i want.
    i am expecting your answers,
    thanks.
    Note: all answers will be pointed.

    Hi Ali,
    please refer to my reply [here|Re: drawing 2d line chart problem, urgent please!!!] and skip this thread. This is a copy of the other request.
    Regards
    Matthias

  • Please help. How to create reports including charts in pdf format .

    Please help.
    I have two problems.
    Any help will be highly appreciated.
    1. I need to query database through JDBC (which is easy) using servlet or JSP and then create a report in pdf format (which I do not know how to). If anyone knows how to create a report in pdf format, I would highly appreciate.
    2. I need to generate charts and embed them in these reports. I do not know how to make charts. If anyone knows and helps me out, I would highly appreciate. I have to make charts and embed them in the pdf reports.
    Thanks a lot in advance.
    Indrasish.

    Ok ibasuroy, but i don�t speak ingles.
    first problem:
    http://sourceforge.net/projects/jfreereport/
    JFreeReport is a Java class library for generating reports. It provides a flexible printing functionality for Java applications and supports output to Printers and PDF, Excel, HTML and XHTML, PlainText, XML and CSV files.
    second problem:
    http://sourceforge.net/projects/jfreechart/
    JFreeChart is a class library, written in Java, for generating charts. Utilising the Java2D APIs, it currently supports bar charts, pie charts, line charts, XY-plots and time series plots.
    write my. I have a class JDBCAdpater and a BridgeJFreeReport
    [email protected]

  • Drawing TrendLines in Line Chart

    Hi,
    I am using a Line Chart in one of my projects.
    I use a HTTPService to fetch XML Data to feed the chart.
    <mx:HTTPService id="myServ" url="ChartData.xml" result="myResultHandler(event)"/>
    I draw two trend lines over the chart based on the max & min values for a specified node in the XML data
    <?xml version="1.0" encoding="utf-8"?>
    <nodes>
        <node month="Jan-10">
           <expenses>20</expenses>       
        </node>
        <node month="Feb-10">
           <expenses>30</expenses>       
        </node>
        <node month="Mar-10">
            <expenses>80</expenses>       
        </node>
        <node month="Mar-10">
            <expenses>20</expenses>       
        </node>
    </nodes>
    I use the expense node in determining the max & min value for the chart.
    I determine the max & min values & draw the lines in the result handler function:
    If i use result Format = "e4x", I am able to iterate the data as XML List Collection, but when I get the data as ActionScript objects, I am not able to iterate the XML data.
    public function drawLine(event:Event):void
         myChartCanvas.clear();
         myChartCanvas.lineStyle(2, 0x000000, 1);
         myChartCanvas.moveTo('Jan-10', 50);
         myChartCanvas.lineTo('Aug-10', 70);
    How can i iterate the nodes in AS3 object format to find the max & min nodes & draw the trend lines ?
    - Sen

    Cast the Objects. You know they are XML behind the scenes.

  • Help! extremely small labels in Line Chart

    Hi all,
    I met a problem that i've been working on for a long time.
    If the SQL returned too many rows (e.g. 200+) to generate the Line Chart, the X/Y axis Labels would be too small to be recognised.
    I tried whatever i can imagine, like generating much fewer labels in the PL/SQL and using a font-size 30+...
    So far, so bad.
    Any suggestion???
    Thanks you so much!!!!

    Hi,
    Actually, there are many possible causes for this issue. Could you please tell me how the category labels come from? In other words, why are they all
    the same? I would like to suggest you post some sample data and your chart settings here. I have created a report with chart which has duplicate horizontal axis labels. To achieve your purpose, I hide all horizontal axis labels, and then use horizontal axis
    title instead of horizontal axis labels. I have uploaded my report as an example:
    With duplicate horizontal axis labels:
    http://cid-854fa6d2b7d88cc7.office.live.com/self.aspx/Work/Old.rdl
    No duplicate horizontal axis labels:
    http://cid-854fa6d2b7d88cc7.office.live.com/self.aspx/Work/New.rdl
    If there is anything unclear, please feel free to ask.
    Thanks,
    Albert Ye

  • Please Help me...For loose line fixer

    Hi,
    I just want to try a script for fixing loose lines automatically. My concept is,
    1) Finding the wrod space width.
    2) Depending on the width value, fix desired width value. I know it may vary for each character and fonts.
    3) If finding any over widthed space inside the para, i need to give tracking from value -1 to -10 untill we reached desired width. If not possible retain to zero tracking(original state). We don't need to check this for single line para, so just skip that.
    My client SOP:
    1) H&J values should not changes.
    2) Single line composer alone used
    3) Single line tracking not used.
    4) Positive tracking not allowed
    5) Tracking value should between -1 to -10.
    Is it possible?
    Thanks in Advance.

    Hi ,
    My friend gave me a little script to find space width of paragraph.
    //Setting preferences to point and
    //set page rulers to pageOrigin
    var myDoc = app.activeDocument;
    myDoc.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    myDoc.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    myDoc.viewPreferences.rulerOrigin = RulerOrigin.PAGE_ORIGIN;
    myDoc.zeroPoint = [0, 0];
    var docStories = myDoc.stories;
    for (var st=0; st<docStories.length; st++){
        var paras = docStories[st].paragraphs;
        ClearGrepPreferences();
        for (var p=0; p<paras.length; p++){
            if (paras[p].lines.length>1){
                app.findGrepPreferences.findWhat = " ";//Find All spaces in current paragraph
                var spaces = paras[p].findGrep();
                if (spaces.length>0){
                    spaceWidth = spaces[0].endHorizontalOffset-spaces[0].horizontalOffset;//end position - start position gives the width of the space character
                    alert("Paragraph "+(p+1)+" Space Width = "+spaceWidth);
                }//End of if loop lines >1
            }//End  of "p" for loop
        }//End of stories for loop
    function ClearGrepPreferences(){
        app.findGrepPreferences = NothingEnum.NOTHING;
        app.changeGrepPreferences = NothingEnum.NOTHING;
        app.findTextPreferences = NothingEnum.NOTHING
        app.changeTextPreferences = NothingEnum.NOTHING
    From this script, i want to find the average space width of entire document (it actually find the space of each para). It will saved in the variable  spaceWidth. Then the script ask user for giving a desired space width. Let say, userSpace. Then it will compare the userSpace with   spaceWidth. If the space Width is more than userSpace value,  then allow tracking from -1 to -10 using FOR loop to get desired value. If it will not get desired then retain the para tracking as zero and skip to next para.
    Am i get any help from this point?
    Advance thanks

  • Please help!! Drawing problem

    Hi all,
    Sorry for bothering for this question but it's important for me to have an answer..
    Well, i created a small graphic interface in which i put some buttons and an area to display Graphics (see Xrect in my code).
    The problem i have is that i can display my graphics in my area but if i come with a window over it, it erases it!!!! What shall i do??
    Thanx in advance, i hope this piece of code will be helpful..
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.lang.*;
    //D�finition de la classe Bio_Window
    public class Bio_Window extends JFrame {
    public Bio_Window () {
    initGUI();
    //Initialisation de la fen�tre de BIOWAY
    public void initGUI () {
    Xrect rect = new Xrect(); //initialisation de la zone de dessin
    rect.setBounds(xrect,yrect,370,340);
    getContentPane().add(rect);
    setVisible(true);
    //methode r�sultante d'un click sur Accept
    public void accept() {
    //Dessin du r�seau repr�sent� dans le fichier
    Graphics g1 = this.getGraphics();
    int x1 = xrect + w2;
    int y1 = yrect+50 + w3;
    g1.setColor(Color.black);
    g1.fillOval(x1,y1,6,6);
    Graphics g2 = this.getGraphics();
    int x2 = xrect + w4;
    int y2 = yrect + 50 + w5;
    g2.setColor(Color.black);
    g2.fillOval(x2,y2,6,6);
    Graphics g3 = this.getGraphics();
    g3.setColor(Color.blue);
    int c = 3;
    g3.drawLine(x1+c,y1+c,x2+c,y2+c);
    //Termine l'application lorsqu'on clique sur la croix...
    protected void processWindowEvent(WindowEvent e) {
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    System.exit(0);
    //class permettant la creation de la zone de dessin
    public class Xrect extends JComponent {
    public Xrect() {
    //methode affichant la zone de dessin
    public void paintComponent(Graphics g) {
    g.setColor(Color.white);
    g.fillRect(0,0,370,340);
    super.paintComponent(g);
    //main
    public static void main (String args[]) {
    new Bio_Window();
    //classe traitant des click de bouton de l'interface
    class Evenement implements ActionListener {
    static final int EDIT = 0;
    static final int DRAW = 1;
    static final int PARAMETERS = 2;
    static final int ACCEPT = 3;
    static final int EXIT = 4;
    static final int RUN = 5;
    static final int ERASE = 6;
    static final int REDRAW = 7;
    Bio_Window ev;
    int id;
    public Evenement (Bio_Window ev, int id) {
    this.ev = ev;
    this.id = id;
    public void actionPerformed(ActionEvent e) {
    switch(id) {
    case EDIT:
    ev.edit();
    break;
    case DRAW:
    ev.draw();
    break;
    case PARAMETERS:
    ev.parameters();
    break;
    case ACCEPT:
    ev.accept();
    break;
    case EXIT:
    System.exit(0);
    break;
    case RUN:
    ev.run();
    break;
    case ERASE:
    ev.erase();
    break;
    case REDRAW:
    ev.accept();
    break;
    }

    It looks like your XRec overrides the paintComponent (g) method, which is the correct way or having the XRec updated when damage is done to your GUI, but your Bio_Window has painting code in the accept() method. This should be moved to a seperate method (for example customDraw(g)). You should then override one of the Bio_Window's painting methods to include the customDraw(g) method. For instance, you may make a
    paint method like this:
    paint (g) {
      paintComponent(g);
      customDraw(g);
      paintBorder(g);
      paintChildren(g);
    }Oh, BTW,
    class x implements ActionListener extends Component
    should be
    class x extends Component implements ActionListener
    Steve

  • Please help with a drawing on JPanel in a background.

    Hello everybody,
    I have already post this question in the main java forum and was adviced to place the question here. Since then, I have refactored the code. I need your opinion and advice.
    My task is to draw some objects on the JPanel or some other components and to place the names to the objects, for example squares, but later, from the thread. Because it can take some time, untill the names will be avaliable.
    So, I refactored the code I post before http://forum.java.sun.com/thread.jspa?threadID=5192586&tstart=15
    And now, it draws on layers and from thread on resize, with some imitating interval.
    Is it a good approach I use, is there a better way, to draw on JPanel, after some objects were already painted.
    Here is my sample, try to resize window:
    package test;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.awt.event.ComponentEvent;
    import java.awt.event.ComponentListener;
    import java.awt.geom.Rectangle2D;
    import javax.swing.JFrame;
    import javax.swing.JLayeredPane;
    import javax.swing.JPanel;
    public class Painter extends JFrame implements ComponentListener{
         private static final long serialVersionUID = 1L;
         private ThreadPainter threadPainter;
         JPanel panel = new JPanel() {
              private static final long serialVersionUID = 1L;
              @Override
              protected void paintComponent(Graphics g) {
                   super.paintComponent(g);
                   System.out.println("repaint");
                   Graphics2D g2d = (Graphics2D) g;
                   g2d.setColor(Color.gray);
                   g2d.fillRect(0, 0, 800, 600);
                   g2d.setColor(Color.white);
                   for (int i = 0; i < 6; i++) {
                        Rectangle2D rec2d = new Rectangle2D.Double(10 + i * 100,
                                  10 + i * 100, 10, 10);
                        g2d.fill(rec2d);
                        g2d.drawString("Square " + i, 10 + i * 100 + 20, 10 + i * 100);
                   // start thread to paint some changes later
                   if (threadPainter == null) {
                        threadPainter = new ThreadPainter();
                        threadPainter.start();
         JPanelTest panel1 = new JPanelTest();
         public class JPanelTest extends JPanel {
              private static final long serialVersionUID = 1L;
              private int times = 0;
              @Override
              protected void paintComponent(Graphics g) {
                   super.paintComponent(g);
                   Graphics2D g2d = (Graphics2D) g;
                   g2d.setColor(Color.red);
                   System.out.println("repaint panel test");
                        System.out.println("repaitn times");
                        g2d.drawString("Square " + times, 10 + times * 100 + 20, 10 + times * 100);
              public void repaintMethod(int times) {
                   this.times = times;
                   this.repaint(times * 100 + 20, times * 100, 300,300);
         public class ThreadPainter extends Thread {
              private boolean stop = false;
              @Override
              public void run() {
                   while (!stop) {
                        int cnt = 0;
                        for (int i = 0; i < 6; i++) {
                             System.out.println("do task");
                             panel1.repaintMethod(i);
                             // load data, do calculations
                             try {
                                  // emulate calcilation
                                  Thread.sleep(1000);
                             } catch (InterruptedException e) {
                                  e.printStackTrace();
                             if (stop) {
                                  break;
                             cnt++;
                        if (cnt == 6) {
                             stopThread();
              public void stopThread() {
                   this.stop = true;
         public Painter() {
              this.setLayout(new BorderLayout());
              JLayeredPane pane = new JLayeredPane();
              this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              this.setLocation(new Point(100, 100));
              this.setPreferredSize(new Dimension(800, 600));
              this.panel.setOpaque(false);
              this.panel1.setOpaque(false);
              pane.setOpaque(false);
              pane.add(panel, JLayeredPane.DEFAULT_LAYER);
              pane.add(panel1, new Integer(
                        JLayeredPane.DEFAULT_LAYER.intValue() + 1));
              this.add(pane, BorderLayout.CENTER);
              panel.setBounds(new Rectangle(0, 0, 800, 600));
              panel1.setBounds(new Rectangle(0, 0, 800, 600));
              this.addComponentListener(this);
         public static void main(String[] args) {
              Painter painter = new Painter();
              painter.pack();
              painter.setVisible(true);
         @Override
         public void componentHidden(ComponentEvent e) {
              // TODO Auto-generated method stub
         @Override
         public void componentMoved(ComponentEvent e) {
              // TODO Auto-generated method stub
         @Override
         public void componentResized(ComponentEvent e) {
              if (threadPainter != null) {
                   threadPainter.stopThread();
                   threadPainter = new ThreadPainter();
                   threadPainter.start();
         @Override
         public void componentShown(ComponentEvent e) {
              // TODO Auto-generated method stub
    }

    Hello camickr,
    thanks for your answers.
    It sounds like you are trying to add a component and
    descriptive text of this component to a panel. So the
    question is why are you overriding paintComponent()
    method on your main panel and why are you using a
    Thread.JLabel is not a good way I think, because of the performance. Think about 1000 labels on the panel. And the text can have different style, so drawString method is better here.
    Create a component that draws your "shape" and then
    add that component to the main panel that uses a null
    layout. That means you need to specify the bounds of
    the component. Then you can add a JLabel containing
    the releated text of the component. If you don't know
    the text then it can always be updated with the
    setText() method in the future. Also, the foreground
    can be updated as well.If it would be lable, I could update Text as us say and JLabels would be perfect. In this case, JLabels are not what I need.
    You said the names will not be available right away.
    Well then you don't start a thread to schedule the
    repainting of the names since you don't know exactly
    when the name will be available. You wait until you
    have the names and then simple use the setText()
    method.I have decided this way.
    Draw all objects on the panel in different layers, for different type of objects.
    Get names and make some calculations, for example, optimal position of the text on the panel (in Thread) and after it repaint();
    Repaint draw all objects, but now it have the names, which will be added too.
    The requirement is: thousand of objects on the panel
    Different type of ojbects should be drawn in different layers
    Names should be added to the objects and maybe some other drawings (showing state). Name and drawing can be done later, but should be added dynamically, after all calculation are done.

  • Please HELP ASAP! I/O Command Line, How do you write them? System.in?

    I'm trying to create a program where the user can enter a year and gets the date of Easter on that year he/she entered. So far i've implemented the Easter class which contains the methods for getting the day and month of Easter, but I'm trying to write the main class which is kind of tricky for me. The main class is supposed to be the one asking the user for the year. Except I don't even know what you have to write. I did a bit of research and eventually found something like this: " InputStreamReader cin = new InputStreamReader(System.in)" I realize that that is a constructor and that cin is actually a variable supposed to hold whatever the user inputs. Except I just want to make sure if that's kind of the guidelines on how to make it so that the user can enter something back. Also, I want the user to enter a year- so in other words an int type. Here's why:(The Implemented Class for Easter)
    public void Year()
    //Method body
    public int getEasterSundayMonth(int y)
    //Method Body
    public int getEasterSundayDay(int y)
    //Method Body
    Yea I want to make it so that the user's input is "int y" that way I can perform my methods in order to give them back the day and month Easter is on. So my 2 questions are on how to write the code so I can get a user's input, and on how to substitute the user's input into the variable "y" I just started learning Java about 3 weeks ago as a Sophmore in high school, so it's a bit difficult for me. Thanks in advance.

    You should really work on expressing yourself more succinctly.
    shadowpal2 wrote:
    I did a bit of research and eventually found something like this: " InputStreamReader cin = new InputStreamReader(System.in)" I realize that that is a constructor and that cin is actually a variable supposed to hold whatever the user inputs.You misunderstood. System.in is used to read standard input to the Java process. If you don't know what "standard input" is: basically it's stuff that you could type at the console when you're running the program, but it could be file content depending on how you invoke the program.
    InputStreamReader is a class that takes that stream of input bytes and turns it into a stream of characters. It doesn't really hold anything.
    Except I just want to make sure if that's kind of the guidelines on how to make it so that the user can enter something back.It's one way of many of getting user input. Actually it's only part of one common idiom for getting user input.
    Also, I want the user to enter a year- so in other words an int type. Just use a java.util.Scanner.
    Yea I want to make it so that the user's input is "int y" The user's input is always going to be characters. Scanner has methods to automatically turn input into other types. If you use something else (like the common idiom involving InputStreamReader) you'd need to convert the Strings you read into ints by hand, which isn't hard but why do it if Scanner does it for you?
    Read the docs for java.util.Scanner.

  • Please help for Registration point to a movieclip/sprite

    I am new to AS3 and have a doubt on Registration point for
    Movie clip / Sprite. Please help me the sample code for this
    I simply draw a line using AS3 in flash environment. but i
    used graphics.moveTo for center. but if i run this it is simply
    taking x,y axis 0,0 and move around the stage. I want to move this
    from center of the stage. please help.
    below is my code
    var line:Sprite = new Sprite()
    addChild(line);
    var cx:Number = stage.stageWidth/2;
    var cy:Number = stage.stageHeight/2;
    var radius:Number = 1;
    var increase:Number = 0;
    line.graphics.lineStyle(1, 0xff00ff);
    line.addEventListener(Event.ENTER_FRAME, onEnter);
    function onEnter(event:Event):void
    increase += radius;
    //trace(increase);
    //line.graphics.moveTo(cx, cy);
    line.graphics.lineTo(cx + increase, cy + increase);
    line.rotation += 0.1;

    to appear to control the registration point of line, make it
    a child or an empty display object and offset it by -x,-y where x,y
    is your choice for the apparent registration point. you can then
    control the parent object and it will behave like your line with
    changed registration point.

  • Please help, any tutorials, tips, guides???

    hi, i need to make some leaflets for work and little card type things with borders around them. i also need to be able to insert photos etc.
    are there any tutorials or help guides on line i can be directed too.
    please help.
    my job is on the line!!!

    Hi x..
    Have you read the AppleWorks Help documents that came with the application? To access them, open AppleWorks, then go to the Help menu. For the two projects you list, the Draw environment seems the best choice tool to use.
    If your leaflet is a trifold brochure, you'll find an example brochure (that you can base yours on) in the Templates section of Starting Points. Some of the other templates in this section may also give you ideas about the cards or about other forms of leaflets.
    The graphics included in AW's Clippings library don't include a borders section, and most of the clippings are a bit dated.
    Although AppleWorks is fine for simple brochures and cards, you may find that Pages, part of iWork is more flexible and easier to work with for this purpose. One potential problem there is that iWork may be in line for an upgrade next month (the last two Januarys have both seen full version upgrades to iWork). While that won't make the current version obsolete, the new one will likely include more capabilities and some improved features.
    As for online tutorials, a search for "AppleWorks tutorial" (with or without the quotes) will bring up quite a few. Most, though, seem aimed at a school setting, and the majority are strongest on the word processor module.
    Regards,
    Barry

  • Please help the newbie!

    I've created a photo gallery in Flash CS3 that contains 2 UI
    Loaders (one for a graphic title for the image, and one for the
    image itself) and have tested it and it works fine. I even
    published the file as an independent html file and it seems to work
    fine when tested in the browser too. My problem is that when I
    place the .swf into my html page in dreamweaver and test it, the
    file shows up, but the loader info doesn't work. The images don't
    load.
    Here is the code I have set up in Dreamweaver -
    Within the head, I have this:
    <script src="../Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    Within the body, I have this set up for where the swf gallery
    is supposed to be:
    <div id="content_main">
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','911','height','540','title','Photo
    Gallery','movie','../flash/photography2','quality','high','loop','false','play','false'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="911" height="540" title="Photo Gallery">
    <param name="movie" value="../flash/photography2.swf"
    />
    <param name="quality" value="high" /><param
    name="LOOP" value="false" /><param name="PLAY" value="false"
    />
    </object></noscript>
    </div>
    Can anyone help? Thanks so much. I appreciate any help I can
    get.

    Two suggestions -
    1. Please help yourself by using a subject line that is
    descriptive of your
    question/issue. Can you imagine how many posts there are that
    have exactly
    this subject? Later when you want to find this thread, you
    will be deep in
    the mud of other newbie posts.
    2. When you post a question about problems with your layout,
    please always
    post a link to the uploaded page? That way we can all examine
    the page's
    behavior, look at the code, and give you a precise answer.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "mjordan1965" <[email protected]> wrote in
    message
    news:[email protected]...
    > I've created a photo gallery in Flash CS3 that contains
    2 UI Loaders (one
    > for a
    > graphic title for the image, and one for the image
    itself) and have tested
    > it
    > and it works fine. I even published the file as an
    independent html file
    > and it
    > seems to work fine when tested in the browser too. My
    problem is that when
    > I
    > place the .swf into my html page in dreamweaver and test
    it, the file
    > shows up,
    > but the loader info doesn't work. The images don't load.
    >
    > Here is the code I have set up in Dreamweaver -
    >
    > Within the head, I have this:
    >
    > <script src="../Scripts/AC_RunActiveContent.js"
    > type="text/javascript"></script>
    >
    > Within the body, I have this set up for where the swf
    gallery is supposed
    > to
    > be:
    >
    > <div id="content_main">
    >
    > <script type="text/javascript">
    > AC_FL_RunContent(
    > 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    >
    version=9,0,28,0','width','911','height','540','title','Photo
    >
    Gallery','movie','../flash/photography2','quality','high','loop','false','play',
    > 'false' ); //end AC code
    > </script><noscript><object
    > classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    > codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
    > rsion=9,0,28,0" width="911" height="540" title="Photo
    Gallery">
    > <param name="movie" value="../flash/photography2.swf"
    />
    > <param name="quality" value="high" /><param
    name="LOOP" value="false"
    > /><param name="PLAY" value="false" />
    > </object></noscript>
    >
    > </div>
    >
    > Can anyone help? Thanks so much. I appreciate any help I
    can get.
    >

  • Hello' I am having an issue with my iPhone 5 display. 2 days before i've noticed some horizontal and vertical lines on the display. Minor but noticeable. Specially in dark wallpapers and on full brightness. Is it normal?? Please Help!!!

    Hello' I am having an issue with my iPhone 5 display. 2 days before i've noticed some horizontal and vertical lines on the display. Minor but noticeable. Specially in dark wallpapers and on full brightness. Is it normal?? Is this a software bug or Hardware problem?? Please Help!!!

    Hello,
    No, it is not normal. Follow this article:
    http://support.apple.com/kb/ht1414
    If this doesnt solve the issue your iPhone will need service.
    Burcu

Maybe you are looking for

  • Lumia 520 SMS- when a contact has more than one nu...

    Hi- when calling a contact who has more than one phone number it is easy to choose which of the numbers for that contact to use, but when sending SMS there is no option to choose. How does the SMS system decide which of the available numbers to use?

  • Want to hook up my laptop with guitar amp to hear garageband effects

    I have a MBP (early 2008) and use garageband with a blue snowflake microphone and headphones to record. However, I was wondering if it would possible to have my laptop hooked up to my Marshall MG10 CF amp when I am in garageband just messing around w

  • How do I get to the old iTunes screen...

    How do I get to the old iTunes screen that used to pop up when I plug my IP into my MBA?  I used to get a screen that showed whatever device I had hooked up. This morning I got a message that there is an IP update, but that I have paid data on my IP

  • Problem to get rushes from SONY DCR-DVD203E

    I work on a TOSHIBA Intel Core DUO T5750 with 3,00 GO memory . The operating system is Windows Vista édition familiale Premium Service Pack 1, and Adobe première element 4 . I use a Sony DCR-DVD203E getting rushes on DVD . I have 10 rushes of 2 minut

  • Some observations concerning Safari hanging

    Many postings in this discussion group report that Safari hangs frequently. When that happens, you see the spinning polychrome ball, and you're more or less obliged to force quit Safari and start all over again. I experience that frequently. Many peo