Help with getting Images to show in a Rock, Paper, Scissors game

Hi
I am working on this Rock, paper, scissors java game and the program works, but I can not figure out how to get the images to load onto the program. So my question is how do I get the images to load up with the program? I am using JCreator for this project. I have created the Basic Java Application project, and then added in the 3 .java files that I need to run the program, but I just can not figure out how or where I need to upload the files. The game works without the images, but I would really like them to show up.
This is the .java file that calls up the images:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class pss extends JPanel implements ActionListener, ItemListener
private final Color clrBackground = new Color(163,243,255);
private final Color clrForeground = new Color(0,0,0);
private JComboBox cboxWeapon;
private JTextField txtCPUWeapon, txtWins, txtLoses, txtDraws;
private JLabel lblPlayerWeapon, lblCPUWeapon, lblWins, lblLoses, lblDraws, lblStatus, lblPlayerWeaponIcon, lblCPUWeaponIcon;
private JButton cmdPlay, cmdReset;
private ImageIcon[] imgWeapon;
private JPanel panRoot, panPlayerArea, panPlayerWeapon, panCPUArea, panCPUWeapon, panStatusArea, panGo, panCounters, panWins, panLoses, panDraws;
private pssEngine engine = new pssEngine();
private objCreateAppletImage createImage = new objCreateAppletImage();
private boolean errorWithImages = false;
public static void main(String[] args) //With applications, you have to specify a main method (not with applets)
JFrame.setDefaultLookAndFeelDecorated(true); //Make it look nice
JFrame frame = new JFrame("Paper Stone Scissors"); //Title
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setResizable(false); //Stops the user resizing the window
JComponent paneMain = new pss();
paneMain.setOpaque(true);
paneMain.setPreferredSize(new Dimension(420,350));
frame.setContentPane(paneMain);
frame.pack();
frame.setVisible(true);
public pss ()
cboxWeapon = new JComboBox(engine.getWeapon());
cboxWeapon.addItemListener(this);
txtCPUWeapon = new JTextField(engine.getStrCPUWeapon(), 5);
txtWins = new JTextField("0", 5);
txtLoses = new JTextField("0", 5);
txtDraws = new JTextField("0", 5);
txtCPUWeapon.setEditable(false);
txtWins.setEditable(false);
txtLoses.setEditable(false);
txtDraws.setEditable(false);
lblPlayerWeapon = new JLabel("Choose your weapon", JLabel.CENTER);
lblCPUWeapon = new JLabel("The CPU's weapon", JLabel.CENTER);
lblWins = new JLabel("Amount of wins:", JLabel.RIGHT);
lblLoses = new JLabel("Amount of loses:", JLabel.RIGHT);
lblDraws = new JLabel("Amount of Drawss:", JLabel.RIGHT);
lblStatus = new JLabel("", JLabel.CENTER);
lblPlayerWeaponIcon = new JLabel("", JLabel.CENTER);
lblCPUWeaponIcon = new JLabel("", JLabel.CENTER);
lblPlayerWeaponIcon.setPreferredSize(new Dimension(150,150));
lblCPUWeaponIcon.setPreferredSize(new Dimension(150,150));
cmdPlay = new JButton("Go!");
cmdReset = new JButton("Restart");
cmdPlay.addActionListener(this);
cmdReset.addActionListener(this);
try
imgWeapon = new ImageIcon[3];
for (int i = 0; i < 3; i++)
imgWeapon[i] = createImage.getImageIcon(this, ".src/images/" + engine.getWeapon(i) + ".gif", "Icon for " + engine.getWeapon(i), 13000);
lblPlayerWeaponIcon.setIcon(imgWeapon[0]);
lblCPUWeaponIcon.setIcon(imgWeapon[0]);
catch (Exception ex) //The game works without the images, so carry on
errorWithImages = true;
setLayout(new BorderLayout());
panRoot = new JPanel(new BorderLayout());
panPlayerArea = new JPanel(new BorderLayout());
panPlayerWeapon = new JPanel(new BorderLayout());
panCPUArea = new JPanel(new BorderLayout());
panCPUWeapon = new JPanel(new BorderLayout());
panStatusArea = new JPanel(new BorderLayout());
panGo = new JPanel();
panCounters = new JPanel(new GridLayout(3,1,2,2));
panWins = new JPanel();
panLoses = new JPanel();
panDraws = new JPanel();
add(panRoot, BorderLayout.CENTER);
panRoot.add(panPlayerArea, BorderLayout.WEST);
panPlayerArea.add(panPlayerWeapon, BorderLayout.NORTH);
panPlayerWeapon.add(lblPlayerWeapon, BorderLayout.NORTH);
panPlayerWeapon.add(cboxWeapon, BorderLayout.SOUTH);
panPlayerArea.add(lblPlayerWeaponIcon, BorderLayout.SOUTH);
panRoot.add(panCPUArea, BorderLayout.EAST);
panCPUArea.add(panCPUWeapon, BorderLayout.NORTH);
panCPUWeapon.add(lblCPUWeapon, BorderLayout.NORTH);
panCPUWeapon.add(txtCPUWeapon, BorderLayout.SOUTH);
panCPUArea.add(lblCPUWeaponIcon, BorderLayout.SOUTH);
panRoot.add(panStatusArea, BorderLayout.SOUTH);
panStatusArea.add(panGo, BorderLayout.NORTH);
panGo.add(cmdPlay);
panGo.add(cmdReset);
panGo.add(lblStatus);
panStatusArea.add(panCounters, BorderLayout.SOUTH);
panCounters.add(panWins);
panWins.add(lblWins);
panWins.add(txtWins);
panCounters.add(panLoses);
panLoses.add(lblLoses);
panLoses.add(txtLoses);
panCounters.add(panDraws);
panDraws.add(lblDraws);
panDraws.add(txtDraws);
panRoot.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
setBackground(clrBackground);
panRoot.setBackground(clrBackground);
panPlayerArea.setBackground(clrBackground);
panPlayerWeapon.setBackground(clrBackground);
panCPUArea.setBackground(clrBackground);
panCPUWeapon.setBackground(clrBackground);
panStatusArea.setBackground(clrBackground);
panGo.setBackground(clrBackground);
panCounters.setBackground(clrBackground);
panWins.setBackground(clrBackground);
panLoses.setBackground(clrBackground);
panDraws.setBackground(clrBackground);
lblPlayerWeapon.setForeground(clrForeground);
lblCPUWeapon.setForeground(clrForeground);
lblWins.setForeground(clrForeground);
lblLoses.setForeground(clrForeground);
lblDraws.setForeground(clrForeground);
txtWins.setForeground(clrForeground);
txtLoses.setForeground(clrForeground);
txtDraws.setForeground(clrForeground);
txtCPUWeapon.setForeground(clrForeground);
public void reset ()
cboxWeapon.setSelectedIndex(0);
lblStatus.setText("");
engine.reset();
public void actionPerformed (ActionEvent e)
if (e.getSource() == cmdReset)
reset();
else
lblStatus.setText(engine.play(cboxWeapon.getSelectedIndex()));
txtCPUWeapon.setText(engine.getStrCPUWeapon());
txtWins.setText(Integer.toString(engine.getWins()));
txtLoses.setText(Integer.toString(engine.getLoses()));
txtDraws.setText(Integer.toString(engine.getDraws()));
if (!errorWithImages)
lblCPUWeaponIcon.setIcon(imgWeapon[engine.getCPUWeapon()]);
public void itemStateChanged (ItemEvent e)
if (!errorWithImages)
lblPlayerWeaponIcon.setIcon(imgWeapon[cboxWeapon.getSelectedIndex()]);
}Here is the other .java file that calls on the Images:
import java.awt.*;
import java.io.*;
import javax.swing.ImageIcon;
public class objCreateAppletImage
public void objCreateAppletImage ()
//If an error occurs (or is thrown by me) it will be thrown to the next level up, and either caught or thrown
public ImageIcon getImageIcon (Object parentClass, String path, String description, int fileSize) throws Exception
int count = 0;
BufferedInputStream imgStream = new BufferedInputStream(parentClass.getClass().getResourceAsStream(path));
byte buff[] = new byte[fileSize];
if (imgStream == null) //If doesn't exist
throw new Exception("File not Found");
try
count = imgStream.read(buff);
imgStream.close(); //Closes the stream
catch (IOException ex)
throw new Exception("Corrupt file");
return new ImageIcon(Toolkit.getDefaultToolkit().createImage(buff), description); //Creates the image from the byte array
}Could someone please help me? I really have no idea and I would like this to work.
Thank you
Frank

