Problem loading Image through XML!

Hi,
  I am Akshay and am beginner in this forum. I am trying to load images using flickr API and having problem.
I am doing it in following fashion:
1) I am calling the Httpservice to get the xml through flickr API as
<s:HTTPService id="photoService" url="http://api.flickr.com/services/feeds/....FullAPI" resultFormat="e4x" result="photoResultHandler(event);" fault="photoFaultHandler(event);"/>
2) In photoResultHandler I am retrieving the XML
private function photoResultHandler(re:ResultEvent):void
photoXml= re.result as XML;
However, I am struggeling to retireve elements from photoXML and then use it to display image in :
<mx:Image  id="img0" x="151" y="98" width="520" height="291"/>
The XML structure is as below:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed">
<entry>
     <author>  </author>
     <link rel="enclosure" type="image/jpeg" href="http://farm5.static.flickr.com/4484460580_04bbced2d8_o.jpg"/>
</entry>
<entry>
</entry>
I need to load the href value of link  which can be found in feed-->entry-->link in the above xml.
Please help!
-Akshay

Hello Dave,
   Thanks for your prompt reply. Here's the mxml code :
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   xmlns:s="library://ns.adobe.com/flex/spark"
   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" creationComplete="photoService.send()"  minHeight="600">
<fx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.events.MoveEvent;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
[Bindable]
public var photoXml:XML;
private function photoResultHandler(re:ResultEvent):void
photoXml= re.result as XML;
//var src :int =  "{photoXml.feed.entry.updated}" as int;
img0.source= String(photoXml.entry[0].link[1].@href);
private function photoFaultHandler(fe:FaultEvent):void
Alert.show(fe.fault.message);
]]>
  </fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:HTTPService id="photoService" url="http://api.flickr.com/services/feeds/photos_public.gne?id=48951865@N07" resultFormat="e4x" result="photoResultHandler(event);" fault="photoFaultHandler(event);"/>
</fx:Declarations>
<mx:Image  id="img0" x="151" y="98" width="520" height="291"/>
</s:Application>
Hope it helps you in finding out the problem...DO let me know your thouhgts
Thanks again for your replies so far......
-Akshay

