Loading a jpg image into my java 3d scene

public class Example3D extends JApplet {
    public BranchGroup createSceneGraph() {
     // creating the universe
     BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
     BranchGroup objRoot = new BranchGroup();
     TransformGroup mainTG = new TransformGroup();          
     mainTG.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
     mainTG.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
     // Now you can add new elements to the mainTG
     ColorCube c2 = new ColorCube(.1);
     mainTG.addChild(c2);
     objRoot.addChild(mainTG);
     // Create the rotate behavior node
     MouseRotate behavior = new MouseRotate();
     behavior.setTransformGroup(mainTG);
     objRoot.addChild(behavior);
     behavior.setSchedulingBounds(bounds);
     // Create the zoom behavior node
     MouseZoom behavior2 = new MouseZoom();
     behavior2.setTransformGroup(mainTG);
     objRoot.addChild(behavior2);
     behavior2.setSchedulingBounds(bounds);
     // Create the translate behavior node
      MouseTranslate behavior3 = new MouseTranslate();
     behavior3.setTransformGroup(mainTG);
     objRoot.addChild(behavior3);
     behavior3.setSchedulingBounds(bounds);
     objRoot.compile();
     return objRoot;
    public Example3D() {
     Container cp = getContentPane();
     cp.setLayout(new BorderLayout());
     Canvas3D c = new Canvas3D(SimpleUniverse.
                      getPreferredConfiguration() );
     cp.add("Center", c);
     BranchGroup scene = createSceneGraph();
     SimpleUniverse u = new SimpleUniverse(c);
     u.getViewingPlatform().setNominalViewingTransform();
     u.addBranchGraph(scene);
    public static void main(String[] args) {       
     new MainFrame(new Example3D(), 512, 512);
}as a test, i added a cube into the scene and it works fine. but i also want to add a 2d jpg image into the scene too, its called flatTable.jpg
i hope someone can help me, thanks guys.

Check out this link:
http://java3d.j3d.org/tutorials/raw_j3d/chapter1/textures.html
It should give you enough information about loading textures with java3d.

Similar Messages

  • How to add images into a java application (not applet)

    Hello,
    I am new in java programming. I would like to know how to add images into a java application (not an applet). If i could get an standard example about how to add a image to a java application, I would apreciated it. Any help will be greatly apreciated.
    Thank you,
    Oscar

    Your' better off looking in the java 2d forum.
    package images;
    import java.awt.*;
    import java.awt.image.*;
    import java.io.FileInputStream;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    /** * LogoImage is a class that is used to load images into the program */
    public class LogoImage extends JPanel {
         private BufferedImage image;
         private int factor = 1; /** Creates a new instance of ImagePanel */
         public LogoImage() {
              this(new Dimension(600, 50));
         public LogoImage(Dimension sz) {
              //setBackground(Color.green);      
              setPreferredSize(sz);
         public void setImage(BufferedImage im) {
              image = im;
              if (im != null) {
                   setPreferredSize(
                        new Dimension(image.getWidth(), image.getHeight()));
              } else {
                   setPreferredSize(new Dimension(200, 200));
         public void setImageSizeFactor(int factor) {
              this.factor = factor;
         public void paintComponent(Graphics g) {
              super.paintComponent(g);
              //paint background 
              Graphics2D g2D = (Graphics2D) g;
              //Draw image at its natural size first. 
              if (image != null) {
                   g2D.drawImage(image, null, 0, 0);
         public static LogoImage createImage(String filename) { /* Stream the logo gif file into an image object */
              LogoImage logoImage = new LogoImage();
              BufferedImage image;
              try {
                   FileInputStream fileInput =
                        new FileInputStream("images/" + filename);
                   image = ImageIO.read(fileInput);
                   logoImage =
                        new LogoImage(
                             new Dimension(image.getWidth(), image.getHeight()));
                   fileInput.close();
                   logoImage.setImage(image);
              } catch (Exception e) {
                   System.err.println(e);
              return logoImage;
         public static void main(String[] args) {
              JFrame jf = new JFrame("testImage");
              Container cp = jf.getContentPane();
              cp.add(LogoImage.createImage("logo.gif"), BorderLayout.CENTER);
              jf.setVisible(true);
              jf.pack();
    }Now you can use this class anywhere in your pgram to add a JPanel

  • How do i convert my scanned jpg images into word

    How do i convert my scanned jpg images into word

    No, Acrobat Pro is expensive
    95% of all the professional scanned in books are in PDF, the entire structure and countless years of work have gone into Acrobat being not just the "best" standard for scanned books, but really the ONLY standard for them.
    Yes, many many little programs can convert to PDF after you have them in a file, or even from Safari you can "print as PDF" or "save as PDF"
    however it just saves them as PDF, and you can use Acrobat READER for free,....
    but Reader is just that, a reader, you cannot do pro editing, scale down the file size etc etc, signatures, portfolios etc.
    Ive got a 42 Terabyte collection of PDF books,.....Ive spent too much time staring at PDF books   LoL.

  • Convert Jpg images into patterns (.pat)

    Is it possible to Batch convert Jpg images into .pat files? I am familiar with the define pattern function but what I really need is to convert many jpg's.
    Thanks

    Use edit Define pattern on the image to define a Photoshop pattern. Then use the preset manager to save the pattern as a *.pat file.....
    To batch this you may need to use a Photoshop Script to name the patterns a action define pattern step would have a hard code pattern name. Changing that step to a script could retrieve the document name and set the pattern name the same as the jpeg name.  You could define many patterns that way then use the preset manager select all the defined patterns and save a single *.pat file with that set of patterns.

  • PSE7 ~ I'm inserting a .jpg image into a project, need to resize smaller and it ends up blurry!

    Please help!
    I am creating a birthday invitation for my daughter using PSE7.  I found a few .jpeg images on the web that I want to use.  The images should be okay size-wise (a 66kb image) when I try to insert this image onto the invitation (size of the invite is 5x7) - image takes up maybe 1/6th of overall invitation.  When I insert this image into the project, it is HUGE.  I need to resize it to reduce, but when I do for some reason it becomes very blurry.  I can't figure this out!  At the very least a 66kb image should be able to be inserted onto this 5x7 invitation as a 1" square and be crisp at that size??  Ugghh!
    I hope I am being clear in my request...the image in question is pictured below.  When this image is inserted into my PSE project, it would be about 2" high on a 5"x7" invitation...
    Also, when I save the whole invitation as a jpg for printing, it's only 120kb file size...shouldn't it be much larger?  Am I missing a global setting somewhere that's messing everything up??  Many thanks in advance to anybody offering suggestions...

    You're thinking in the wrong terms. You need to be focusing more on ppi (pixels per inch) rather than the file size in KB. Start by  making sure your main image is at 300 ppi (you may have to start over from scratch). If the graphics are now way too small when you bring them in, remove them and try a lower resolution, but you don't want to go below about 220 usually (it depends on your printer how low you can go and get away with it).
    Go to Image>Resize>Image size to check your invite's ppi, but my guess is that you started at something like 72 ppi. If you did, I'd start over, unless you have enough pixels that when you change the ppi to 300 (with Resample Image turned OFF) it's still large enough.

  • Loading up an image into a Jpanel!! HELP!!

    Hi,
    With regards to the following code, I was wondering if anyone could help me. I am in the early stages of making a basic Image Editing program, and have managed to implement the following code. The thing is, when you load up an image, it seems to always position it in the top left corner of the container - overwiting all menus, buttons placed underneath. Why is this??
    I need the image to appear in the JPanel/canvas below the toolbar and not on top of it!!
    I hope someone out there can help me!
    Thanks,
    a very confused girl :(
    SAMPLE CODE:-
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.ImageIO;
    import java.net.*;
    import javax.swing.filechooser.*;
    public class ImageMaker extends JFrame implements ActionListener
         String kBanner = "ImageMaker v1.0";
         JPanel contentPane;
         JButton loadButton;
         JToolBar toolBar;
         JMenuBar menuBar;
         JMenu fileMenu;
         JMenuItem fileOpenMenuItem;
         public BufferedImage mBufferedImage;
         public ImageMaker(String fileName)
              Container appWindow = getContentPane();
              setTitle(kBanner);
              appWindow.setLayout(new BorderLayout(5,5));
              menuBar = new JMenuBar();
              setJMenuBar(menuBar);
              fileMenu = new JMenu("File");
              menuBar.add(fileMenu);
              fileOpenMenuItem = new JMenuItem("Open");
              fileMenu.add(fileOpenMenuItem);
              fileOpenMenuItem.addActionListener(this);
              toolBar = new JToolBar();
              loadButton = new JButton("Open");
              loadButton.addActionListener(this);
              toolBar.add(loadButton);
              contentPane = new JPanel();
              appWindow.add( BorderLayout.NORTH, toolBar);
              appWindow.add( BorderLayout.SOUTH, contentPane);
         public void loadImage(String fileName)
              Image image = Toolkit.getDefaultToolkit().getImage(fileName);
              MediaTracker mt = new MediaTracker(this);
              mt.addImage(image, 0);
              try { mt.waitForID(0); }
              catch (InterruptedException ie) { return; }
              if (mt.isErrorID(0)) return;
              mBufferedImage = new BufferedImage(image.getWidth(null),
                                                         image.getHeight(null),
                                               BufferedImage.TYPE_INT_RGB);
              Graphics2D g2 = mBufferedImage.createGraphics();
              g2.drawImage(image, null, null);
              validate();
              repaint();
              setTitle(kBanner + ": " + fileName);
         public void paint(Graphics g)
              super.paint(g);
              if (mBufferedImage == null) return;
              Insets insets = getInsets();
              g.drawImage(mBufferedImage, insets.left, insets.top, null);
         public void actionPerformed(ActionEvent ae)
              JFileChooser fd = new JFileChooser();
              int returnVal=fd.showOpenDialog(ImageMaker.this);
              if(returnVal==JFileChooser.APPROVE_OPTION)
                        if (fd.getSelectedFile() == null)
                           { return; }
                        File file=fd.getSelectedFile();
                        String path=(String)file.getPath();
                        loadImage(path);
              JMenu men = (JMenu) ae.getSource();
              String label = (String) men.getText();
              JButton butt = (JButton) ae.getSource();
              String butt2 = (String) butt.getText();
              if (label.equals("Open"))
             else if (label.equals("Save"))
         }//end ActionListener
         public static void main(String[] args)
              String fileName = "default";
              if (args.length > 0) fileName = args[0];
              ImageMaker img=new ImageMaker(fileName);
              img.setSize(800,600);
              img.show();
    }

    Hi,
    Thank you for your help.
    I have done what you suggested and created this code below using the paintComponent.
    It compiles, but when i run it i get an error ("Uncaught error fetching image: java.lang.NullPointerExecption"). I was hoping you could advise me further as i am really struggling to get this basic app running propely.
    Thanks againfor your help.
    import javax.swing.*;
    import javax.swing.border.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.ImageIO;
    import java.net.*;
    import javax.swing.filechooser.*;
    import javax.swing.plaf.basic.*;
    public class TLookupOp extends JFrame
    {     DisplayPanel displayPanel;
         JButton loadButton;
         public BufferedImage mBufferedImage;
         Graphics2D g2;
         String path;
         JFileChooser fd;
              public TLookupOp()
              {super("Test");
              Container container=getContentPane();
              container.setLayout(new BorderLayout(5,5));
              displayPanel=new DisplayPanel(path);
              container.add(displayPanel);
              JPanel panel=new JPanel();
              loadButton = new JButton("Open");
              loadButton.addActionListener(new ActionListener()
              {public void actionPerformed(ActionEvent ae)
                        fd = new JFileChooser();
                        int returnVal=fd.showOpenDialog(TLookupOp.this);
                        if(returnVal==JFileChooser.APPROVE_OPTION )
                                  if (fd.getSelectedFile() == null)
                                     { return; }
                                  File file=fd.getSelectedFile();
                                  path=(String)file.getPath();
                                  //displayPanel=new DisplayPanel(path);
                                  //displayPanel.loadImage(path);
             loadButton.setToolTipText("Click to load an image.");
              panel.add(loadButton);
              container.add( BorderLayout.NORTH, panel);
              addWindowListener(new WindowEventHandler());
              setSize(displayPanel.getWidth(),displayPanel.getHeight()+25);
              show();
              class WindowEventHandler extends WindowAdapter
              {public void windowClosing(WindowEvent e)
              {System.exit(0);
              public static void main(String[] args)
              {new TLookupOp();
    class DisplayPanel extends JPanel
    {Image image;
    BufferedImage mBufferedImage;
    Graphics2D g2;
    String filepath;
    DisplayPanel(String path)
    { filepath=path;
          loadImage(filepath);
    setSize(image.getWidth(this), image.getWidth(this));
    createBufferedImage();
    public void loadImage(String fileName)
              Image image = Toolkit.getDefaultToolkit().getImage(fileName);
              MediaTracker mt = new MediaTracker(this);
              mt.addImage(image, 0);
              try { mt.waitForID(0); }
              catch (InterruptedException ie) { return; }
              if (mt.isErrorID(0)) return;
    public void createBufferedImage()
    {mBufferedImage=new BufferedImage(image.getWidth(null),
                                                         image.getHeight(null),
                                               BufferedImage.TYPE_INT_RGB);
    g2 = mBufferedImage.createGraphics();
    g2.drawImage(image,0,0,this);
    public void paintComponent(Graphics g)
              super.paintComponent(g);
              Graphics2D g2D=(Graphics2D) g;
              g2D.drawImage(mBufferedImage,0,0,this);
    }

  • Load a redrawn image into a JLabel and save it into a BufferedImage?

    Hello, I'm doing a small application to rotate an image, it works, but I'd like to show it into a JLabel that I added, and also store the converted image into a BufferedImage to save it into a database, this is what I have so far:
    public void getImage() {
    try{
    db_connection connect = new db_connection();
    Connection conn = connect.getConnection();
    Statement stmt = conn.createStatement();
    sql = "SELECT image " +
    "FROM image_upload " +
    "WHERE image_id = 1";
    rset = stmt.executeQuery(sql);
    if(rset.next()){
    img1 = rset.getBinaryStream(1);
    buffImage = ImageIO.read(img1);
    rset.close();
    } catch(Exception e){
    System.out.println(e);
    public void paint(Graphics g){
    super.paint(g);
    Graphics2D g2 = (Graphics2D) g;
    ImageIcon imgIcon = new ImageIcon(buffImage);
    AffineTransform tx = AffineTransform.getRotateInstance(rotacion, imgIcon.getIconWidth()/2, imgIcon.getIconHeight()/2);
    g2.drawImage(imgIcon.getImage(), tx, this);
    jLabel1.setIcon(imgIcon);
    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {
    // TODO add your handling code here:
    setRotacion(getRotacion() + 1.5707963249999999);
    repaint();
    I get the image from a db, then using the paint() method I rotate the image, it works, but the new image is outside of the JLabel and I don't know how to assign the new one into the JLabel (like overwritting the original) and also how to store the new image into a BufferedImage to upload it into the database converted, thanks in advanced, any help would be appreciated, thanks!!
    Edited by: saman0suke on 25-dic-2011 14:07
    Edited by: saman0suke on 25-dic-2011 15:08

    I was able already to fill the JLabel with the modified content, just by creating a new BufferedImage, then create this one into a Graphics2D object and the drawing the image into it, last part, inserting the modified image into the database, so far, so good, thanks!
    EDIT: Ok, basic functionality is ok, I can rotate the image using AffineTransform class, and I can save it to the database and being displayed into a JLabel, now, there's a problem, the image for this example is 200 width and 184 height, but when I rotate it the width can be 184 and the height 200 depending on the position, but the BufferedImage that I create always read from original saved image:
    bimage = new BufferedImage(buffImage.getWidth(), buffImage.getHeight(), BufferedImage.TYPE_INT_ARGB);
    Is there a way that I can tell BufferedImage new width and height after rotate it? :( as far as I understand this cannot be done because before the image bein rotated the bufferedImage is already created and, even being able to do it how can I get width and height from rotated image? thanks!
    Edited by: saman0suke on 25-dic-2011 19:40

  • Highly Appreciated : Image into SIM ( Java Card )

    Hi Everybody ,
    We would appreciate if anybody could tell us how to insert an image ( ICON ) into SIM. Otherwise reply to the following set of questions.
    1) Inserting an image into SIM is possible ?
    2) If yes , What is the work around for this ?
    thanks in advance ,

    There are a few steps you have to do....
    The icons are stored in files. There is an example in Gemplus Developer tool. Under the directory Graphics in the SIMs file system, there is a file EF_IMG. This file contains a reference to another file which holds the icon in hex format. There are tools on the web for converting bitmaps to hex format.
    If you want to add an icon to Display text you have to append a tlv.
    proHdlr.initDisplayText((byte)0x00, DCS_8_BIT_DATA, strings, offset
    length);
    // Append icon TLV
    proHdlr.appendTLV(TAG_ICON_IDENTIFIER, iconQualifier, iconId);
    proHdlr.send();
    The icon qualifer refers to whether the icon replaces the string or appears with the text.
    iconID refers to the record no. in EF_IMG.
    I hope this helps.

  • How can I load pattern matching images into memory?

    I discovered this problem by accident when our network went down. I could not run my VI because the .png file used for pattern matching was on a network drive. My concern it the amount of time that is required to read a network file. Is there a way to load the file into memory when the VI is opened?

    Brian,
    Thank you for contacting National Instruments. For most pattern matching programs, the pattern file should only be read from file once and is then copy to a buffer on the local machine. If you examine your code, or an example program for pattern matching, you should see at least two IMAQ Create VI called somewhere near the front of your code. This VI basically creates a memory location and most likely will be called once for your pattern image and once for the image you are searching.
    Unless you are specifically calling a File Dialog VI where you are given a dialog box to open a file or have hard coded the file path so that it is read each iteration of your code, then your pattern file should only need to be called at the beginning of your application, th
    us causing only one file read over the network for that image. Therefore your program most likely already loads the image in memory once it is read and should not be accessing the network constantly.
    Again, I would recommend taking a look at your code to make sure you are not causing a file access every time and then you should be ready to go. Just in case you do have the network go down, I would recommend keeping a copy of the image locally and, if you are feeling ambitious, you can programmatically have your program read the file locally if the network file returns an error.
    Good luck with your application and let us know if we can be of any further assistance.
    Regards,
    Michael
    Applications Engineer
    National Instruments

  • How to save image into blob:java.sql.SQLException: ORA-01465:nvalid hex

    hi all,
    I am trying to save an image (blob) into oracle. When i try this i am getting following error.
                      java.sql.SQLException: ORA-01465: invalid hex number
                             BLOB blob = BLOB.createTemporary(con , false, BLOB.DURATION_SESSION);
                       String dir = "C:\\opt\\temp";
                       File binaryFile = new File(dir+"/"+filename);
                                FileInputStream instream = new FileInputStream(binaryFile);
                          OutputStream outstream = blob.setBinaryStream(1L);
                          int size = blob.getBufferSize();
                          byte[] buffer = new byte[size];
                          int length = -1;
                          while ((length = instream.read(buffer)) != -1)
                            outstream.write(buffer, 0, length);
                          instream.close();
                          outstream.close();
                                  System.out.println("blob:>>>>>>"+blob);
                    String sqlText =
                              "INSERT INTO test_fileupload (filename, blobfile) " +
                              "   VALUES('" + filename + "','" + outstream  + "')";
                          st.executeUpdate(sqlText);
                          con.commit();In the above Insert statement i tried with "blob" insted of "outstream" still same but when i try with the string "3s34se"
    it is inserting into database..
    I am new to blob can any one explain me why is like that.
    Thanq in adv.
    Edited by: Ajayuppalapati on Nov 21, 2008 4:40 PM

    ORA-01465: invalid hex number
    [http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=3&t=012434]
    [http://forums.sun.com/thread.jspa?threadID=261091&forumID=31]

  • Why can't I import non photographic jpg images into iPhoto?

    I'd really love to use this feature as I have some vector based jpgs I'd loive to sue in a calendar! They are now jogs but when I try to import them it says
    " the file could not be imported" import failed

    What color profile are these pics? This kind of issue is often caused by importing CYMK or Greyscale pics to iPhoto which only supports RGB.
    Try open the pic in Preview, then use the Tools -> Inspector to check the color profile.
    Regards
    TD

  • Load a System Image into Virtual PC

    Hello,
    I have images of all the different model computers that we use.  Is it possible to launch the .VHD files that are created by the System Image in Windows Virtual PC?

    Hi,
    Please refer to this link
    Run a VHD file in Virtual PC
    http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/run-a-vhd-file-in-virtual-pc/592a4311-221a-4624-a104-c2a013934990
    And Windows 7 itself has the feature to creating, mounting and booting from VHD images
    you can refer to this link
    http://blogs.msdn.com/b/knom/archive/2009/04/07/windows-7-vhd-boot-setup-guideline.aspx 
    Yolanda Zhu
    TechNet Community Support

  • Loading images into memory

    I have an applet that I need to load images into memory. For instance, lets say I am in the first section of the applet. While that section is being showed, I want to load the background image of the second section into memory.
    To load the initial image into momory, I am just using a Mediatracker. No problem there. But I don't want to load all 20 backgrounds into memory at the same time as they take a lot of time. My understanding is that if I create a new MediaTracker while the first chapter is running, it will potentially cause some chaos, as that will stop my thread from running while I have an image loading.
    Somebody told me perhaps I could create a new thread and have that thread load the backgroudn into momory? Perhaps something like this?
    public class TestClass extends JApplet {
         private TestClass thisClass;
         public void init() {
              thisClass = this;
              Runnable r = new Runnable() {
                   public void run() {
                        MediaTracker tracker = new MediaTracker(thisClass);
                        Image nextImage = getImage( getDocumentBase(), getImagePath() +"img1.jpg");
                        tracker.addImage(nextImage,0);
                        try {
                             tracker.waitForID(0);
                        } catch (InterruptedException ie) {
                             System.out.println(ie.toString());
              Thread t = new Thread(r);
              t.setDaemon(false);
              t.start();
              while(t.isAlive()) {
                   int i = 1;     
              t.stop();
              t.destroy();
    }No idea if I am on the right track or not? Another friend told me something about swing helpers but couldn't tell me much more?
    Thanks in advance!

    I use media tracker when I need information about how percent the image is loaded. you can use JLabel to load the images since it has own image observer in it.
    hope you just want to deal with it. easiest way I can offer :)

  • Unable to load TIF images into Photoshop.

    CS4 (11.0.2) and Windows 7 Home Edition.
    Have developed a problem trying to load some TIF images into Photoshop. I have a large number of images archived over a decade or more. At this point it may some of the older files that exhibit the problem. Now all these files were edited and stored using the Photoshop versions during the complete time period. The files are always saved with no compression. Have tried to load from Photoshop and clicking on the file in a file list. Photoshop just hangs and I get the message Program not responding. I can take these same files and load them into the ROXIO photo editor with no problem. Stranger yet is if I simply load the file into the ROXIO editor then "save as" back into the same folder (overwrite) the file can then be brought into Photoshop with no problem! Any ideas?

    Noel,
    Will try to keep short.
    I reinstalled Photoshop CS4 from the cd CS set. Did not uninstall first. Restarted PC and Photoshop. Still failed the same way with a 3001 image.
    Did the following, changing one item in the Edit->Preference->GPU Setting. After each change, closed Photoshop, reopened, brought in 3001 image, restored original setting. 3001 failed each time.
    * Unchecked Enable OpenGL Drawing
    * Advanced setup: Unchecked Advanced Drawing.
    * Advanced setup: Unchecked Color Matching
    Next went to the Edit->Color Profile.
    Scanned thru options and saw in the Convert Options: Engine. It was set to Adobe (ACE). ACE was the module name in the error detail!
    Only other option for this is Microsoft ICM. Changed to that, close/open Photoshop and 3001 came in no problem. So did the Nikon 3000, srgb IEC 61922 2.1 and Untagged. However, when briging in an Adobe RGB(1998) image Photoshop notes Profile Mismatch. It allows me to decide what to do (use embedded profile instead of workspace; convert color to work space color; discard embedded profile. and I choose use the convert color and it loads ok. At least it loads the image! Will use this approach for now. I need to get educated on color profiles!!
    Joe

  • Unable to load external image into iOS app with AS3

    Just trying out Flash Builder for iOS app development and have run into a problem right off the bat with loading an external image into an iOS app.  The actionscript is very simple (this was basically my Hello World attempt), and I'm hoping someone here can explain where I'm going wrong.  This code works in Flash Pro, and works when launched on the desktop from Flash Builder, but doesn't work on my iOS devices.
    Here's the code:
                                  var container:MovieClip = new MovieClip();
                                  addChild(container);
                                  var imageLoader:Loader = new Loader();
           imageLoader.load(new URLRequest("http://www.google.ca/intl/en_ALL/images/logos/images_logo_lg.gif"));
                                  imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, startListener);
      function startListener (e:Event):void{
                                                 container.addChild(imageLoader);
    Any thoughts on why this won't work would be greatly appreciated!

    I had the same issue, and modified my domain policy file as specified  in http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html#_Configuring_URL_M eta-Policies but the loader is not loading the file. Any ideas on how to fix this issue?

Maybe you are looking for

  • CUSTOMER AUTO CLEARING F.13

    Hi Friends, Presently I am facing one problem “Customer auto clearing” F.13 My client scenario is first they post the Credit memo because they might be having sale returns on earlier sales In the invoice they mapped that credit memo no. in Reference

  • I'm trying to install Time Machine and Airport Update V 1.0 but installer

    keeps returning error message: You cannot install Time Machine and AirPort Updates on this volume. This update requires Mac OS X 10.5.2 or newer. I am in fact running 10.5.6. Would the fact that this update was dated in March of 2008 have anything to

  • Line Graph - can I have more than two levels?

    Post Author: Deepa CA Forum: Charts and Graphs I am working on a line Graph for a client where the client needs the x-axis to show year, then month by Office for expenses. Crystal Reports XI. I can have two levels when I do change of by Transaction m

  • I forgot my lockscreen password how can i recover it?

    i forgot my lockscreen password for my iphone 4s, What do i do to recover it and access my phone again?

  • Text not centred in dreamweaver 8 tables when I test it in I.E

    I know I am a noob. When I centre my text in a row of a table and test my page in I.E. it comes out to the left, like its been aligned like that. I aligned it to the middle. How do I fix this?