Issues loading png images in flex 4.

For some reason in my application when I use specific PNG images they will not load.  They do not have a high dpi, nor are they very large.  For example : will not load in an mx:Image component, but will.  Does anyone have any idea what the difference between the two would be?
the mxml I'm using is something like <mx:Image source ="IMG/imagename.png"/> where IMG is a folder in the main directory.  Both images are only stored in those locations yet one will load and the other will not.    
This is incredibly perplexing to me, and I'd appreciate any assistance.

I would first try, in your IMG folder, renaming badfile.png to xbadfile.png and then duplicating goodfile.png to badfile.png, without changing any of your code.  Then run it and verify that you do see the png.  I.e. make sure that the problem really is with the png and not with your code somehow.

Similar Messages

  • Can't load PNG images in CS3

    I'm unable to load PNG images using Photoshop CS3. Whenever I attempt to do so, I get a message saying, "Could not complete your request because it is not the right kind of document."
    Help on this matter would be much appreciated as I am fairly new to using Photoshop.

    I am thinking it is a png file from fireworks.

  • Load png image and save it

    I am loading a png file and saving it again with following code. The newly created image file is smaller size and poorer quality. How can I retain size and quality of the image?
    ===========================================
    File input = new File(imgFilePath+"img1.png");
    BufferedImage im = ImageIO.read(input);
    Graphics2D g = im.createGraphics();
    File output = new File(imgFilePath+"out2.png");
    ImageIO.write(im,"png",output);
    ===========================================

    Would a moderator please change this topic back to not solved.
    @Noel: I tried exactly what you said, copying the image to itself so the source and target would be the same size.  It does not work.  I do understand that you respond to many posts and can't actually try to reproduce every issue.   However, in this case, if you did try it on the posted image you would see that the problem is as I described it.
    @Acidiclnk: Thank you for reproducing the problem. Unfortunately, I checked your response as the correct answer, but now realize that it does not solve the problem. What you suggest shifts the position of the image from its as loaded position.  Then, as you said, copied images do register with the original.  The problem is, the shifted image no longer lines up with the other maps of my texture.
    It took me awhile to find the commands you described, as they are a bit different in my CS4 ("Align Layers to Selection > Vertical Centers", etc).  When I tried them, the pasted image was correctly registered with the original.  Unfortunately, as I mentioned, the image is no longer aligned with the other maps of the texture.
    For this particular case, since there were large, uniform areas in the image, I temporarily added fiducial marks to the problem image and one of the other maps.  Then, after copy/paste, I moved the shifted copy until it's fiducial was aligned with the other map, then removed the fiducals.  (I could not use MTSTUNER's Duplicate Layer suggestion, since duplicating it to a new image created a new image with the same problem as the original).
    To summarize: PhotoShop loads this image in one position, but aligning the centers or copy/paste moves it to another position.  I would be happy to know why this is so.  I did verfy that it's unique to PhotoShop as copy/paste works without the shift in another graphic editor.  Any insights would be welcome.

  • Loading PNG image file from Applet?

    Hi All,
    My applet running on IE6 and it will often loads 100 PNG image files from a webserver.
    Size of PNG file is about 60Kb so 100*60=6000 Kb ~ 6M.
    In theory, the applet will took 6M of memory to store all 100 files. In practical, it tooks about
    6M* 25 = 150M of memory, that make my applet run in out of memory sometimes.
    I know the reason, may be the brower/applet convert the PNG file format to BMP file format before showing on the screen.
    So the main point here is the applet should not loads all 100 files into the memory,
    it should loads only 10 files at the same time, another 90 files should be cached in memory as PNG file format, not BMP image file format to save the memory usage.
    Is this solution possible in applet field?
    If it is possible how can I implement it?
    And please show me better solution if anys.
    Many Thanks.

    I know the reason, may be the brower/applet convert the PNG file format to
    BMP file format before showing on the screen.This sounds VERY unlikely! Why should the browser do that? And the applet does what you have coded I hope!
    Your problem is probably somewhere else. And it has nothing to do with applets I presume. Use a heap analyzer tool to find out what hogs the memory. A thorough code review can't hurt either. If you still thinks it is the images though, then just don't load them all at once then.

  • Load PNG Images and draw on them.

    I have to load a png image in a JPanel and then draw on this image. How is the way to do it? I've tried several ways but I don't achieve nothing.

    Hi,
    Re:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>
    ...I guess the conclusion is even though you can use PL/SQL to get the
    PNG images into the database - like we've done here. There is no real
    point, because one cannot retieve them with standard Java Intermedia
    calls.
    <HR></BLOCKQUOTE>
    On the contrary - I just grabbed a PNG image from our 9i test system, uploaded it using the photo album servlet demo to my 8.1.7 database (which doesn't 'do' PNG) and retrieved it using the same servlet. My Netscape came with the QuickTime Plugin, so the PNG image got displayed as would any other image.
    OK, I admit I had to admit modify the demo a little, but it is just a sample after all, not a full-blown, production web application. For upload, all I had to do was trap the exception raised when it tries to create the thumb-nail. There were 2 changes for retrieval. For the thumb-nail page, if there isn't a thumb-nail, ie getContentLength() == 0, then it displays the text "[view image]" instead of the thumb0nail image. For the full-size page, it only generates the height and width tags if getHeight() and getWidth() both return non-0 values. I didn't have to modify the method that actually delivers the data at all. It just uses the BLOB, MIME type and content length (which you sent when you loaded the image, right?!). The height and width tags aren't required. They just speed things up if present, because the browser knows ahead of time how much space to reserve, so can keep rendering the page, rather than wait for the image to arrive.
    Re:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>
    Can't begin to explain how sad this makes me :(
    <HR></BLOCKQUOTE>
    Cheer up! :-)
    Simon
    null

  • PNG images not displaying in Safari iPad

    Hi all,
    We have developed a webpage that loads PNG images in a div that can expand / reduce.
    The issue i cant seem to solve is why the PNG images do not load on Safari iPad. They just display as blue question marks. However not an issue with PC browsers.
    The link is here: http://bit.ly/yBDKl9
    Any ideas or suggestions will be welcomed.
    King regards,
    Matt

    Thanks for this.  Looks like I'm going to have to reduce the size of my image since I've noticed the same problem on an iPhone 3GS.  My original is big but only 2 colour. I don't like ragged edges so best make it 16 shades of grey first so the edges on the smaller image are a bit softer (PaintShop Pro can cope with this). I am certainly not going to degrade it with JPEG zits!
    This problem only appears with reduced images (eg. using the HTML style="width:50%;") - if I view source and click on the image link, the full sized image appears, but is far too big for the screen.
    Symptomatic of a not-very-good operating system/browser since even M$ got that bit right! BTW - llawjm's website still has the problem he described on my iPhone, but looks fine on a Tesco Hudl (Android) and Firefox on a PC.

  • .png images in Adobe Connect

    Has anyone else encountered issues with .png images within a PowerPoint converting incorrectly in Adobe Connect?  They appear distorted.

    Besides using PPT files, if it helps to convert PNGs to JPGs in bulk, you may want to try http://sourceforge.net/projects/bulkimageconver/ or http://www.ofzenandcomputing.com/zanswers/1016/.

  • CS3 and png image loading issue

    we have a flash appln created in flash cs3 , here we are
    loading some png images dynamically,
    we have tested in windows and mac environment , it is working
    images are loading fine.
    when we are testing in clinets machine png images alone not
    loading ... they are testing in IE6 anf FireFox2
    please help me in this...
    thanks in advance....

    aruntychons, currently I am trying to find out what the
    PROBLEM is. I cannot blindly give solutions to unknown problems. I
    gave you a good starting point for debugging in my first response.
    I NEED relevent code samples to understand how you are doing
    things, to know if I can even solve your problem, to know what the
    problem is. Posting code samples is a standard part of the forum
    process.
    That said, I took the liberty of downloading and decompiling
    your SWF. I found the following URL - set as the variable "gateway"
    in your FrameSelect class:
    http://www.artomeframer.com/swx.php
    When I paste this url into the browser, I get the following
    error:
    Fatal error: Uncaught exception 'VerboseException' with
    message 'The 'serviceClass' argument is missing (no class name was
    supplied)' in
    /mnt/target03/361136/367620/www.artomeframer.com/web/content/vendors/cakeswx/php/core/swx /app/CakeGateway.php:70
    Stack trace: #0
    /mnt/target03/361136/367620/www.artomeframer.com/web/content/vendors/cakeswx/php/core/swx /app/CakeGateway.php(70):
    amfErrorHandler(256, 'The 'serviceCla...', '/mnt/target03/3...',
    70, Array) #1
    /mnt/target03/361136/367620/www.artomeframer.com/web/content/vendors/swx/php/core/shared/ app/BasicGateway.php(54):
    CakeGateway->createBody('The 'serviceCla...', 256) #2
    /mnt/target03/361136/367620/www.artomeframer.com/web/content/app/webroot/swx.php(18):
    BasicGateway->service() #3 {main} thrown in
    /mnt/target03/361136/367620/www.artomeframer.com/web/content/vendors/cakeswx/php/core/swx /app/CakeGateway.php
    on line 70
    On a quick look, perhaps this error is related to the
    problem. The problem could be permissions on the server side,
    whereas your computer has permission, but other computers do not.
    Regardless, maybe this will give you a starting point to figure out
    where the problem is occuring.

  • How to load a tif image in flex

    Hi All,
    Is it possible to load a tif image in flex. If it's possible
    anyone guide me or send me some code snippets regarding how to
    display a tif image in flex.
    Regards,
    Dharma

    "flexdharma" <[email protected]> wrote in
    message
    news:ga2d96$p8h$[email protected]..
    >
    Hi All,
    > Is it possible to load a tif image in flex. If it's
    possible anyone guide
    > me or send me some code snippets regarding how to
    display a tif image in
    > flex.
    Convert it to the much more web-friendly png format.

  • Movieclips loader loads png but does not display image in ie

    hello, i have created a static class to deal with the loading
    of images, it works great. yesterday, i found an issue: i try to
    load png files (those pngs are generated with quasimondo's bitmap
    exporter), they do load, but they are not displayed in ie.
    it worked until recently. is there some specification about
    the png that i have to make sure that the png has? or is there an
    issue using the movieclip loader with ie?
    i included the actionscript class (save the code in an .as
    file), so if you want to test, write only this in the first frame
    of your code:
    import com.iCongo.utils.MovieClips;
    this.createEmptyMovieClip ("placeholder",
    this.getNextHighestDepth ());
    MovieClips.loadIMG (this.placeholder, "
    http://somedomain.com/somepng.png");
    that image will load, but in the context of my flash file
    where many many files are loaded at the same time, only the block
    generated by the bitmap exporter will not show.

    OOPS
    cancel that question. i ftp'd the file to the server again, this time setting the transfer type to binary and the png image comes up
    just like it should.
    john

  • Open PS (CS-CS4) and load image from flex/air application?

    Hello,
    (Not sure wether to post this in the AIR forum or the FLEX forum?)
    I am at a loss on how to get my simple application to work. I have a small desktop air application that simply opens Photoshop and runs an action. I used switchboard and the application ran great on PC and MAC. However it only worked for CS3, and CS4 not CS or CS2?. Plus the size of switchboard was a bit large for my small app. I am willing to live with that though . I am using Air with Flex and wanted to know if perhaps there is a beter approach? All the application does is open photoshop, loads an image, and runs an action. Can I do this for all versions of Photoshop using switchboard? Can I do this without switchboard and just use javascript. The big issue is the Air app needs to open Photoshop, and most of the examples have me open PS first and then execute a script located in the PS directory. This needs to work outside of the PS directory. Any examples are appreciated.
    I have looked at the following:
    - SwitchBoard : only works for CS3-CS4 (on my tests)
    - PatchPanel: same issue, plus seperate SDKs
    - ExtendScript: requires script to be run from PS not Air

    Of course you may have some unstated reason for doing this in Air, but if not...
    Google photoshop droplet....
    Bob

  • How to load a PNG image from a location in CF card

    Hi,
    I am using WTK 2.5.2. I wanted to load a PNG image to Image object. The image is loaded when I have it in the classes folder. But I want to select different image from a different location. If I try to open an Image to createImage(String) from a different location, I get IOException.
    Please help me.
    Thanks
    Deekshit M

    I got the answer, I should be using Image.createImage(InputStream) API. It works fine.
    Thanks
    DM

  • How to load external png image via xml?

    Can anyone help me with adding a png image to a mc with an instance name.
    I only want to display a single image (no gallery)
    I would like to get the url for the image via an xml.
    Here is a copy of my current action script which has already pulled in the xml data which includes the node with the url for the photo.
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    var myXML:XML;
    var myLoader:URLLoader = new URLLoader();
    myLoader.load(new URLRequest("links.xml"));
    myLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(e:Event):void
        myXML = new XML(e.target.data);
        trace(myXML);
        menumv.carbtn.addEventListener(MouseEvent.CLICK, openCURL);
        menumv.edubtn.addEventListener(MouseEvent.CLICK, openEURL);
        menumv.psybtn.addEventListener(MouseEvent.CLICK, openPURL);
        menumv.stubtn.addEventListener(MouseEvent.CLICK, openSTURL);
        menumv.busbtn.addEventListener(MouseEvent.CLICK, openBURL);
        menumv.shabtn.addEventListener(MouseEvent.CLICK, openSURL);
        studentmv.stuname.text = myXML.student.name;
    function openCURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.car.url));
    function openEURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.edu.url));
    function openPURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.psy.url));
    function openSTURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.stu.url));
    function openBURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.bus.url));
    function openSURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.sha.url));
    And here is a copy of the node containing the url
    <menu>
        <student>
        <name>testnamehere</name>
        <photo>http://10.0.0.2/test/photos/testnamephoto.jpg</photo>
        </student>
    </menu>
    I did see this tutorial but it was for a gallery and I couldnt seem to hack and slash it to do what I want.
    http://tuts.flashmint.com/creating-a-simple-xml-gallery-in-actionscript3/
    Thanks again in advance for all the help.

    I have added that code but I think i have buggered up something else in the process.
    I get the following error
    ReferenceError: Error #1069: Property data not found on flash.display.LoaderInfo and there is no default value.
        at sdp_fla::MainTimeline/load_complete()
    Current AS
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    var myXML:XML;
    var myLoader:URLLoader = new URLLoader();
    myLoader.load(new URLRequest("links.xml"));
    myLoader.addEventListener(Event.COMPLETE, processXML);
    function processXML(e:Event):void
        myXML = new XML(e.target.data);
        trace(myXML);
        menumv.carbtn.addEventListener(MouseEvent.CLICK, openCURL);
        menumv.edubtn.addEventListener(MouseEvent.CLICK, openEURL);
        menumv.psybtn.addEventListener(MouseEvent.CLICK, openPURL);
        menumv.stubtn.addEventListener(MouseEvent.CLICK, openSTURL);
        menumv.busbtn.addEventListener(MouseEvent.CLICK, openBURL);
        menumv.shabtn.addEventListener(MouseEvent.CLICK, openSURL);
        studentmv.stuname.text = myXML.student.name;
    var _request:URLRequest = new URLRequest(myXML.student.photo);
    var _ldr = new Loader();
    studentmv.photo.addChild(_ldr);
    _ldr.load(_request);
    _ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, load_complete, false, 0, true);
    function openCURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.car.url));
    function openEURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.edu.url));
    function openPURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.psy.url));
    function openSTURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.stu.url));
    function openBURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.bus.url));
    function openSURL(e:MouseEvent):void
            navigateToURL(new URLRequest(myXML.sha.url));
    function load_complete(event):void
    var bitmap:Bitmap = Bitmap(event.currentTarget.data);
    bitmap.smoothing = true;
    bitmap.width = studentmv.photo.width
    bitmap.width = studentmv.photo.height
    studentmv.photo.addChild(bitmap)

  • I have a problem with loading the PNG image

    I have a problem with loading the PNG image from site. For ex. go to icefilms com and is starts to load png like crazy CPU is huge and you can not shut down Firefox at least a minute. This is not just in this site but whit any one whit lots of pictures.
    Image from firefox: Picture [http://img836.imageshack.us/img836/9910/7312011103147pm.jpg 1] [http://img28.imageshack.us/img28/8505/7312011103249pm.jpg 2] [http://img706.imageshack.us/img706/5615/7312011103348pm.jpg 3 ][http://img827.imageshack.us/img827/8483/7312011103533pm.jpg 4]
    This is my Task Manager [http://img217.imageshack.us/img217/5715/7312011103621pm.jpg 1]
    - I try safe mode, same thing
    -All addons and plugins are ok
    Any idea why is this so big problem.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • Load picture control with png image from the web

    Hi guys,
    Is there an example anywhere for Labview 8.6 for loading a picture control with png image from the web?

    Hi lavalava,
    here you find a note on how to load pictures from the internet. After grabbing the data you could save them to a file, load the file with the picture file functions and then convert it into the image datatype to feed a picture indicator with the data...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for

  • How to backup to two different external harddrives

    Hi folks, i want to backup my Leopard Server with Time Machine to two different external FireWire HDs. Is this possible without having to switch the Volumes manually?

  • Video Input Help

    I have a WinTV USB 2 Hardware Encoding PVR from Hauppauge, and am trying to find the drivers or application to get it hooked up to my MacBook Pro (Just using OS X). I read something about the SageTV Beta working with it but I can't find it anywhere.

  • How to run reports thru menu in 10g

    Hi, I'm a junior oracle programmer and have already migrated forms 6i to 10g. Now I have to migrate the reports to 10g. I have read many documentations about running report from forms or menu, but the more I read, the more confused I get. Please note

  • Oracle Database installation on mac os 10.5

    Hi., I have installed oracle database 10.2 on mac os 10.5. It is installed successfuly but when i typed sqlplus in terminal to login into oracle. it show dyld library loaded, , reason : image not found but I have already set librabry path as . export

  • Downloaded trial acrobat x.....

    Now my microsoft word program will not respond...any suggestions?