Playing gif images  Flex +Struts.

Hi All ,
     I have a Flex Application which is working fine, and i am integrating this with Java Struts .
  My problem is In my flex application i have written a code for GIF image play.{Playing  Animated gif images}.
  But when i am integrating with Struts .. this is throwing ERROR #2032 .and GIF image is not loading (Showing loading failed).
  But when i am running my flex separately its working fine.
For GIF images playing i used  GIFPlayer.as , its giving error :
I dont know whats happening.
Please help........

Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe Mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
See also:
*http://kb.mozillazine.org/Animated_images

Similar Messages

  • JavaFx 2, play gif image animaiton only once

    Hello,
    I have a gif image that only plays once, (set repeat off). but when i use it in the program it keeps repeating itself forever.
    how can I make it stop repeating?
    Thanks for all help

    I'm assuming your'e using a timeline/animation? Just set the play count to once! setCycleCount();Edited by: KonradZuse on Jun 2, 2013 12:18 AM

  • Embeding a .gif image in Flex Application.

    Hi All ,
         In my application , i have a requirement like : i need to play .gif images , But Flex does not support .gif animation , it will display .gif as normal .jpeg image.
    So i used : AnimatedGIFImage.as --> http://code.google.com/p/as3gif/
    But it is giving Error like :
    Please Help....

    I think that you are looking for a kind of this code. Am I right?
    import java.awt.Color;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.GradientPaint;
    import java.awt.geom.Rectangle2D;
    import javax.swing.JFrame;
    public class DemoPaint
         public static void main(String args[])
              GradientFrame gf = new GradientFrame("Gradient Frame");
              gf.setSize(300,200);
              gf.setResizable(false);
              gf.setVisible(true);
    class GradientFrame extends JFrame
         Color red_color = new Color(128,0,0);
         GradientFrame(String title)
              super(title);
         public void paint(Graphics g)
              Graphics2D g2 = (Graphics2D)g;
              GradientPaint gp = new GradientPaint(0,0,red_color,getWidth(),0,new Color(red_color.getRed(),red_color.getGreen(),red_color.getBlue(),0));
              g2.setPaint(gp);
              Rectangle2D rect = new Rectangle2D.Double(0,0,getWidth(),getHeight()/2);
              g2.fill(rect);
    }

  • Animated GIF image gets distorted while playing.

    Hi,
    I have some animated gif images which I need to show in a jLabel and a jTextPane. But some of these images are getting distorted while playing in the two components, though these images are playing properly in Internet Explorer. I am using the methods insertIcon() of jTextPane and setIcon() of jLabel to add or set the gif images in the two components. Can you please suggest any suitable idea of how I can get rid of this distortion? Thanks in advance.

    In the code below is a self contained JComponent that paints a series of BufferedImages as an animation. You can pause the animation, and you specify the delay. It also has two static methods for loading all the frames from a File or a URL.
    Feel free to add functionality to it, like the ability to display text or manipulate the animation. You may wan't the class to extend JLabel instead of JComponent. Just explore around with the painting. If you have any questions, then feel free to post.
    The downside to working with an array of BufferedImages, though, is that they consume more memory then a single Toolkit gif image.
    import javax.swing.JComponent;
    import java.awt.image.BufferedImage;
    import java.awt.Graphics;
    import javax.imageio.ImageIO;
    import javax.imageio.ImageReader;
    import javax.imageio.stream.ImageInputStream;
    public class JAnimationLabel extends JComponent {
        /**The default animation delay.  100 milliseconds*/
        public static final int DEFAULT_DELAY = 100;
        private BufferedImage[] images;
        private int currentIndex;
        private int delay;
        private boolean paused;
        private boolean exited;
        private final Object lock = new Object();
        //the maximum image width and height in the image array
        private int maxWidth;
        private int maxHeight;
        public JAnimationLabel(BufferedImage[] animation) {
            if(animation == null)
                throw new NullPointerException("null animation!");
            for(BufferedImage frame : animation)
                if(frame == null)
                    throw new NullPointerException("null frame in animation!");
            images = animation;
            delay = DEFAULT_DELAY;
            paused = false;
            for(BufferedImage frame : animation) {
                maxWidth = Math.max(maxWidth,frame.getWidth());
                maxHeight = Math.max(maxHeight,frame.getHeight());
            setPreferredSize(new java.awt.Dimension(maxWidth,maxHeight));
        //This method is called when a component is connected to a native
        //resource.  It is an indication that we can now start painting.
        public void addNotify() {
            super.addNotify();
            //Make anonymous thread run animation loop.  Alternative
            //would be to make the AnimationLabel class extend Runnable,
            //but this would allow innapropriate use.
            exited = false;
            Thread runner = new Thread(new Runnable() {
                public void run() {
                    runAnimation();
            runner.setDaemon(true);
            runner.start();
        public void removeNotify() {
            exited = true;
            super.removeNotify();
        /**Returns the animation delay in milliseconds.*/
        public int getDelay() {return delay;}
        /**Sets the animation delay between two
         * consecutive frames in milliseconds.*/
        public void setDelay(int delay) {this.delay = delay;}
        /**Returns whether the animation is currently paused.*/
        public boolean isPaused() {
            return exited?true:paused;}
        /**Makes the animation paused or resumes the painting.*/
        public void setPaused(boolean paused) {
            synchronized(lock) {
                this.paused = paused;
                lock.notify();
        private void runAnimation() {
            while(!exited) {
                repaint();
                if(delay > 0) {
                    try{Thread.sleep(delay);}
                    catch(InterruptedException e) {
                        System.err.println("Animation Sleep interupted");
                synchronized(lock) {
                    while(paused) {
                        try{lock.wait();}
                        catch(InterruptedException e) {}
        public void paintComponent(Graphics g) {
            if(g == null) return;
            java.awt.Rectangle bounds = g.getClipBounds();
            //center image on label
            int x = (getWidth()-maxWidth)/2;
            int y = (getHeight()-maxHeight)/2;
            g.drawImage(images[currentIndex], x, y,this);
            if(bounds.x == 0 && bounds.y == 0 &&
               bounds.width == getWidth() && bounds.height == getHeight()) {
                 //increment frame for the next time around if the bounds on
                 //the graphics object represents a full repaint
                 currentIndex = (currentIndex+1)%images.length;
            }else {
                //if partial repaint then we do not need to
                //increment to the the next frame
    }

  • Animated GIF with Flex

    Hi all,
         I designed a animated GIF image by Photoshop. And now, I want to add it into my web application. I referenced from
    http://www.bytearray.org/?p=95
    http://iamjosh.wordpress.com/2009/02/03/animated-gifs-in-flex/
         Have I must to download the AS3 GIF Player Class to use my animated gif with flex ?? Has Flex 3.0 support animated gif that I not need download that libriary ?
    Thanks !

    Anybody help !!

  • Why does the iPhone convert animated .GIF images?

    I saved a bunch of animated .GIF files on my iPhone.
    When I imported them onto my computer, they were all single framed .JPG files.
    Why does the iPhone convert the images, and is there any way to prevent this?
    Thanks!

    you can play gif in webView ,just the same way you load a jpeg or png..
    NSString *path = [[NSBundle mainBundle] pathForResource:@"santa" ofType:@"gif"];
    NSURL *url = [NSURL fileURLWithPath:path isDirectory:NO];
    /* Load the request. */
    [myWebView loadRequest:[NSURLRequest requestWithURL:url]];
    the gif that is locally saved will be loaded.

  • Display image in struts

    Hi
    i am new in struts and i have a image in my data base but i am unable to show that image in struts
    what i did tilll now is
    i get that images content as binary data and make the InputStream object
    but when i try to write that InputStreams data it will not work and didnt show any image
    i set the content type image/gif but still facing problem
    can any one tell me the solution
    thanks alot

    lQuery = "Select ItemName,CategoryId,Item_image,item_Desc2 from item_master where ItemId='00c63f38-95d9-1028-b9d1-cb9eb7b97c40' and CategoryId='1823bc79-726e-1028-b4b9-b993b5d1f868'";
         lStatement = lDAOFactory.getStatement(lConnection);
         lResultSet = (ResultSet) lDAOFactory.executeQuery(lQuery, null, null, DAOFactory.SQLTYPEQUERY,lConnection, lStatement);
         while(lResultSet.next())
         Blob blob = lResultSet.getBlob("item_image");
         InputStream istream = blob.getBinaryStream();
         result.setM_inStreamItem_Image(istream);
    this retrieve the image from the data base
    InputStream istream =l_CatalougeItem.getM_inStreamItem_Image();
    if(istream!=null)
    OutputStream out= response.getOutputStream();
    byte dataBytes[] = new byte[istream.available()];
         int byteRead = 0;
         int totalBytesRead = 0;
    while (totalBytesRead < istream.available())
    byteRead = istream.read(dataBytes, totalBytesRead, istream.available());
         totalBytesRead += byteRead;
    out.write( dataBytes );     
    it write the image in the socket

  • How to insert GIF images in Blogs

    I am able to insert GIF images in to blogs... but its not playing .. only static..
    Any help..
    Thanks in advance..
    Regards,
    Mahesh

    Yes.. Its working perfect. (Sorry Jyoti sir for copy-paste)

  • ITunes converts all my GIF images to JPG when I sync my iPhone.

    I have an iPhone and a Mac, and on my iPhone I have noticed that whenever I preview my images, GIF images won't play. They will just sit there, and I can only see one frame of them. I have to send the GIFs to myself through text to see them play, but they are GIF files on my iPhone. But, the recent images that I have downloaded from my iTunes to my iPhone do not show up as GIFs, they show up as JPGs instead. Everytime I sync my photos, the GIFs just randomly get converted into JPG images on my iPhone, and I'm not sure how to stop it from doing that. I don't know any other way to move my images from my Mac onto my iPhone without going through iTunes to do so. Is there a way I can get it to stop converting them to JPGs, or is there another way to put photos from my Mac to my iPhone? Thanks!

    I have an iPhone and a Mac, and on my iPhone I have noticed that whenever I preview my images, GIF images won't play. They will just sit there, and I can only see one frame of them. I have to send the GIFs to myself through text to see them play, but they are GIF files on my iPhone. But, the recent images that I have downloaded from my iTunes to my iPhone do not show up as GIFs, they show up as JPGs instead. Everytime I sync my photos, the GIFs just randomly get converted into JPG images on my iPhone, and I'm not sure how to stop it from doing that. I don't know any other way to move my images from my Mac onto my iPhone without going through iTunes to do so. Is there a way I can get it to stop converting them to JPGs, or is there another way to put photos from my Mac to my iPhone? Thanks!

  • Displaying a .gif image and audio in java

    Hi all I need a simple working example that shows how to have Java show a .gif image. I have done several searches but everyone over complicates it and makes in not understandable. I just want a super simple way of displaying an image in java.
    I also need to know how to play an audio clip through java.
    Your help is much appreciated as I have been banging my head for hours now

    Download and install JMF for audio and vedeo clips. JMF is freely available.
    To display an image which is not a difficult task, just tell where you want to display an image.
    regards

  • Gif Image

    Hi,
    Please check this link
    http://www.biew.ac.in/
    Here there is a marching surrounding the college logo.It seems to be a gif image.
    How can i make such animation for my logo.
    Please help me.

    Thanks Johnathan.
    The GIFS are not playing in the message thread itself.

  • Focussing on image in struts

    can anyone clarify,
    if we can focus on an image in struts.

    bsampieri ,
    You can focus on links, and if the link contents happens to be an image, that's fine
    YES ,
    there is no problem with handling struts <html:img tag.
    I have problem in using Struts <html:image tag.
    my JSP code is as below.
    I need to fosus " <html:image property="continue" object when page loads
    I.e i need to focus on an image when the page loads.
    %@ page language="java"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <html:html>
    <head>
    <title>Test html:multibox Tag</title>
    <script>
    function fnSubmit(str){
    alert(str);
    return;
    </script>
    </head>
    <body bgcolor="white" >
    <html:form action="html-link.do" focus="continue">
         <table border="0" width="100%">
         <tr>
         <th align="center" colspan="4">html image</th>
         </tr>
         <tr><td>
          <html:image property="continue" page="/images/submit1.gif"
         border="0" onclick="javascript:fnSubmit('image')" />
         </tr></td>
         </table>
    </html:form>
    </body>
    </html:html>

  • Error while loading a logo .gif image to the banner

    Hi all,
    I'm running Portalea on NT platform and I receive the following error, trying to load a gif image as a logo to the banner (this is in spanish but I hope you can understand it):
    Wed, 27 Dec 2000 07:03:25 GMT
    ORA-06510: PL/SQL: excepcisn definida por el usuario no tratada
    ORA-06512: en "PORTAL30.WWDOC_DOCU_BRI_TRG", lmnea 60
    ORA-06510: PL/SQL: excepcisn definida por el usuario no tratada
    ORA-04088: error durante la ejecucisn del disparador 'PORTAL30.WWDOC_DOCU_BRI_TRG'
    DAD name: portal30
    PROCEDURE : PORTAL30.wwptl_banner.savecustom
    URL : http://ORACLE1:80/pls/portal30/PORTAL30.wwptl_banner.savecustom
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Apache/1.3.12 (Win32) ApacheJServ/1.1 mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.22
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=80
    SERVER_NAME=ORACLE1
    REQUEST_METHOD=POST
    QUERY_STRING=
    PATH_INFO=/pls/portal30/PORTAL30.wwptl_banner.savecustom
    SCRIPT_NAME=/pls
    REMOTE_HOST=
    REMOTE_ADDR=192.168.100.224
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_PROTOCOL=HTTP
    REMOTE_USER=
    HTTP_CONTENT_LENGTH=6443
    HTTP_CONTENT_TYPE=multipart/form-data; boundary=---------------------------7d02753210f0280
    HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)
    HTTP_HOST=oracle1
    HTTP_ACCEPT=application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-comet, */*
    HTTP_ACCEPT_ENCODING=gzip, deflate
    HTTP_ACCEPT_LANGUAGE=es
    HTTP_ACCEPT_CHARSET=
    HTTP_COOKIE=portal30=AB515A5F55262E576590647AC04D98A8EF1D5A6F56D19ECCD710BDB4A08D2354903C0CA288FDE0C9283E116C71C00B1B3821CEAB7A24979CFF326F4979143EE1FD147BC097C2AD7705313C93DAB32D8 4A6CF71C26B267CC0B2FEA03B385A2E84; portal30_sso=7452540140821A6010973F5CAC7E7D17C7498F309E15C228015C1C0546A702F5AFDE500B69BDCB8DE5C29DD726FC8DEEE85A1DC979ECC7B8A6A16CADEF1DAB0C0ACEC11897D5B99B1033884D61307BEA7AE581C 8AB988C8CBBBDCE6174BA01F6
    Authorization=
    HTTP_IF_MODIFIED_SINCE=
    null

    Hi,
    No errors was found in the installation log. I'm looking in the WWDOC_DOCUMENT$ table and found records that make references to my previous tries to upload the logo image. In order to make others tries, how can I delete this information? Are references to this files in any other table?.
    I'm looking over the solution provide by Laurent Baresse, refering to the NLS_LANGUAJE problem ... (Thanks Laurent).
    Best regards
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Karthika Siva ([email protected]):
    Fernando,
    Are you able to upload any documents into a content area? Please look at your installation log file (install.log) for any errors that may have occured during the installation of the product. Also make sure that the tablespace containing the WWDOC_DOCUMENT$ table is not full.
    Karthika<HR></BLOCKQUOTE>
    null

  • Animated Gif Image does not render correctly on screen

    I have added animated gif image to the scene it does not render correctely.it shakes on the screen. plz give me any suggestion
    i use following code
    Image logo= new Image(getClass().getResourceAsStream("images/image.gif"));
    logoLabel.setGraphic(new ImageView(logo));

    Hello user,
    I think gif are rendered smoothly.
    Are you sure you are not making many object of same images everytime?
    Thanks.
    Narayan

  • Animated gif image

    Hi
    I like to create an animated gif image from a given set of images with java. I like to do this with the given set of java api as I do not want to use a commercial graphics library. Can anyone provide me with a sample example.
    Thanks

    Hi
    I like to resize a gif image. Currently i am using the following code but the resized image is not smooth.
    public BufferedImage resizeImage(BufferedImage img, int newW, int newH)
              int w = img.getWidth();
              int h = img.getHeight();
              BufferedImage dimg = new BufferedImage(newW, newH, img.getType());
              Graphics2D g = dimg.createGraphics();
              g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);
              g.drawImage(img, 0, 0, newW, newH, 0, 0, w, h, null);
              g.dispose();
              return dimg;
    Is there a way to resize a gif image in a smooth way as the example given in the gif4j library
    Thanks

Maybe you are looking for

  • Unable to install iTunes 11.1.4.62 on Windows 7 64-bit computer

    Received notice of iTunes update to currently installed version of iTunes, first on media computer, then on every day computer (both Windows 7 64-bit).  Successfully installed iTunes 11.1.4.62 on media computer, then attempted download and install on

  • Very urgent : Problem in currency field while downloading file from excel.

    I downloaded a excel file to my ABAP program.It contains a currency field which has comma in it. When i do operations on the currency field it says unable to interpret the number.Can anybody help me on this. Message was edited by:         Bharath Sri

  • AIR 2.0 Create folder in C:\Program Files\ in windows 7

    Hi,     We have a problem in creating a folder and a file inside C:\Program Files\ in this path in windows 7 and Windows vista.Is it possible to create a folder here.How to give elevated permission to my air application(administator previlage to the

  • Urgent:Restart the Depreciation posting Period

    Hi,   We are having a problem. We are working on 4.7 version using the depreciation program RAPOST2000. The user executed the depreciation run for the period 01.2008 . The was not successful, subsequently they closed the periods and opened the 02.200

  • Dell printer not finding Photoshop as a 'new application'

    Recently upgraded from Vista to Windows 7 and upon reinstalling my Dell AIO printer, it cannot find already installed Photoshop 7 software. No problem with Vista. Anyone know the reason for this?