Similar Messages

  • Problems loading images dynamically with XML

    Hi Everyone,
    I am working with a project that was build by another
    developer and I have been asked to modify it several ways. This is
    an interactive map for a hotel brand where when you click on the
    USA, you get a list of all the states, click a state and a list of
    all the hotels in that state comes up, click a hotel, the hotel's
    information is displayed. I understand the structure of the files,
    how they make them work, though I couldn't build it myself.
    The problem I am having is this. can't make the hotels'
    photos load into the flash through the XML. I created a target
    movie file that the image could load into but something is not
    happening as far as loading the images. I don't know if the movie
    clip that I created is the right way to go (it was made as an
    object in the library that is exported via AS), or if I should
    create one in the action script file that loads the XML data.
    I looked at some tutorials about how to load images with XML
    but those didn't get into the level of detail that I need for this
    project.
    I've attached some partial code to see if anyone can help me
    work through this.
    Any and all suggestions are welcome.
    Thanks for the help in advance.
    Jeremiah

    I'm a noob at AS3 and trying to learn this XML stuff myself,
    but i have been able to load pictures to the stage...this might
    help you...my xml file photo section is similar to yours, only I
    have it labeled as "href" instead of "source"...
    var imageLoader:Loader;
    var xml:XML;
    var xmlList:XMLList;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("xmldata/images.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
    function xmlLoaded(event:Event) :void {
    xml = XML(event.target.data);
    xmlList = xml.children();
    for (var i:int = 0; i<xmlList.length(); i++) {
    imageLoader = new Loader();
    imageLoader.load(new URLRequest(xmlList
    .attribute("href")));
    imageLoader.x = 0;
    imageLoader.y = 0;
    addChild(imageLoader);

  • How do i load an image through XML?

    Hi.
    My code is below. What I am trying is to dinamically load images from xml. I attach the holder from the library, and when i try to target it and addChild to him i get an error:
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.load(new URLRequest("links.xml"));
    var xmlLength:int;
    var iconPos:Number = 0;
    function LoadXML(e:Event):void {
    xmlData = new XML(e.target.data);
    var xmlLength = xmlData.link.length();
    for (var i=0; i<xmlLength; i++) {
    var d:MovieClip = new icon();
    content_mc.addChild(d);
    d.name = "d"+i;
    var target:DisplayObject = content_mc.getChildByName("d"+i);
    var ldr:Loader = new Loader();
    ldr.load(new URLRequest(xmlData.link[i].icon));
    target.addChild(ldr);
    How can i make this happen and load the image into it's holder?
    Thank you.

    Code from adobe's sample packages cut&&paste&&edit:
    AS4 code:
    import flash.events.IOErrorEvent;
    var fotoElenco:Array;
    var fotoXML:XML;
    var fotoURLRequest:URLRequest=new URLRequest();
    var fotoURLLoader:URLLoader=new URLLoader();
    var fotoLoader:Loader=new Loader();
    var fotoPosition:Number=0;
    var errorMessage:TextField=new TextField();
    caricaFoto();
    function caricaFoto():void
        addChild(errorMessage);
        fotoURLRequest.url="gallery.xml";
        fotoURLLoader.load(fotoURLRequest);
        fotoURLLoader.addEventListener(Event.COMPLETE, showFoto);
        fotoURLLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorEventXML);
    function ioErrorEventXML(event:IOErrorEvent):void
        manageErrorMessage(true, 0);
    function manageErrorMessage(val:Boolean, num:Number):void
        if(val && num==0){
            errorMessage.x=stage.stageWidth/2;
            errorMessage.y=stage.stageHeight/2;
            errorMessage.text="Errore caricamento file XML";
        if(val && num==1){
            errorMessage.x=stage.stageWidth/2;
            errorMessage.y=stage.stageHeight/2;
            errorMessage.text="Errore caricamento file IMMAGINE";
    function showFoto(event:Event):void
        fwd_mc.buttonMode=true;
        back_mc.buttonMode=true;
        back_mc.addEventListener(MouseEvent.CLICK, manageFoto);
        fwd_mc.addEventListener(MouseEvent.CLICK, manageFoto);
        fotoElenco=new Array();
        fotoXML=XML(fotoURLLoader.data);
        for each(var prop:XML in fotoXML.foto)
            fotoElenco.push({url:prop.@url, didascalia:prop.@didascalia});
        viewFoto(fotoPosition);
        gallery_mc.addChild(fotoLoader);
        manageButton();
    function manageButton():void
        if(fotoPosition<1){
            back_mc.visible=false;
        }else{
            back_mc.visible=true;
        if(fotoPosition>=fotoElenco.length-1){
            fwd_mc.visible=false;
        }else{
            fwd_mc.visible=true;
    function manageFoto(event:MouseEvent):void
        switch(event.currentTarget)
            case fwd_mc:
                if(fotoPosition<fotoElenco.length-1)
                    fotoPosition++;
            break;
            case back_mc:
                if(fotoPosition>0)
                    fotoPosition--;
            break;
        viewFoto(fotoPosition);
    function viewFoto(num:Number):void
        fotoLoader.load(new URLRequest(fotoElenco[num].url));
        fotoLoader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorEventIMG);
        didascalia_txt.text=fotoElenco[num].didascalia;
        manageButton();
    function ioErrorEventIMG(event:IOErrorEvent):void
        manageErrorMessage(true, 1);
    XML code:
    <?xml version="1.0" encoding="UTF-8"?>
    <gallery>
        <foto url="img/immagine1.jpg" didascalia="Didascalia 1 foto"/>
        <foto url="img/immagine2.jpg" didascalia="Didascalia 2 foto"/>
        <foto url="img/immagine1.jpg" didascalia="Didascalia 1 foto"/>
        <foto url="img/immagine2.jpg" didascalia="Didascalia 2 foto"/>
    </gallery>

  • How to load images using xml in flash

    Hi
    im working on a quiz project where i plan to load images using xml in to flash, can any one help with the script with AS2 or 3

    You'll find a tutorial for what you are after here:
    http://www.gotoandlearn.com/play?id=22

  • IOException: Problem loading image

    Hi foreros
    What could be the reason behind an error like this IOException: Problem loading image except it cannot find the jar path for the images?
    Regards
    Tizha

    Without more information, I'd say there's not enough available RAM to load the image.

  • Send Image through xml file

    Hey guys,
    I want to send an JPEG image through xml file. i dont want to just give the URL of the image but i want to actually send the image through xml. Im new in XML so can you please give me a working sample code.
    Thank you so much.

    Working code will not be difficult to write. Jpeg or other binary info can be encoded in xml using base64 encoding or some other encoding algorithm.
    After base64 encoding you will get some text which will be the base64 equivalent of the image data. This text can be placed in CDATA section of your image element and transferred.
    On the receiving end you will need to decode the text. After this what u have is the binary data for ur image.
    It will not be difficult to find libraries for base64 encodin/decoding on the net.
    Hope it helps

  • Problem loading images - please help

    Hi,
    I have a slight problem loading images. I'm using netbeans 5.0 and have a few packages setup in a project called Maths. In a package called LineConnection theres a class that needs to read an image and display it on screen. To load the image I use:
    URL url = getClass().getResource("fraction/pic1.png");
    Image img1 = Toolkit.getDefaultToolkit().getImage(url);This loads the image and I can display it on screen fine.
    The problem is that the folder fractions with the images in HAS to be located within the Maths/build/class/LineConnection folder otherwise it wont load the image and I get a null pointer exception.
    I want to be able to have the folder containing the images in folder Maths so that it's one folder above the src folder. But if I put it here (or anywhere else) the images can't be found and loaded.
    Could someone tell me why the images can only be found if they're within the build folder because it's causing me some problems when I try to create an executable JAR.
    Cheers

    I've used:
    URL url = ImageHandler.class.getResource("fractions/q0.png");               
    System.out.println("URL = " + url);to determine whether the file is found.
    If I put the file in the folder build/classes/LineConection/fractions/q0.png then it finds the image and prints the file path.
    But, if I put it in another folder such as the src folder it can't find the image and url = null;
    How can I make netbeans search in other folders for the resources so I can store them where I like?

  • Load images from XML to specific movieclip

    I'm still begginer. I have to load images in specific movieclip, because they're loading over all the other layers. What should I do?
    I made a simple slideshow by tutorial.
    I guess it would be better that I show all the code not specific parts:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    var my_speed:Number;
    var my_total:Number;
    var my_images:XMLList;
    var my_loaders_array:Array=[];
    var my_labels_array:Array=[];
    var my_success_counter:Number=0;
    var my_playback_counter:Number=0;
    var my_slideshow:Sprite = new Sprite();
    var my_image_slides:Sprite = new Sprite();
    var my_label_slides:Sprite = new Sprite();
    var my_preloader:TextField;
    var my_timer:Timer;
    var my_prev_tween:Tween;
    var my_tweens_array:Array=[];
    var my_xml_loader:URLLoader = new URLLoader();
    my_xml_loader.load(new URLRequest("sshow.xml"));
    my_xml_loader.addEventListener(Event.COMPLETE, processXML);
    function processXML(e:Event):void {
        var my_xml:XML=new XML(e.target.data);
        my_speed=my_xml.@SPEED;
        my_images=my_xml.IMAGE;
        my_total=my_images.length();
        loadImages();
        my_xml_loader.removeEventListener(Event.COMPLETE, processXML);
        my_xml_loader=null;
    function loadImages():void {
        for (var i:Number = 0; i < my_total; i++) {
            var my_url:String=my_images[i].@URL;
            var my_loader:Loader = new Loader();
            my_loader.load(new URLRequest(my_url));
            my_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
            my_loaders_array.push(my_loader);
        my_preloader = new TextField();
        my_preloader.text="Loading";
        my_preloader.autoSize=TextFieldAutoSize.CENTER;
        my_preloader.x = (stage.stageWidth - my_preloader.width)/2;
        my_preloader.y = (stage.stageHeight - my_preloader.height)/2;
        addChild(my_preloader);
    function onComplete(e:Event):void {
        my_success_counter++;
        if (my_success_counter==my_total) {
            startShow();
        var my_loaderInfo:LoaderInfo=LoaderInfo(e.target);
        my_loaderInfo.removeEventListener(Event.COMPLETE, onComplete);
    function startShow():void {
        removeChild(my_preloader);
        my_preloader=null;
        addChild(my_slideshow);
        my_slideshow.addChild(my_image_slides);
        nextImage();
        my_timer=new Timer(my_speed*1000);
        my_timer.addEventListener(TimerEvent.TIMER, timerListener);
        my_timer.start();
    function nextImage():void {
        var my_image:Loader=Loader(my_loaders_array[my_playback_counter]);
        my_image_slides.addChild(my_image);
        my_image.x = (stage.stageWidth - my_image.width)/2;
        my_image.y = (stage.stageHeight - my_image.height-20)/2;
        my_tweens_array[0]=new Tween(my_image,"alpha",Strong.easeOut,0,1,2,true);
    function timerListener(e:TimerEvent):void {
        hidePrev();
        my_playback_counter++;
        if (my_playback_counter==my_total) {
            my_playback_counter=0;
        nextImage();
    function hidePrev():void {
        var my_image:Loader=Loader(my_image_slides.getChildAt(0));
        my_prev_tween=new Tween(my_image,"alpha",Strong.easeOut,1,0,2,true);
        my_prev_tween.addEventListener(TweenEvent.MOTION_FINISH, onFadeOut);
    function onFadeOut(e:TweenEvent):void {
        my_image_slides.removeChildAt(0);

    I don't see a problem in the code you provided. All the pictures are put in single one MovieClip, my_image_slides. Of course, there can be only one DisplayObject in a DisplayObjectContainer's layer (depth), so when you call function addChild again and again, the child displayObjects keep stacking up one on the other. I found one strange thing though:
    my_tweens_array[0]=new Tween(my_image,"alpha",Strong.easeOut,0,1,2,true);
    Why would you create an array just to limit it to one item and overwrite it every time? I would use this instead:
    my_tweens_array.push(new Tween(my_image,"alpha",Strong.easeOut,0,1,2,true));
    Can you upload it somwhere so we can see it in action? At this point I can only guess what the problem is.

  • Problems loading images in JavaHelp

    Using Helpsetmaker to drop the helpset I have had problems with loading images.
    Helpsetmaker keeps any imported images in a pics/<folder>/<folder> heirachy, where the subfolder heirachy is based upon the 'root directory' used to import images.
    The html docs produced are used OK, but the images are not loaded correctly.
    HTML is fine, so the helpset files in general produced by the utility are OK.
    If I move the images to the root of the helpset i.e. the same
    location as the html, & edit the html <img> tags to reflect the new location they are loaded
    correctly so no problems with image files as such.
    AFAIK JavaHelp does not impose restrictions on locating files in subfolders, am I missing something?

    Having had a spare moment to look at the problem again this was a case of seeing what you want to see.
    HelpSetMaker was actually dropping tags src="pics\folder\folder/image.png"

  • How can I load images without XML, please?

    Hello Everyone,
    I would highly appreciate it if someone can point me into the right direction. I have some AS2 code which loads up the images via an xml file. I have been asked to eliminate XML entirely and have images be loaded from with in the library. Aside from images, there are other xml nodes such as:
    image_name, image_description and such.
    What would be the best way going about eliminating the XML and getting the code to load images and other related info from the library. I would highly appreciate your help on this, please.
    Thanks a lot.

    create arrays that contain the same info as the xml.
    p.s.  and, you'll use attachMovie() instead of loadMovie().

  • Problem loading images from a return value of a function

    hello, I write because I uin problem in loading images from a return value of a function.
    I created a database with a field "image" of type string, where I put the physical address of the image. I have written like this: {__DIR__ }foto.jpg
    Place the code, so you understand better
    function imageViewImage(): javafx.scene.image.Image {
    connetti();
    lass.forName(driverName);
    con = DriverManager.getConnection(url,user,"");
    stmt = con.createStatement();
    var richiesta:String = "SELECT image from viaggio WHERE id_viaggio=7";
    rs1 = stmt.executeQuery(richiesta);
    var result :String;
    rs1.next();
    risultato = rs1.getString("image");
    JOptionPane.showMessageDialog(null, result);
    var imagez = Image{
    url:"{result}";
    return imagez;
    The image is in the source code package
    First I connect to the database, run the query and I take the contents of the image.
    Can anyone help me?
    Is right to put in the database {__DIR__} foto.jpg or do I put only foto.jpg?

    Hello unkus_nob,
    I would rather suggest you to save only filename of that image like "foto.jpg" in database. And just concat it with the String variable containing "{__DIR__}".
    Actually the javafx compiler converts the {__DIR__} to the existing class directory path something like : "jar:file:/..../".
    var currentDir ="{__DIR__}";
    risultato = "{currentDir}{rs1.getString("immagine"})"; 
    var image = Image{
        url:risultato
    return image;--NARAYAN G.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem loading image from jar file referenced by jar file

    First, I searched this one and no, I didn't find an answer. Loading images from jar files has been pretty much done to death but my problem is different. Please read on.
    I have my application, a straight up executable running from Eclipse. It uses a jar file, call it JarA. JarA launches a GUI that is located in another jar file. Call it JarB. To recap:
    My application calls JarA -> JarA loads classes from JarB -> JarB looks for images to place in a GUI it wants to show on the screen
    When JarB goes to load an image the following happens:
    java.lang.NullPointerException
         at sun.misc.URLClassPath$3.run(URLClassPath.java:316)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
         at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
         at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
         at java.lang.ClassLoader.getResource(ClassLoader.java:977)
         at org.cubrc.gmshell.gui.MainWin.preInit(MainWin.java:152)
         at org.cubrc.gmshell.gui.MainWin.<init>(MainWin.java:135)
    The code from JarB that loads the image looks like this:
              URL[] oSearch = {Main.class.getResource("images/")};
              URLClassLoader oLoader = new URLClassLoader(oSearch);
              imgIcon = new ImageIcon(oLoader.getResource("icon.gif"));
              imgMatchRunning = new ImageIcon(oLoader.getResource("gears.gif"));
              imgMatchStill = new ImageIcon(oLoader.getResource("gears-still.gif"));
              imgMagnify = new ImageIcon(oLoader.getResource("magnify.gif"));This looks right to me and JarB certainly has an images directory with those files. But I'm in hell right now because I don't know where to place the images to make this work or if you can even attempt to load images with a dependency chain like this.
    Any help very appreciated!

    Have you tried to move your image-files out of the jar file and place them in the sam folder as the jar-file? I think that would help.
    When you try to load the image-file you get the NullPointerException because the program tries to read a file it can't find. Remember that a jar file IS a file and not a directory.
    If you want to read somthing inside the jar-file you need to encode it first.
    Have you tried to read the jar-file with winRar. It makes it easy to add and remove files in your jar-file.

  • Problems loading Images

    Hello !
    I'm trying to make a small card game.
    I have 52 small gif files(68x94 pix;500 byts each).
    When I'm loading those cards on a JPanel, it takes to much time (about 15 sec);
    I've enabled double-bufering (no changes);
    Without loading Images, all the stuff (JButtons,JTextFile, some String paintings, etc.) is coming up instantly.
    I'm using a P III 1,1 Ghz, 256 Mo RAM. with WinXP (could be, Bill Gates fault ? -:) )
    I've copyed here an extras of code:
    class pan extends JPanel{
         Color myC=new Color(0,170,85);     
         Toolkit tt=Toolkit.getDefaultToolkit();
         String st="";
         Random rnd=new Random();
         public pan(){setDoubleBuffered(true);}
         public void paintComponent(Graphics g){
         super.paintComponents(g);                    
         g.setColor(myC);
         g.fillRect(0,0,800,500);
         int x=220;int y=10;int m;
         for(int i=0;i<4;i++){
              int c=i;
              for(int j=0;j<13;j++){
              int v=j+2;
              switch(c){
              case 0:m=c+v-1;break;
              case 1:m=13+v-1;break;
              case 2:m=26+v-1;break;
              case 3:m=39+v-1;break;
              default: m=52;}
              g.setColor(Color.white);
              g.fillRoundRect(x,y,72,97,13,13);
              g.setColor(Color.black);
              g.drawRoundRect(x,y,72,97,13,13);
              st="Imagini/Cardsgif/"+"C"+m+".gif";
              g.drawImage(tt.getImage(st),x+2,y+2,this);          
              x=x+20;
              st="";
              if((j>0)&(j%12==0)){
                   y=y+100;
                   x=220;
              

    I just started noticing this problem too. On an order confirmation page on Amazon, many of the button graphics were question marks. But it's random. If I refresh the page, some of the images load but others don't load. All of the images load (so it's not an image format problem), but NEVER all at the same time!
    (On a side note, it's VERY bad that Safari displays the question mark graphic instead of the alternate image tag text. There was no way to know which question marks (which should be buttons to click on) are for submitting, cancelling, veiwing order details, editing shipping address, etc.)
    Even more frustrating is that a friend finally switched to Macs from years of being a PC user. Her brand new Intel iMac is exhibiting the same problem when she views her and her friend's MySpace pages. This was her very first day of Mac ownership, and there was nothing installed on her iMac except what it came with. Everything was still on the default settings. Same thing...refreshing the page would randomly load some images but not others.
    It's all a bit embarassing because the "it just works" arguement was one of the things that convinced her to switch to a Mac. I'd like to offer her a fix to overcome this poor first impression.
    PS: I'm on Tiger with the Tiger version of Safari. She's obviously on Leopard.
    Message was edited by: Bean
    Message was edited by: Bean

  • Problem loading image into texture memory

    Hi there, I am currently porting our new casual PC game over to the iPad using the pfi, the game was written in Flash so the porting process isn't that hard thankfully, it's mainly just optimizing the graphics.
    So far things are going smoothly, I was initially worried about graphical performance, but since we put everything into the GPU that's no longer a concern- it runs super smooth at 60fps at 1024x768, we can have a hundred large bitmaps rotating and alphaing at once with no slowdown.
    However there is one weird problem which is really worrying me at this point- it seems that the speed at which images are loaded into video memory as textures is vastly different depending on what else is being run on the iPad, for example:
    * If I run my game with nothing else in memory, it will run fine at 60fps, and load up large images into texture memory very fast.
    * If I run another App, in this case a Virtual piano app for a while, then close that App via the Home button (so the piano app is still in memory but suspended due to the multitasking), then when I run my game, it will run ok initially, but when I try to load a large (1024x512) image into texture memory it pauses the whole game for several seconds.
    * To make matters worse, if I repeat the same test using the RAGE app from ID software (which is very graphically intense), my game actually slows down to 1 fps and runs extremely slowly as soon as I run it and the frame rate never returns to normal. If I then double-click the home button, shut down RAGE, then go back to my game, it will run fine.
    I have read that sometimes when you load images into texture memory it will have to reclaim that memory from other apps, but that doesnt exaplain why it slows down every time I want to load something, or why the game would slow right down to a crawl.
    So then it seems that having other Apps in memory is slowing down my game, or stopping it from working altogether. Obviously this is not ideal and would stop us from releasing, so is there any way I can stop this, has anyone come across the problem? Please help!
    PS. this problem also happens on an iPhone 4, as I have performed the same tests.

    Hi _mz84
    First thing I noticed, is that you did not close your
    <embed> tag
    <embed src="gallery1.swf" bgcolor="#421628" width="385"
    height="611" wmode="transparent" />
    If that doesn't solve your troubles, try the following
    container.
    <object type="application/x-shockwave-flash" height="611"
    width="385" align="middle" data="gallery1.swf">
    <param name="allowScriptAccess" value="never" />
    <param name="allowNetworking" value="internal" />
    <param name="movie" value="gallery1.swf" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#421628" />
    </object>
    hope this helps out.

  • Problem loading image for TrayIcon

    This code works great if I'm in Netbeans running my project. No problems.
                //grabbing image for TrayIcon
                String curDir = System.getProperty("user.dir");
                Image image = Toolkit.getDefaultToolkit().getImage
                        (curDir + "\\src\\edunasdesktop\\earth_alert.png");The problem is when I run my jar file from the dist folder in my project folder. The TrayIcon loads just fine,
    just with no picture. Do I need to point to a different location or do I need to put the picture elsewhere; or both?
    Some pictures I used with the Netbeans GUI Builder on some JLabels are in the same src directory but I used the
    Builder to add those pics so I guess I'm a bit unsure on how to do this by hand, as the Builder handled this type situation
    in previous occassions.

    The [section on icons|http://java.sun.com/docs/books/tutorial/uiswing/components/icon.html#getResource] in the Swing tutorial has information about loading images. The general idea is you use
    URL toImage = SomeClass.class.getResource(...);Incendently, if done right then it will work in Netbeans or in a jar. The way you currently have it set the image would have to be in +/src/edunasdesktop/+ within the jar file for the Toolkit to find it.

Maybe you are looking for

  • SMS Notification Server error cannot install bgbisapi.msi

    Hi All, I have never experienced this error until now. <04/18/14 09:02:18> New SMSBGB is the same product code.  This is a minor upgrade. <04/18/14 09:02:18> Enabling MSI logging.  bgbisapi.msi will log to F:\Program Files\Microsoft Configuration M

  • Equal background to photo color and position graphic or text within the cli

    Hello, I am new and this is my first post. I started creating my first video and get pretty far for the first time today. I did use video footage, photos and text. The footage is fine, but I would like to give the photos a background which I choosed

  • Upload problem with BDCRECX1

    hello, i am trying to modify a sap document with uploading a txt file.the program has BDCRECX1 as include and while serching i have had some information about BDCRECX1 but stil i dont know what to do. what am i suppossed to do with BDCRECX1 selection

  • More than 1 ipod only one computer

    Hi there, can someone please explain in easy lingo,,, I have an ipod mini, works great, itunes working great also on my PC. I have purchased an ipod nano for my lucky husband, and need to know what to do to get it to connect to my itunes. Can I just

  • 10.7 And Canon MP510 (Not working anymore) Problem!

    Hello, since the last drivers update my Canon All In One Device won't work anymore. Printing and scanning can't be done anymore and the device won't even be recognized anymore. I tried to add it over system preferences several times, but nothing. Has