Can a flex app play animated gif?

I embedded a simple animated gif file in an image component
but it was eventaually presented a static image only. The mxml code
looks like
<mx:Image id="image1" source="@Embed('running_horse.gif')"
x="209" y="260"/>
The gif file itself was working fine in its own right and but
it stops animating when it is viewed within the swf generated. The
final html presents the first frame of the gif file only. Any help
on this appreciated.
A novice flex user

I believe the answer is no. At least, animated gifs do not
work for me. I can't recall anything in the docs about this though.
Tracy

Similar Messages

  • Does the iPhone play animated GIFs?

    Hi,
    Does the iPhone play animated GIFs? Sorry for asking such a basic question but I can't seem to find the answer on the web or within this forum.
    Also how do you implement it into your code? Do you need to use a UIWebView or can you just declare it like a regular png or jpg (e.g. UIImage *image = [[UIImage imageNamed:@"photo.gif"])
    Thanks for any help.

    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.

  • Can i open and edit animated GIF in Adobe Photoshop Touch?

    Can i open and edit animated GIF in Adobe Photoshop Touch?

    No, only regular static GIF images are supported. The desktop version of Photoshop does support this however.

  • Can the iPod (30 GB Video version) play animated .GIF files/pictures?

    When I go into the pictures folder, it only shows the first frame. Can it play animations?

    "Importing" .gif files is a very old QT Pro "trick" and was made available in the first "Pro" version of QT (3).
    I still use the feature to add logos or other, older animations to some of my newer QT "movies".
    Some of the older QT tricks can still be used today:
    http://homepage.mac.com/kkirkster/QT_Fun2/
    I've been focusing my skill (very little) on the QuickTime discussions pages but visit these "iPod" discussions pages every now and then.
    Since the new iPod can also "do" the .mov format I thought I'd observe and comment for the newer users.
    Happy New Year!
    Oh, btw, QuickTime can also do some magic with your Photoshop files.

  • How can I make a transparent animated gif?

    I'm using CS2. I have an animated gif that I want to take the black background out of so that the animated part of it is all that remains.
    Here is a link to the image:
    http://img.photobucket.com/albums/v97/tragicmike/random/Tesseract.gif
    I basically want to remove all of the black background from the image so that the animated tesseract is all that remains. I know how to open the gif to expose the layers using ImaegeReady, then edit them in PhotoShop. But when I made the black areas of each layer transparent (by selecting the RGB channel, inverting the selection, and hitting delete), saved a copy, and tried viewing it, it seems to just display all of the transparent layers constantly instead of cycling through them.
    Can someone please help me figure out how to make an animated gif with a transparent background? If I lose some of the black areas of the animated part (since they seem to get deleted when I remove all of the black background) it's no big deal. I just need to know how to do this so that it plays correctly.
    Thank you!!!
    Mike

    &gt;
    <b>"I have to wonder why the black background was included on every frame of the moving shape."</b>
    <br />
    <br />Well, George...the only reason I can think of is because it's an animated GIF, and GIFs only support one layer.
    <br />
    <br />Whatever application it was created in should have been able to render it out with a transparent BG. But I suppose the creator had his/her reasons for going with the black BG.
    <br />
    <br />(Full disclosure: I ran across
    <s>that same</s> a similar animation back in December, and the version I grabbed only had the black showing through the inside of the tesseract. I opened it in ImageReady and
    <b>
    <i>added</i>
    </b> a black BG so the edges didn't look jaggedy.)
    <br />
    <br />
    <a href="http://www.pixentral.com/show.php?picture=1FgHXbj4UpXYtUVrbeah7sbqQXDR40" /></a>
    <img alt="Picture hosted by Pixentral" src="http://www.pixentral.com/hosted/1FgHXbj4UpXYtUVrbeah7sbqQXDR40_thumb.gif" border="0" />

  • How do I stop playing animated GIF's within web pages?

    Various websites display numerous images available for download. Some of those images are animated GIF files. These files take time to load and chew up a lot of my limited upload/download usage. IE Explorer let me see a single image for the GIF but doesn't load or play the GIF. How do I get that same setting in Mozilla Fire Fox?

    hello vyoumans,
    i found a couple different ways this can be done.
    1. this firefox addon, [https://addons.mozilla.org/en-US/firefox/addon/toggle-animated-gifs/ Toggle animated GIFs], seems to work pretty good. ctrl+m toggles the animations on and off.
    2. if you don't want to install an addon, you can go to your browser configuration file. type ''about:config'' in the address bar and find the entry ''image.animation_mode''. double click it and set its value to ''none''. this should disable all GIF animations

  • App for animated .gif files?

    I've searched till I'm blue in the face and before it turns red, is there and APP that can upload moving .gif files/pics from your Mac to a folder in the iPhone 3G(S)? When you sync a moving pic or file form iTunes to your iPhone in one of its photo/picture folders, of course the .gif doesn't move but is still. Is there an APP that will view these moving .gif's which allows them to move as they were intended or created?

    She used the Link Tool, specfied 'Image URL' as the Source File Format and the url of the animated GIF in the Source Filename. Hope that helps.
    Makes sense but the form is not for the web.
    I have looked at doing it with timers and switching canvases, but that is just too much
    for sloppy animation. It's just not tight enough.
    Thanks,
    Sean
    null

  • Playing animated GIFs with NetBeans

    Well for our Computer Science class we have to make a game.
    For our title screen we wanted an animated GIF to play.
    I made the animated GIF with Gimp and I am using the NetBeans IDE (I am using the GUI Builder)
    I have tried using the image as a JLabel but it didn't work.
    I just need it to play the GIF.
    Thanks.

    Ok sorry I should have posted some code.
    Also I got it to work. But I now have a new question.
    How do you loop the animation?
    Is it possible to layer a JButton on top of the GIF?
    And also is it possible to make this part of the code relative?
    Like can you make it where it looks through the entire file without a specific path.
    AndroidGIF.setIcon(new ImageIcon("C:\\Users\\***********\\Desktop\\android2.gif"));Here is the rest of my code.
    import javax.swing.*;
    class GIFTest extends JFrame
        JLabel AndroidGIF = new JLabel();
        public GIFTest()
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            AndroidGIF.setIcon(new ImageIcon("C:\\Users\\********\\Desktop\\android2.gif"));
            GroupLayout layout = new GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(27, 27, 27)
                    .addComponent(AndroidGIF)
                    .addContainerGap(41, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(32, 32, 32)
                    .addComponent(AndroidGIF)
                    .addContainerGap(46, Short.MAX_VALUE))
            pack();
             public static void main(String args[])
                new GIFTest().setVisible(true);
    }Note that I bleeped out the name of the computer due to privacy.

  • This is ridiculous... MAIL.APP AND ANIMATED GIFS

    Receive an ANIMATED GIF - works fine.
    Forward an ANIMATED GIF - it doesn't work
    UNTIL
    You look at it again in the 'Sent Items' box - then it works fine. (THE RECIPIENT SEES IT WORKING FINE AS WELL)
    OBVIOUSLY a bug. BUT - as embarrassed as I am that the issue pertains to such a heinous relic to the web, there MUST be a fix. I've scoured high and low - and not ONE SINGLE DIFINITIVE ANSWER. NOT ONE.

    "When in the compose message view, do you really want a big blinky GIF in your face? The message composer is for writing the message, not for viewing it."
    Sort of not the point. The issue is that if I RECEIVE a message with an animated GIF - and can see it in its full hidious glory - then I should be able to view it when I forward it to someone.
    And whats more, if (God help me) I create an email with an animated GIF, then I should be able to see it in the body of the message - currently I only get the animation once its in the 'Sent' box.
    "SO WHAT?" you ask. "BIG DEAL." you remark.
    Well, lets say, for instance, that Mr. Ad Agency Exec A wants to send an animated gif that displays a current round of creative to Mr. Client Exec B.
    Currently there is no way to view the animation before sending. You can see it if you have recieved it - AND - AFTER you send it, but not during!?!?!?!?!?

  • Problems playing animated gif on label again

    I have program that is displaying a graphic representation of a wave file this is a cut down of it. I am using a mouse listener to detect the mouse wheel and from that I am zooming in on the wave graphic or zooming out.
    The problem is when I zoom in a Jlabel is displayed with an animated gif saying �zooming in� that work fine. But as soon as I zoom in again, the Jlabel will not display the image again or the zooming out image.
    I an new to java so be kind to my code
    Any help would be greatly appreciated
    CODE
    * DisWav1.java
    * Created on 30 April 2006, 14:43
    import java.awt.BasicStroke;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.geom.Line2D;
    import java.util.Vector;
    import javax.swing.JPanel;
    import javax.swing.JDialog;
    public class DisWav1 extends JDialog implements Runnable{
    // varables
         private Thread thread;
         public static final int MAX_PRIORITY = 10;
         Vector lines = new Vector();
         Color jfcBlue = new Color(204, 204, 255);
    Color pink = new Color(255, 175, 175);
    private Font font12 = new Font("serif", Font.PLAIN, 12);
    long mainSize = 36000;
    int holdingArray[];
    int ZOOMFactor;
         private JPanel jContentPane = null;
         * This is the default constructor
         public DisWav1() {
              super();
              initialize();
         * This method initializes this
         * @return void
         private void initialize() {
              this.setBackground(java.awt.Color.black);
              this.setContentPane(getJContentPane());
              this.setTitle("Display Wave");
    this.setSize(150,150);
    addMouseWheelListener(new java.awt.event.MouseWheelListener() {
    public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
    formMouseWheelMoved(evt);
         * This method initializes jContentPane
         * @return javax.swing.JPanel
         private JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new JPanel();
                   jContentPane.setBackground(java.awt.Color.black);
                   jContentPane.setLayout(new BorderLayout());
              return jContentPane;
         public void run()
    }// end run
    public void start() {
    thread = new Thread(this);
    thread.setName("Display Graph");
    thread.setPriority(MAX_PRIORITY );
    thread.start();
    }// end start
    public void stop() {
    if (thread != null) {
    thread.interrupt();
    thread = null;
    }// end stop
    // Create a array for drawing ines on screen in scale.
    public void moveMe(int x, int y){
    this.setLocation(x,y);
    // used to detect when the mouse is wheel is move and then
    // zoom IN or OUT
    // also display jLabel with animated gif saying "zooming in" or "Zooming out"
    private void formMouseWheelMoved(java.awt.event.MouseWheelEvent evt) {
    javax.swing.JLabel zz;
    zz = new javax.swing.JLabel();
    zz.setBounds(this.getWidth()/2, this.getHeight()/2, 140,40);
    zz.setText("");
    getContentPane().add(zz);
    int notches = evt.getWheelRotation();
    if (notches < 0) {
    getContentPane().add(zz);
    zz.setIcon(new javax.swing.ImageIcon("zoomingin.gif"));
    zz.setBounds(this.getWidth()/2-(zz.getWidth()/2), this.getHeight()/2-(zz.getHeight()/2), 140,40);
    System.out.println("zoom up " + ZOOMFactor);
    ZOOMFactor = ZOOMFactor +2;
    } else {
    if (ZOOMFactor <= 0 )
         ZOOMFactor = 1;
    else{
    getContentPane().add(zz);
    zz.setIcon(new javax.swing.ImageIcon("C:zoomingOUT.gif"));
    zz.setBounds(this.getWidth()/2-(zz.getWidth()/2), this.getHeight()/2-(zz.getHeight()/2), 140,40);
    ZOOMFactor = ZOOMFactor - 2;
    System.out.println("zoom down " + ZOOMFactor);
    public void paint(Graphics g) {
    // paints lines form a vector here on the screen
    }// end of paint method
    }// end class disWav1
    // END CODE

    think ive solved it

  • Can't create hyperlink with animated gifs

    Hi,
    For some reason, animated gifs won't hyperlink - everything else does fine, why?
    Thx,
    Message was edited by: solarcoaster

    solarcoaster:
    Welcome to the Apple Discussions. Put a 1% opaque object over the gif and set the link to it. Make sure the object has no color file, no border or other features except 1% opacity. Make it slightly larger than the gif and bring it forward on top of it.

  • Can't Flex apps scale to fit browser window?

    This has been brought up a couple of times, but seems to be a
    mystery: How does one scale all content to fit the browser window,
    preserving aspect ratio, and centering the content vertically or
    horizontally (depending on whether the window aspect ratio is less
    than or greater than the content aspect ratio)?
    Since Flash is vector-based, I would have thought this would
    be straightforward and encouraged!
    Some information in an earlier post, plus experimentation on
    my part, has yielded a bizarre and inflexible partial solution -
    using StageScaleMode, and sizing the app's base container to
    exactly 500x375 pixels, I can get content that scales with
    the window size and doesn't have mismatched margins (though I
    haven't figured out how to center it yet). In addition, there are
    ugly scaling artifacts (look at the drop-shadows as you change the
    browser window size).
    Again, not being a Flash programmer, I baffled that this
    isn't better supported, but I have to admit, most of the Flash apps
    I've seen in the wild seem to all be fixed at some ridiculous size
    like 640x480 or something. Are there some serious bugs here, or am
    I missing something? Is there a better approach?
    Here's a simple, complete, example (based on an example from
    an earlier thread, but simplified a good bit):
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx='
    http://www.adobe.com/2006/mxml'
    pageTitle="Resize Test"
    layout="absolute" autoLayout="false"
    addedToStage="event.currentTarget.stage.scaleMode =
    StageScaleMode.SHOW_ALL"
    >
    <mx:Style>
    VBox {
    cornerRadius: 4;
    borderStyle: solid; border-color: #000000; borderSize: 1;
    horizontalAlign: center; verticalAlign: middle;
    dropShadowEnabled: true;
    </mx:Style>
    <mx:VBox width="500" height="375"
    backgroundColor="#808080"
    paddingTop="20" paddingBottom="20" paddingLeft="20"
    paddingRight="20">
    <mx:VBox width="100%" height="100%"
    backgroundColor="#808000">
    <mx:Label text="This is some text" fontSize="12"
    width="128" textAlign="center"/>
    <mx:Button label="Button"/>
    </mx:VBox>
    </mx:VBox>
    </mx:Application>

    quote:
    Originally posted by:
    jpwrunyan
    Not bitmaps. Externally loaded images that get converted to
    bitmaps. What I said is that 90%+ are online catalogues. Logically
    it would be safe to assume they display external images of a set
    size. Sorry that was unclear. It would interesting to see an
    official survey.
    Yeah, I was using "bitmap" to mean raster graphics, whether
    the actual source be jpg, png or what have you.
    quote:
    Originally posted by:
    jpwrunyan
    And good luck getting anyone from Adobe to pay attention to
    this forum let alone comment. Better to contact their support if
    you're ever really stuck.
    Another reason I'm thinking MS is going to win this war - my
    colleague is having great luck in the WPF forums.
    quote:
    Originally posted by:
    jpwrunyan
    Another reason I thought of why resizing does not result in
    rescaling by default:
    HTML and JSP applications don't rescale when you change the
    browser size. Just go to hotmail or msn and check. They reposition.
    Flex applications are intended to behave the same way but with RIA
    capabilities. That is probably the more likely explanation than
    bitmaps merely not scaling well. Anyway, this behaviour was a
    thought-out decision and I happen to agree with it. By the way,
    older Flash applications
    do rescale to fit the window by default.
    Exactly! That's the big problem, in my view, with the
    HTML/JPG based web, and is what a vector-based solution
    (discounting raster graphics) should solve.
    Firefox, and now IE7, have features to allow you to scale web
    pages to overcome, in a stop-gap way, this problem. IE even scales
    images and Flash apps, though some Flash suffers problems when
    scaled. Firefox does not (yet?) scale images or Flash along with
    the other content. Flash-based Elmo games at sesamestree.org, at
    640x480, look pretty stupid on my 42" 1920x1080 LCD (played by my
    3-year old, not me!), but at least I can now (try) to scale them up
    with IE7 for him.
    I do not believe this was a thought-out decision, it's just
    inertia from the bad old ways of doing things. There should be a
    working option to easily scale content to the browser window, and
    if Flex doesn't provide one, Microsoft certainly is going to (with
    WPF/E) as they have with WPF. I'm not a big MS fan, but I think
    they get the way things are going with the proliferation in the
    range of screen resolutions and sizes that web content is being
    displayed on.
    That said, I realize there is more to dealing with different
    screen sizes than just scaling - you may have to change the amount
    of content on the screen, dependent on what the subject is.
    quote:
    Originally posted by:
    jpwrunyan
    Now if you want the Flash Player to be able to import huge
    .jpg files with 1000px+ resolution and selectively only load enough
    information to make a smaller size bitmap image so you can rescale
    with impunity, more power to you. Sounds great. I would love this.
    But it still doesn't address what should happen when the image goes
    beyond the original size. I know you're only using vector graphics
    so it's not an issue for you.
    Yep, raster graphics are troublesome. Worst case, a beautiful
    picture frame grows to surround the image as one zooms beyond its
    original size (insert smiley icon of choice here)
    quote:
    Originally posted by:
    jpwrunyan
    Finally to get back on the main topic:
    if SWFLoader isn't working well, you could programatically do
    the same thing. Have a sub-contaier inside the application
    container which adjusts its scale accordingly to the size of the
    parent application container. I have done this myself with the
    Image class for zooming in and out from images (ironically 1000px+
    images which were displayed at much smaller sizes).
    <Application resize="adjustSize()"
    creationComplete="adjustSize()" paddingLeft="0" paddingRight="0"
    paddingTop="0" paddingBottom="0">
    <Script>
    private function adjustSize():void {
    var newScaleX = this.width/content.width
    var newScaleY = this.height/content.height
    content.scaleX = newScaleX;
    content.scaleY = newScaleY;
    </Script>
    <Box id="content" borderStyle="none" width=400 height=300
    /> <!-- the width and height are arbitrary -->
    </Application>
    Something along the lines of the above should definitely
    work. I am just basing it off my own previous code. You may have to
    be careful of borders and padding if you decide to add them.
    Whether it works better than the other suggestions you'll have to
    decide.
    Thanks for the code, and I'll try it. I'm new to Flex, and so
    I'm still struggling with some things (such as when objects are
    available for manipulation).

  • IMovie HD doesn't play animated .gif's

    why doesn't it play them? all I get is a still of the first frame, no animation. Can anybody clue me in? If you want the files to play with, they're here:
    http://perfectionconstruction.com/test/naruto.html

    Hi
    To move projects to external hard disks can be near to fatal.
    Eternal hard disk
    • *SHOULD BE* a FireWire one - USB/USB2 performs badly
    • *HAS TO BE* - Mac OS Exstended formatted
    (Usually not but UNIX/DOS/FAT32/Mac OS Exchange which doesn't work)
    (Even so if it's bought at Apple Store - a bad thing)
    If so You need
    • Other Space to move Your project to
    • Lennart Thelander repair kit
    If You re-format Your hard disk - IT WILL BE ERASED - Totally
    Yours Bengt W

  • What can I do to add animated gif to my Button

    hi everybody,
    I have a JButton, which is used as a 'search button'. I want my search button to show an animated globe gif when search is going on. I have my code as below.
    JButton searchButton = new JButton(MyUtilities.searchIcon());
    ImageIcon animatedGlobe = MyUtilities.animatedGlobeGif();
    searchButton.setPressedIcon(animatedGlobe );
    /*******************************************************/At runtime the button is showing a static globe which is not animating.
    I used to be tipped that I use Thread to make the picture moving ! So, can you show me the way !
    Quin
    (same idea on amar)

    Plug your iPod into iTunes and look under its Summary tab.  There should be a colored bar towards the bottom indicating how much of each of content you have synced to your iPod including music and podcasts, etc.
    If your music is taking up a majority of the space on your Shuffle, you might want to double check their format.  You can do this by right->clicking on a song and choosing Get Info.  When the window pops up for it you should be under a tab that gives the track's format.
    B-rock

  • Does the Apple TV play "animated" GIF files or just "static"?

    I know it supports GIF images, but I want to make sure it actually plays them.
    Thanks

    doubt it
    but give it a try cant harm

Maybe you are looking for