Oh, thank you. I will not do that in the future.
I am not entirely sure how I would use the getImage method in an Applet. I would prefer to just use the code that I have currently, unless the addition of making the program an Applet only adds a small amount of code. But then even still, I am not entirely sure what I would write in the .class file to make the images load. And then I would not really know how to properly incorporate the pss.java file and the .class file together so they read off of each other.

Similar Messages

  • Need help with getting images to look smooth (without the bitmap squares) around the edges. When I transfer the image from pictures, it sets itself into the InDesign layout, but with square edges. I need to find out how to get it to look smooth?

    Need to find out how to get my images transferred into an InDesign layout without the rough edges, as with a bit map image, but to appear with smooth edges in the layout. I can notice it more when I enlarge the file (pic). How can I get it to appear smooth in the finished layout. Another thing too that I noticed; it seems to have effected the other photos in the layout. They seem to be
    pixelated too after I import the illustration (hand drawn artwork...)? Any assistance with this issue will be greatly appreciated. Thanks in advance.

    No Clipboard, no copy & paste, as you would not get the full information of the image.
    When you paste you can't get the image info from the Links panel, but you can get resolution and color info either via the Preflight panel or by exporting to PDF and checking the image in Acrobat.
    Here I've pasted a 300ppi image, scaled it, and made a Preflight rule that catches any image under 1200ppi. The panel gives me the effective resolution of the pasted image as 556ppi. There are other workflow reasons not to paste—you loose the ability to easily edit the original and large file sizes—but pasting wouldn't cause a loss in effective resolution or change in color mode.

  • HT1948 USB drive with install image is showing in Startup Manager on a Mac Pro, but wont boot. Showing circle with cross strip, and shut down automatically. USB device are made and work on two different MacBook Pro, but used on Mac Pro. Any help?

    USB drive with install image is showing in Startup Manager on a Mac Pro, but wont boot. Showing circle with cross strip, and shut down automatically. USB device are made and work on two different MacBook Pro, but used on Mac Pro. Any help?

    OS X installers have always been fairly specific, hardware-wise. I haven't read anything reflecting that situation with the Recovery HD, so it may be that the Recovery HD created for the MacBook Pro does not have the necessary drivers for the Mac Pro. Obviously, nothing definitive here, but a possibility.

  • HELP...images not showing up in internet explorer, but show up in Safari

    Somebody please help. My images are showing up fine in Safari
    but when I view them with internet explorer they show an x and
    won't open. I am using layers and tables. Please help!
    Here is my webpage if you need to see code.
    http://www.puddlefoot.com/Tees.html
    Thanks!

    Yonion.jpg is in CMYK colorspace, that's why it doesn't
    display in most
    browsers.
    make it an optimized RGB jpeg file.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • HT4199 I need help with getting my printer to print, PLEASE.

    I need help with getting my printer to print, Please.

    What have you done so far?
    I suggest you connect it via a usb  cable first.  Once you get the printer working, move to wifi.  You will have to use an existing printer usb cable or purchase a cable.  Be sure to get the correct cable.  Ask for help.
    The warrenty indicates there is phone support.  Give HP a call.
    Warranty
    One-year limited hardware warranty; 24-hour, 7 days a week phone support
    Robert

  • Help with Rock, Paper, Scissors Program

    I need some help with my program, I got understand writing each of the methods I have to do but then i don't understand how to piece it together to make the program work. in the main method...I didn't complete the scrolling message method I just wanted to get the game itself working first then I was going to complete that method. I just need to know if I'm heading in the right direction or if i did something completly wrong
    import javax.swing.*;
    public class RockPaperScissors
         public static void displayScrollingMessage (String list)
              String header = "Game #\tUser\tComputer\tWinner\t";
         public static void getUserChoice ( )
              int game = 1;
              for ( game = 1; game > 0 ; game ++)
                   String input = JOptionPane.showInputDialog ("Choose Rock, Paper, or Scissors\n Enter\n 1 for Rock" +
                                                                                              "\n2 for Paper\n3 for Scissors\n4 to Exit");
                   String list = "   ";
                   int option = Interger.parseInt (input);
                   switch (option)
                        case 1:
                                  int userChoice = 1;
                                  getComputersChoice ();
                                  itemName (userChoice);
                                  itemName2 (computersChoice);
                                  whowins (userChoice, computersChoice);
                                  winnerName (winner);
                                  winlose (winner);
                                  String list =+ game + "/t" + itemName + "\t" + itemName2 + "\t" + winnerName + "\n";
                                  String winner = JOptionPane.showOutputDialog (null, "You picked " + itemName + " and the computer picked "
                                                                                                                  + itemName2 + "\nTherefore " + winlose);
                                  return userChoice;
                                  break;
                        case 2:
                                  userChoice = 2;
                                  getComputersChoice ();
                                  itemName (userChoice);
                                  itemName2 (computersChoice);
                                  whowins (userChoice, computersChoice);
                                  winnerName (winner);
                                  winlose (winner);
                                  String list =+ game + "\t" + itemName + "\t" + itemName2 + "\t" + winnerName + "\n";
                                  String winner = JOptionPane.showOutputDialog (null, "You picked " + itemName + " and the computer picked "
                                                                                                                  + itemName2 + "\nTherefore " + winlose);
                                  return userChoice;
                                  break;
                        case 3:
                                  userChoice = 3;
                                  getComputersChoice ();
                                  itemName (userChoice);
                                  itemName2 (computersChoice);
                                  whowins (userChoice, computersChoice);
                                  winnerName (winner);
                                  winlose (winner);
                                  String list =+ game + "\t" + itemName + "\t" + itemName2 + "\t" + winnerName + "\n";
                                  String winner = JOptionPane.showOutputDialog (null, "You picked " + itemName + " and the computer picked "
                                                                                                                  + itemName2 + "\nTherefore " + winlose);                              
                                  return userChoice;
                                  break;
                        case 4:
                                  break;
                        default:
                             JOptionPane.showMessageDialog (null, "Error!! Please enter a valid option!"
                                                                                              , JOptionPane.WARNING_MESSAGE);
                        break;
         public static int getComputersChoice ()
              int computersChoice = (int) (3 * Math.random() + 1);
              return computersChoice;
         public static String itemName (int userChoice)
              if (userChoice == 1)
                   String itemName = Rock;
              else
                   if (userChoice == 2)
                        String itemName = Paper;
                   else
                        if (userChoice == 3)
                             String itemName = Scissors;
              return itemName;
              public static string itemName2 (int computersChoice)
              if (computersChoice == 1)
                   String itemName2 = Rock;
              else
                   if (computersChoice == 2)
                        String itemName2 = Paper;
                   else
                        if (computersChoice == 3)
                             String itemName2 = Scissors;
              return itemName2;
         public static string winlose (int winner)
              if (winner == 1)
                   winlose = "You Win!!!";
              else
              if (winner == 2)
                   winlose = "You Lose!!";
              else
              if (winner == 3)
                   winlose = "Its a Tie!!";
         return winlose;
         public static string winnerName (int winner)
              if (winner == 1)
                   String winnerName = "User";
              else
              if (winner == 2)
                   String winnerName = "Computer";
              else
              if (winner == 2)
                   String winnerName = "Tie";
              return winnerName;
         public static void whoWins (int computersChoice, int userChoice)
              if (userChoice == 1 && computersChoice == 1)
                   int winner = 3;
              else
              if (userChoice == 1 && computersChoice == 2)
                   int winner = 2;
              else
              if (userChoice == 1 && computersChoice == 3)
                   int winner = 1;
              else
              if (userChoice == 2 && computersChoice == 1)
                   int winner = 1;
              else
              if (userChoice == 2 && computersChoice == 2)
                   int winner = 3;
              else
              if (userChoice == 2 && computersChoice == 3)
                   int winner = 2;
              else
              if (userChoice == 3 && computersChoice == 1)
                   int winner = 2;
              else {
              if (userChoice == 3 && computersChoice == 2)
                   int winner = 1;
              else
              if (userChoice == 3 && computersChoice == 3)
                   int winner = 3;
              return winner;
         public static void main (String args [])
              getUserChoice ( );
              System.exit (0);
    }

    Here's something to compare to
    import javax.swing.*;
    public class RockPaperScissors
      public RockPaperScissors()
        String[] pick = {"Rock","Paper","Scissors","Exit"};
        int user = 0, computer = 0;
        String result = "", output = "";
        while(user < 3)
          user = JOptionPane.showOptionDialog(null,"Which do you want?",
                               "Rock-Paper-Scissors",-1,-1,null,pick,"");
          if(user == 3) break;
          computer = (int)(3*Math.random());
          result = getWinner(user,computer);
          output = "You chose "+pick[user] + "\nComputer chose " + pick[computer]+
                   "\n\nResult:- " + result;
          JOptionPane.showMessageDialog(null,output);        
        System.exit(0);
      public String getWinner(int player, int comp)
        if(Math.abs(player - comp) > 1)
          if(player == 2) player = -1;
          if(comp == 2) comp = -1;
        return player > comp? "You win.":player < comp? "Computer wins.":"Tie.";
      public static void main(String[] args){new RockPaperScissors();}
    }

  • I need help with a basic rock paper scissors program!

    i need to make a program that allows the computer to play rock paper scissors at random and compare the results with user and tell who wins or if its a tie. can anyone help me?

    import java.util.Scanner;
    import java.util.Random;
    public class RockPaperScissors
    public static final int ROCK = 1;
    public static final int PAPER = 2;
    public static final int SCISSORS = 3;
    public static void main(String[] args)
    final int NUM_CHOICES = 3;
    Random generator = new Random();
    int userWins = 0;
    int compWins = 0;
    int ties = 0;
    int compChoice, userChoice;
    boolean exit = false;
    Random randGen = new Random();
    Scanner scan = new Scanner(System.in);
    System.out.println("Enter your choice: ");
    userChoice = scan.nextInt();
    System.out.println("Computers Choice: ");
    compChoice = scan.nextInt();

  • Need help with a rock paper scissors GUI

    i dont know whats wrong, for some reason the String "human" or String "player" is not responding so i keep getting an error also if anyone can PLZ help me set color for the labels
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Scanner;
    import java.util.Random;
    public class RPSPanel extends JPanel
       private JLabel inputLabel, outputLabel, resultLabel, statementLabel, newlabel, titlelabel, copyrightlabel;
       private JTextField player;
       private JButton input;
       public RPSPanel()
          titlelabel = new JLabel ("**************************Rock Paper Scissors v1.52.22*************************");     
          inputLabel = new JLabel ("Enter Rock Paper or Scissors :");
          outputLabel = new JLabel ("Computers Choice: ");
          player = new JTextField (9);
          resultLabel = new JLabel ("-----------");
          statementLabel = new JLabel("---------------------------------------------------------------------");
          newlabel = new JLabel("*******************************************************************************");
          copyrightlabel = new JLabel("copyright 2007. msg inc");
          input = new JButton ("PLAY!");
          input.addActionListener (new playerlistener());
          add (titlelabel);
          add (inputLabel);
          add (player);
          add (outputLabel);
          add (resultLabel);
          add (statementLabel);
          add (input);
          add (newlabel);
          add (copyrightlabel);
          setPreferredSize (new Dimension(300, 175));
          setBackground (Color.black);
       private class playerlistener implements ActionListener
          public void actionPerformed (ActionEvent event)
             Random generator = new Random();     
        int lol;
        String human = player.getText();
        String comp = "";
        String result = "";
             lol = generator.nextInt(3) + 1;
           switch (lol)
                 case 1:
                 comp = "rock";
                 break;
                 case 2:
                comp = "paper";
                break;
                case 3:
                comp = "scissors";     
                 break;
             if(comp.equals(human))
               statementLabel.setText("---------------------------tie. try again-------------------------------------");
             if(human.equals("rock") && comp.equals("paper"))
                  statementLabel.setText("------------------------paper beats rock. YOU SUCK!-------------------------");
             if(human.equals("rock") && comp.equals("scissors"))
              statementLabel.setText("--------------------------rock beats scissors. is very nice---------------------------");
             if(human.equals("paper") && comp.equals("rock"))
               statementLabel.setText("--------------------------paper beats rock. you win--------------------------");
             if(human.equals("paper") && comp.equals("scissors"))
                statementLabel.setText("---------------------scissors beats paper. you n00b-----------------------");
             if(human.equals("scissors") && comp.equals("rock"));
                 statementLabel.setText("----------------------rock beats scissors. owned----------------------------");
             if(human.equals("scissors") && comp.equals("paper"))
                statementLabel.setText("----------------------scissors beats paper. you win-----------------------");
             else
                statementLabel.setText("---------------------------------error----------------------------------");   
             resultLabel.setText(comp);
    }Message was edited by:
    msg256

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.Scanner;
    import java.util.Random;
    public class RPS extends JPanel
       private JLabel inputLabel, outputLabel, resultLabel,
                      statementLabel, newlabel, titlelabel, copyrightlabel;
       private JTextField player;
       private JButton input;
       public RPS()
          titlelabel = getLabel ("**************************Rock Paper Scissors v1.52.22*************************");     
          inputLabel = getLabel ("Enter Rock Paper or Scissors :");
          outputLabel = getLabel ("Computers Choice: ");
          player = new JTextField (9);
          resultLabel = getLabel ("-----------");
          statementLabel = getLabel("---------------------------------------------------------------------");
          newlabel = getLabel("*******************************************************************************");
          copyrightlabel = getLabel("copyright 2007. msg inc");
          input = new JButton ("PLAY!");
          input.addActionListener (new PlayerListener());
          add (titlelabel);
          add (inputLabel);
          add (player);
          add (outputLabel);
          add (resultLabel);
          add (statementLabel);
          add (input);
          add (newlabel);
          add (copyrightlabel);
          setPreferredSize (new Dimension(300, 175));
          setBackground (Color.black);
       private JLabel getLabel(String s)
          JLabel label = new JLabel(s);
          label.setForeground(Color.red);
          return label;
       private class PlayerListener implements ActionListener
          Random generator = new Random();
          public void actionPerformed (ActionEvent event)
             String human = player.getText().toLowerCase();
             String comp = "";
             String dash = "---------------";
             int lol = generator.nextInt(3) + 1;
             switch (lol)
                case 1:
                   comp = "rock";
                   break;
                case 2:
                   comp = "paper";
                   break;
                case 3:
                   comp = "scissors";
                   break;
                if(comp.equals(human))
                   statementLabel.setText(dash + "tie. try again" + dash);
             else if(human.equals("rock") && comp.equals("paper"))
                statementLabel.setText(dash + "paper beats rock. YOU SUCK!" + dash);
             else if(human.equals("rock") && comp.equals("scissors"))
                statementLabel.setText(dash + "rock beats scissors. is very nice" + dash);
             else if(human.equals("paper") && comp.equals("rock"))
                statementLabel.setText(dash + "paper beats rock. you win" + dash);
             else if(human.equals("paper") && comp.equals("scissors"))
                statementLabel.setText(dash + "scissors beats paper. you n00b" + dash);
             else if(human.equals("scissors") && comp.equals("rock")) // << ";" !
                statementLabel.setText(dash + "rock beats scissors. owned" + dash);
             else if(human.equals("scissors") && comp.equals("paper"))
                statementLabel.setText(dash + "scissors beats paper. you win" + dash);
             else
                statementLabel.setText(dash + "error" + dash);   
             resultLabel.setText(comp);
       public static void main(String[] args)
          JFrame f = new JFrame();
          f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          f.getContentPane().add(new RPS());
          f.pack();
          f.setVisible(true);
    }

  • Help needed with spry image slide show

    Im new to dw and am currently building a site for my buisness.  I installed a spry image slide show and it works fine in live view but when I view it on the web
    it was looking for sever .js files. I then checked out the spry forums and noticed that it seems to be a common problem. I tried removing the ui1.7 file from the server and reloading,tried removing from local and remote and reloading, tried to change the line <script.src=spry-ui-1.7 etc. to the adobe site as per gramps advise to another having the same issue.  Now when I view on the web the slideshow wheel keeps turning but images donot apear.  Im lost and can use some help, enclosed is my code also sight is www.patsiga.net
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>pats iga supermarket</title>
    <link href="main.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
    <script src="http://labs.adobe.com/technologies/spry/ui/includes/SpryWidget.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryPanelSelector.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryPanelSet.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryFadingPanels.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SprySliderPanels.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryFilmStrip.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryImageLoader.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryImageSlideShow.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryThumbnailFilmStripPlugin.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryTitleSliderPlugin.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryPanAndZoomPlugin.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
    background-color: #AF692A;
    </style>
    <link href="Spry-UI-1.7/css/ImageSlideShow/basicFS/basic_fs.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* BeginOAWidget_Instance_2141543: #frontpageslideshow */
    #frontpageslideshow {
    width: 960px;
    margin: 0px 0px 0px 0px;
    border: solid 0px #aaaaaa;
    background-color: #FFFFFF;
    padding-top: 0px;
    #frontpageslideshow .ISSName {
    top: -24px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 18px;
    text-transform: uppercase;
    color: #AAAAAA;
    #frontpageslideshow .ISSSlideTitle {
    top: -18px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 12px;
    overflow: hidden;
    color: #AAAAAA;
    text-transform: none;
    #frontpageslideshow .ISSClip {
    height: 361px;
    margin: 0 0px 0px 0px;
    border: solid 0px #ffffff;
    background-color: #ffffff;
    #frontpageslideshow .ISSControls {
    top: 0px;
    height: 361px;
    #frontpageslideshow .FilmStrip {
    height: 0px;
    background-color: #CCCCCC;
    #frontpageslideshow .FilmStripPreviousButton, #frontpageslideshow .FilmStripNextButton {
    width: 10px;
    height: 0px;
    #frontpageslideshow .FilmStripTrack {
    height: 0px;
    #frontpageslideshow .FilmStripContainer {
    height: 0px;
    #frontpageslideshow .FilmStripPanel {
    height: 0px;
    padding-left: 10px;
    margin-right: 0px;
    #frontpageslideshow .FilmStripPanel .ISSSlideLink {
    margin-top: 10px;
    border: solid 1px #AAAAAA;
    background-color: #FFFFFF;
    #frontpageslideshow .FilmStripPanel .ISSSlideLinkRight {
    border: solid 1px #AAAAAA;
    width: 56px;
    height: 47px;
    margin: 4px 4px 4px 4px;
    #frontpageslideshow .FilmStripCurrentPanel .ISSSlideLink {
    background-color: #ffffff;
    border-color: #000000;
    #frontpageslideshow .FilmStripCurrentPanel .ISSSlideLinkRight {
    border-color: #AAAAAA;
    /* EndOAWidget_Instance_2141543 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2141543" binding="#frontpageslideshow" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><!-- end .header --><a href="index.html"><img src="images/logoimg.jpg" width="259" height="136" alt="pats_logo" /></a><img src="images/H1180T2.jpg" width="699" height="120" alt="header_graphic" /></div>
      <div class="container">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="weekly_ad.html" title="weekly ad">Weekly ad</a></li>
          <li><a href="recepies.html" title="recepies">Recepies</a></li>
          <li><a href="entertainment.html" title="entertaining" class="MenuBarItemSubmenu">Entertaining</a>
            <ul>
              <li><a href="bakery_brochure.html" title="bakery_brochure">Bakery brochure</a></li>
              <li><a href="deli_platters.html" title="Deli_platters">Deli platters</a></li>
              <li><a href="catering_menu.html" title="Catering_menu">Catering Menu</a></li>
            </ul>
          </li>
          <li><a href="pats_best.html" title="pats best">Pat's Best</a></li>
          <li><a href="organics.html" title="organics">Organics</a></li>
          <li><a href="gift_cards.html" title="gift cards">Gift Cards</a></li>
          <li><a href="#" title="departments" class="MenuBarItemSubmenu">Departments</a>
            <ul>
              <li><a href="meats.html" title="dept_meats">Meats</a></li>
              <li><a href="seafood.html" title="dept_seafood">Seafood</a></li>
              <li><a href="deli.html" title="Dept_deli">Deli</a></li>
              <li><a href="prep_foods.html" title="Dept_prep_foods">Prepared Foods</a></li>
              <li><a href="produce.html" title="dept_produce">Produce</a></li>
              <li><a href="bakery.html" title="Dept_bakery">Bakery</a></li>
            </ul>
          </li>
        </ul>
        <p> </p>
        <ul id="frontpageslideshow" title="">
          <li><a href="images/fall.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-1.jpg" alt="photos-1.jpg" /></a></li>
          <li><a href="images/apples.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-10.jpg" alt="photos-10.jpg" /></a></li>
          <li><a href="images/pumpkinsoup.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-11.jpg" alt="photos-11.jpg" /></a></li>
          <li><a href="images/roast.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-12.jpg" alt="photos-12.jpg" /></a></li>
          <li><a href="images/applepie.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-13.jpg" alt="photos-13.jpg" /></a></li>
        </ul>
        <script type="text/javascript">
    // BeginOAWidget_Instance_2141543: #frontpageslideshow
    var frontpageslideshow = new Spry.Widget.ImageSlideShow("#frontpageslideshow", {
    widgetID: "frontpageslideshow",
    widgetClass: "BasicSlideShowFS",
    injectionType: "replace",
    autoPlay: true,
    displayInterval: 4500,
    transitionDuration: 2000,
    componentOrder: ["name", "title", "view", "controls", "links"],
    sliceMap: { BasicSlideShowFS: "3slice", ISSSlideLink: "3slice" },
    plugIns: [ Spry.Widget.ImageSlideShow.ThumbnailFilmStripPlugin ],
    TFSP: { pageIncrement: 4, wraparound: true }
    // EndOAWidget_Instance_2141543
        </script>
    <p>Since this is a one-column layout, the .content is not floated. </p>
        <h3>Logo Replacement</h3>
        <p>An image placeholder was used in this layout in the .header where you'll likely want to place  a logo. It is recommended that you remove the placeholder and replace it with your own linked logo. </p>
        <p> Be aware that if you use the Property inspector to navigate to your logo image using the SRC field (instead of removing and replacing the placeholder), you should remove the inline background and display properties. These inline styles are only used to make the logo placeholder show up in browsers for demonstration purposes. </p>
        <p>To remove the inline styles, make sure your CSS Styles panel is set to Current. Select the image, and in the Properties pane of the CSS Styles panel, right click and delete the display and background properties. (Of course, you can always go directly into the code and delete the inline styles from the image or placeholder there.)</p>
      <!-- end .content --></div>
      <div class="footer">
        <p><a href="about_us.html" title="about_us">About Us</a><a href="#">  </a>   <a href="employment.html" title="employment">Employment</a>    <a href="store_info.html" title="store_info"> Store Info.</a>     <a href="#" title="contact_us">Contact Us</a>    <a href="terms_of_use.html" title="terms_of_use">Terms of Use</a>   <a href="privacy.html" title="Privacy_policy"> Privacy Policy</a><br />
    &copy;2011 Pat's IGA     <br />
        </p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

    Your spry assets folder MUST be in the same folder as that of your webpage with the slideshow (html, php... whatever)
    Check your folder configuration on the server by clicking on the "Remote Button" on the DW Assets Tab.
    Example 1:  This will not work:
    WEBPAGE HERE:    /server/public/myfolder/slideshow.html
    SPRY ASSETS HERE:  /server/public/SpryAssets/....your javascript files
    Example 2: This will work:
    WEB PAGE HERE:  /server/public/myfolder/slideshow.html
    SPRY ASSETS HERE:  /server/public/myfolder/SpryAssets/....your javascript files
    Hope this helps.

  • Help with unloading images AS3

    Please can anyone help me. I am new to Action Script and flash and am having a nightmare unloading images. The code below works but I keep getting the following error messages:
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/removeChild()
    at index_fla::MainTimeline/clickSection()
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at index_fla::MainTimeline/clickSection()
    Any help with this would be much appreciated.
    var ImgReq01:URLRequest=new URLRequest("images/home/01.jpg");
    var ImgReq02:URLRequest=new URLRequest("images/home/02.jpg");
    var ImgReq03:URLRequest=new URLRequest("images/home/03.jpg");
    var ImgReq04:URLRequest=new URLRequest("images/home/04.jpg");
    var ImgReq05:URLRequest=new URLRequest("images/home/05.jpg");
    var imgList:Array=[ImgReq01,ImgReq02,ImgReq03,ImgReq04,ImgReq05];
    var imgRandom = imgList[Math.floor(Math.random()* imgList.length)];
    var imgLoader:Loader = new Loader();
    imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    imgLoader.load(imgRandom);
    function onComplete(event:Event):void
      var randomImage:Bitmap = Bitmap(imgLoader.content);
      randomImage.x=187.4;
      randomImage.y=218.1;
      addChild(randomImage);
    //handle events for info buttons...
    information. addEventListener (MouseEvent.CLICK, clickSection);
    home. addEventListener (MouseEvent.CLICK, clickSection);
    galleries. addEventListener (MouseEvent.CLICK, clickSection);
    function clickSection (evtObj:MouseEvent) {
    //Trace shows what's happening.. in the output window
    trace ("The "+evtObj.target.name+" button was clicked")
    //go to the section clicked on...
    gotoAndStop (evtObj.target.name)
    // this line is causing errors when navigating between the gallery and information buttons
    var Image:Bitmap = Bitmap(imgLoader.content);
      removeChild(Image);

    you really should be adding the loader to the displaylist, not the content.
    try:
    var ImgReq01:URLRequest=new URLRequest("images/home/01.jpg");
    var ImgReq02:URLRequest=new URLRequest("images/home/02.jpg");
    var ImgReq03:URLRequest=new URLRequest("images/home/03.jpg");
    var ImgReq04:URLRequest=new URLRequest("images/home/04.jpg");
    var ImgReq05:URLRequest=new URLRequest("images/home/05.jpg");
    var imgList:Array=[ImgReq01,ImgReq02,ImgReq03,ImgReq04,ImgReq05];
    var imgRandom = imgList[Math.floor(Math.random()* imgList.length)];
    var imgLoader:Loader = new Loader();
    imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    imgLoader.load(imgRandom);
    function onComplete(event:Event):void
    imgLoader.x=187.4;
    imgLoader.y=218.1;
      addChild(imgLoader);
    //handle events for info buttons...
    information. addEventListener (MouseEvent.CLICK, clickSection);
    home. addEventListener (MouseEvent.CLICK, clickSection);
    galleries. addEventListener (MouseEvent.CLICK, clickSection);
    function clickSection (evtObj:MouseEvent) {
    //Trace shows what's happening.. in the output window
    trace ("The "+evtObj.target.name+" button was clicked")
    //go to the section clicked on...
    gotoAndStop (evtObj.target.name)
    // this line is causing errors when navigating between the gallery and information buttons
    if(this.contains(imgLoader){
      removeChild(imgLoader);

  • Having trouble with spry image slide show

    Im new to dw and i inserted a image slide show into my index.htm file, it works fine when i preview it in dw cs5.5.  When I try it on a web browser I get a dialog box that says that the spry panel selector .js requires spry widget.js and continues thru several other dialog boxes until my website loads only to see my image slideshow as a list.  Im not sure if its in the code or the support files can anyone help?  I would greatly appreciate it if someone can set me on the right path with this, Thank you in advance.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Pats IGA Supermarket</title>
    <link href="main.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryPanelSelector.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryPanelSet.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryFadingPanels.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SprySliderPanels.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryFilmStrip.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryImageLoader.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/SpryImageSlideShow.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryThumbnailFilmStripPlugin.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryTitleSliderPlugin.js" type="text/javascript"></script>
    <script src="Spry-UI-1.7/includes/plugins/ImageSlideShow/SpryPanAndZoomPlugin.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    body {
        background-color: #9D5F16;
    </style>
    <link href="Spry-UI-1.7/css/ImageSlideShow/basicFS/basic_fs.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* BeginOAWidget_Instance_2141543: #frontpageslideshow */
    #frontpageslideshow {
        width: 951px;
        margin: 0px 0px 0px 0px;
        border: solid 0px #aaaaaa;
        background-color: #FFFFFF;
        padding-top: 0px;
    #frontpageslideshow .ISSName {
        top: -24px;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: normal;
        font-size: 18px;
        text-transform: uppercase;
        color: #AAAAAA;
    #frontpageslideshow .ISSSlideTitle {
        top: -18px;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: normal;
        font-size: 12px;
        overflow: hidden;
        color: #AAAAAA;
        text-transform: none;
    #frontpageslideshow .ISSClip {
        height: 361px;
        margin: 0 0px 0px 0px;
        border: solid 0px #ffffff;
        background-color: #ffffff;
    #frontpageslideshow .ISSControls {
        top: 0px;
        height: 361px;
    #frontpageslideshow .FilmStrip {
        height: 0px;
        background-color: #CCCCCC;
    #frontpageslideshow .FilmStripPreviousButton, #frontpageslideshow .FilmStripNextButton {
        width: 10px;
        height: 0px;
    #frontpageslideshow .FilmStripTrack {
        height: 0px;
    #frontpageslideshow .FilmStripContainer {
        height: 0px;
    #frontpageslideshow .FilmStripPanel {
        height: 0px;
        padding-left: 10px;
        margin-right: 0px;
    #frontpageslideshow .FilmStripPanel .ISSSlideLink {
        margin-top: 10px;
        border: solid 1px #AAAAAA;
        background-color: #FFFFFF;
    #frontpageslideshow .FilmStripPanel .ISSSlideLinkRight {
        border: solid 1px #AAAAAA;
        width: 56px;
        height: 47px;
        margin: 4px 4px 4px 4px;
    #frontpageslideshow .FilmStripCurrentPanel .ISSSlideLink {
        background-color: #ffffff;
        border-color: #000000;
    #frontpageslideshow .FilmStripCurrentPanel .ISSSlideLinkRight {
        border-color: #AAAAAA;
    /* EndOAWidget_Instance_2141543 */
    </style>
    <script type="text/xml">
    <!--
    <oa:widgets>
      <oa:widget wid="2141543" binding="#frontpageslideshow" />
    </oa:widgets>
    -->
    </script>
    </head>
    <body>
    <div class="container">
      <div class="header"><a href="index.html"><img src="images/logoimg.jpg" width="259" height="136" alt="logo" /></a><img src="images/topheader.jpg" width="701" height="136" alt="header_logo" /><!-- end .header --></div>
      <div class="content">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="#">Weekly Ad</a>      </li>
          <li><a href="#">Recepies</a></li>
          <li><a href="#" class="MenuBarItemSubmenu">Entertaining</a>
            <ul>
              <li><a href="#">Bakery Brochure</a></li>
              <li><a href="#">Deli Platters</a></li>
              <li><a href="#">Catering Planner</a></li>
            </ul>
          </li>
          <li><a href="#">Pat's Best</a></li>
          <li><a href="#">Organics</a></li>
          <li><a href="#">Gift Cards</a>      </li>
          <li><a href="#" class="MenuBarItemSubmenu">Departments</a>
            <ul>
              <li><a href="#">Meats</a></li>
              <li><a href="#">Deli</a></li>
              <li><a href="#">Prepared Foods</a></li>
              <li><a href="#">Seafood</a></li>
              <li><a href="#">Produce</a></li>
              <li><a href="#">Bakery</a></li>
            </ul>
          </li>
        </ul>
        <p> </p>
        <ul id="frontpageslideshow" title="">
          <li><a href="images/fall.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-1.jpg" alt="fall.jpg" /></a></li>
          <li><a href="images/apples.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-10.jpg" alt="apples.jpg" /></a></li>
          <li><a href="images/applepie.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-11.jpg" alt="applepie.jpg" /></a></li>
          <li><a href="images/pumpkinsoup.jpg" title=""><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-12.jpg" alt="pumpkinsoup.jpg" /></a></li>
          <li><a href="images/roast.jpg" title="r"><img src="http://labs.adobe.com/technologies/spry/ui/images/dbooth/thumbnails/photos-13.jpg" alt="roast.jpg" /></a></li>
        </ul>
        <script type="text/javascript">
    // BeginOAWidget_Instance_2141543: #frontpageslideshow
    var frontpageslideshow = new Spry.Widget.ImageSlideShow("#frontpageslideshow", {
        widgetID: "frontpageslideshow",
        widgetClass: "BasicSlideShowFS",
        injectionType: "replace",
        autoPlay: true,
        displayInterval: 4500,
        transitionDuration: 2000,
        componentOrder: ["name", "title", "view", "controls", "links"],
        sliceMap: { BasicSlideShowFS: "3slice", ISSSlideLink: "3slice" },
        plugIns: [ Spry.Widget.ImageSlideShow.ThumbnailFilmStripPlugin ],
        TFSP: { pageIncrement: 4, wraparound: true }
    // EndOAWidget_Instance_2141543
        </script>
    Since this is a one-column layout, the .content is not floated.
        Logo Replacement
        An image placeholder was used in this layout in the .header where you'll likely want to place  a logo. It is recommended that you remove the placeholder and replace it with your own linked logo.
        Be aware that if you use the Property inspector to navigate to your logo image using the SRC field (instead of removing and replacing the placeholder), you should remove the inline background and display properties. These inline styles are only used to make the logo placeholder show up in browsers for demonstration purposes.    To remove the inline styles, make sure your CSS Styles panel is set to Current. Select the image, and in the Properties pane of the CSS Styles panel, right click and delete the display and background properties. (Of course, you can always go directly into the code and delete the inline styles from the image or placeholder there.) <!-- end .content --></div>
      <div class="footer">
        <p>About us  Other Services Employment Contacy us Terms of use Privacy Policy</p>
        <!-- end .footer --></div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

    Your spry assets folder MUST be in the same folder as that of your webpage with the slideshow (html, php... whatever)
    Check your folder configuration on the server by clicking on the "Remote Button" on the DW Assets Tab.
    Example 1:  This will not work:
    WEBPAGE HERE:    /server/public/myfolder/slideshow.html
    SPRY ASSETS HERE:  /server/public/SpryAssets/....your javascript files
    Example 2: This will work:
    WEB PAGE HERE:  /server/public/myfolder/slideshow.html
    SPRY ASSETS HERE:  /server/public/myfolder/SpryAssets/....your javascript files
    Hope this helps.

  • Help with unloading images

    Please can anyone help me. I am new to Action Script and flash and am having a nightmare unloading images. The code below works but I keep getting the following error messages:
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/removeChild()
    at index_fla::MainTimeline/clickSection()
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at index_fla::MainTimeline/clickSection()
    Any help with this would be much appreciated.
    var ImgReq01:URLRequest=new URLRequest("images/home/01.jpg");
    var ImgReq02:URLRequest=new URLRequest("images/home/02.jpg");
    var ImgReq03:URLRequest=new URLRequest("images/home/03.jpg");
    var ImgReq04:URLRequest=new URLRequest("images/home/04.jpg");
    var ImgReq05:URLRequest=new URLRequest("images/home/05.jpg");
    var imgList:Array=[ImgReq01,ImgReq02,ImgReq03,ImgReq04,ImgReq05];
    var imgRandom = imgList[Math.floor(Math.random()* imgList.length)];
    var imgLoader:Loader = new Loader();
    imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    imgLoader.load(imgRandom);
    function onComplete(event:Event):void
      var randomImage:Bitmap = Bitmap(imgLoader.content);
      randomImage.x=187.4;
      randomImage.y=218.1;
      addChild(randomImage);
    //handle events for info buttons...
    information. addEventListener (MouseEvent.CLICK, clickSection);
    home. addEventListener (MouseEvent.CLICK, clickSection);
    galleries. addEventListener (MouseEvent.CLICK, clickSection);
    function clickSection (evtObj:MouseEvent) {
    //Trace shows what's happening.. in the output window
    trace ("The "+evtObj.target.name+" button was clicked")
    //go to the section clicked on...
    gotoAndStop (evtObj.target.name)
    // this line is causing errors when navigating between the gallery and information buttons
    var Image:Bitmap = Bitmap(imgLoader.content);
      removeChild(Image);

    you really should be adding the loader to the displaylist, not the content.
    try:
    var ImgReq01:URLRequest=new URLRequest("images/home/01.jpg");
    var ImgReq02:URLRequest=new URLRequest("images/home/02.jpg");
    var ImgReq03:URLRequest=new URLRequest("images/home/03.jpg");
    var ImgReq04:URLRequest=new URLRequest("images/home/04.jpg");
    var ImgReq05:URLRequest=new URLRequest("images/home/05.jpg");
    var imgList:Array=[ImgReq01,ImgReq02,ImgReq03,ImgReq04,ImgReq05];
    var imgRandom = imgList[Math.floor(Math.random()* imgList.length)];
    var imgLoader:Loader = new Loader();
    imgLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    imgLoader.load(imgRandom);
    function onComplete(event:Event):void
    imgLoader.x=187.4;
    imgLoader.y=218.1;
      addChild(imgLoader);
    //handle events for info buttons...
    information. addEventListener (MouseEvent.CLICK, clickSection);
    home. addEventListener (MouseEvent.CLICK, clickSection);
    galleries. addEventListener (MouseEvent.CLICK, clickSection);
    function clickSection (evtObj:MouseEvent) {
    //Trace shows what's happening.. in the output window
    trace ("The "+evtObj.target.name+" button was clicked")
    //go to the section clicked on...
    gotoAndStop (evtObj.target.name)
    // this line is causing errors when navigating between the gallery and information buttons
    if(this.contains(imgLoader){
      removeChild(imgLoader);

  • Getting images to show in Apex that are stored in the DB

    I'm trying to get an image to show in html code or javascript that I store in the DB. It shows in an IR but I can't get it to show in a html <img> tag.
    My DB is an oracle XE 11 DB and I'm using Apex 4.
    This is my table:
    CREATE TABLE "MAP_IMG_POS"
    (     "ID" NUMBER(10,0),
         "ID_MAP_IMAGE" NUMBER(10,0),
         "ID_POSITION" NUMBER(10,0),
    "ID_SERVER" NUMBER(10,0),
         "CREATION_USER" VARCHAR2(255),
         "CREATION_DATE" DATE,
         "MODIFICATION_USER" VARCHAR2(255),
         "MODIFICATION_DATE" DATE);
    I added PK, triggers, sequence etc
    I insert the images using an Apex form.
    I found this procedure to get the images:
    create or replace
    PROCEDURE my_image_display(p_image_id IN NUMBER)
    AS
    l_mime VARCHAR2 (255);
    l_length NUMBER;
    l_file_name VARCHAR2 (2000);
    lob_loc BLOB;
    BEGIN
    SELECT MIME_TYPE, IMAGE, DBMS_LOB.getlength (image)
    INTO l_mime, lob_loc, l_length
    FROM map_images
    WHERE id = p_image_id;
    OWA_UTIL.mime_header (NVL (l_mime, 'application/octet'), FALSE);
    HTP.p ('Content-length: ' || l_length);
    OWA_UTIL.http_header_close;
    WPG_DOCLOAD.download_file (lob_loc);
    END my_image_display;
    and put it in my schema.
    I gave the following grants in my Shema:
    GRANT EXECUTE ON schema1.my_image_display TO PUBLIC;
    CREATE PUBLIC SYNONYM my_image_display FOR schema1.my_image_display;
    I created a html region and added the following code:
    <img src="#OWNER#.my_image_display?p_image_id=2"/>
    2 ofc being the id of one of the images.
    Yet when I load the page the image won't show. I do get a little icon when I right click it and check the code I just see:
    http://127.0.0.1:8080/apex/SCHEMA1.my_image_display?p_image_id=2
    Any ideas what I'm doing wrong? I'm also open for suggestions on other ways to do this..
    I appreciate all the help!

    After a long search and much much reading..
    Re: HTP.Print not working
    This finally helped me ;-)

  • Help with partial image loss from Viewer to Canvas

    Hi--I'm brand new to FCP and would really appreciate any help with my problem. I'm creating 2 second video clips composed of four still images (15 frames...or 500ms each) laid back to back, then rendered. Very simple, I know. The individual images are tiff files that look great in the FCP Viewer. But in the Canvas, part of the image is missing. Specifically, in the center of each image there should be a + sign, about 1cm square. This + should remain constant thoughout the short movie, while the items around it vary (from image to image). (This is a psychology experiment, and the center + is a fixation cross.) The problem is that in the Viewer the + sign is intact, but in the Canvas (and the resulting rendered video), only the vertical bar of the + is present! This is true for every individual tiff, and for the resulting movie. The items around the fixation cross are fine. My question is WHY on earth does the central horizontal bar get "lost" between the Viewer and the Canvas? I've read the manuals, but obviously I've got something set wrong. Also, there is a considerable overall reduction in quality between the viewer and canvas, even though I'm trying my best to maximize video quality. Everything looks a bit blurry. Truly, all ideas are welcome. Sorry if it's obvious. Thanks.
    G5   Mac OS X (10.4.3)  

    steve, i'm viewing on my 23" cinema screen. i read up on quality and know that this is a no-no; that i should only judge quality when viewing on an ntsc monitor or good tv. the problem is that i'll ultimately be displaying these videos on my Dell LCD, so i've got to maximize what i've got. thanks to the discussion boards i have a short list of things to try now. thanks!
    -heather

  • Seeking Help with Album Image Issues in iPod Classic

    Hi folks -
    I have a new 160 iPod Classic and have two album image-related issues I'd appreciate some help with.
    In the case of several albums where I'd associated my own art with them in iTunes, the formatting appeared off in my iPod due to the vertical/horizontal proportions. So I corrected the images, replaced the images via iTunes, and re-synced. All of the old images were replaced - except for two. Is there any way to get my iPod to recognize the change to these two images, as it did for all the others?
    Secondly, my "The Allman Brothers Band Live at Fillmore East" album was appearing twice in both the Cover Flow and Album list. That was strange, except that after the latest sync it now appears six times! It's only in one place in iTunes, and not erroneously set as a compilation or anything. This is the only album displaying this behavior...
    Thanks for any suggestions or advice!
    Frank
    Message was edited by: frank3si

    Yes my e-mail address is [email protected] 
    Thank you for your kind attention to my problem. I am looking for one on one brief consultation with my laptop in Cincinnati. If not then I will compose a clear question with VI.
    These manuals are well known to me NI Visions Concepts ManualIMAQ Vision for LaVIEW User ManuelNI-IMAQ for USB Cameras My problem is moving to the next step of Create an array of USB imagePerform math on array Display results Sincerely,Tom Lohre cell 513-236-1704, [email protected] http://tomlohre.com/images/lafley.jpgAG Lafley, Chairman & CEO of Proctor & Gamble http://tomlohre.com/lafley.htm A.G. Lafley enjoyed hearing of Tom's painting robot and thought it played well to his new book: "The Game-Changer: How You Can Drive Revenue and Profit Growth With Innovation." http://tomlohre.com/newart.htm
    Tom Lohre artist/scientist
    Has a operating painting robot using RoboLab/RCX
    Developing a LabView/ NXT robot that analyzes an image for aesthetic quality.

Maybe you are looking for

  • Pof Serialization Error leads to partial cache updates in XA Tran

    I am using coherence jca adapter to enlist in XA transactions with the database operations. The data is being stored in distributed caches with the cache member running on weblogic server with "Storage disabled". POF is being used for serialization.

  • Best Way to export synth tracks from logic into Protools LE

    Hi I have recorded my song in Logic using the software instruments and I am going to mix it in protools any suggestions as to the best way to get these tracks out of logic and into protools? Just wondered what different options there are and if there

  • Oracle Planning gives error when trying to open application from Workspace.

    Hello, We have version 11.2.2.0.0 of Planning installed. After the install of Essbase Studio Server we have hit some issues where Planning does not seem to be available. Despite re-deploying several times and other things, we cannot connect to the Pl

  • Hide refresh from UWL tray menu

    How can I hide the "Refresh" link from the UWL inbox tray menu?  The refresh link that I'm referring to is along with other links like "manage substitution rules, personalize view, Display connection status". Thanks Praveen

  • Old problem kinda solved but now I got a CRC problem, begging for help.

    I have kinda solved the problem I had in my previous post: https://forum-en.msi.com/index.php?topic=84615.0 However now I have a new problem. I solved my other problem by moving the memories from the 2 green slots on the mainboard to 1 green and 1 pu