• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

animated gifs - getting them to stop

I'm using flash v.3 to createv animated gifs and at the moment I've got an animation that I'm converting into an animated gif. I want the gif, when displayed on a web page to repeat 3 times and then stop, and display the final frame that was in the timeline. I've tried stopping the gif and also getting it to go back to the last frame in the timeline, but it doesn't work! What am I doing wrong?

Thanks...........
0
luinzi
Asked:
luinzi
  • 7
  • 4
1 Solution
 
SuperMarioCommented:
A couple of things you can try:

1) When you go to export it as an animated .gif, find the box that says:

Animation _____ repetitions

Fill in 3 for that and use a stop action in the last frame.

2) You can simply copy and paste those frames three times and slip a Stop action in the last frame, and export it with only 1 repetition.

Just some advice. I hope it helps!

-Dan
0
 
SuperMarioCommented:
And, if that doesn't work, there are more advanced ways to do it using <IMG DYNSRC="..." etc etc>

-D
0
 
luinziAuthor Commented:
Adjusted points to 130
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
luinziAuthor Commented:
I'm probably doing something wrong but, I've tried adding a stop action on the timeline. I have several graphics symbols upon the timeline and I have added stop statements to all their ending layer frames, but still when I load the gif into a web page the gif plays 3 times and the disappears. What I want it to do is to play the gif, and instead of it disappearing once it has played three times i want it to just remain on the screen in the state that the gif finishes in. so I just want the gif to stop.

Please tell me more about:
<IMG DYNSRC="..." etc etc>

Thanks Dan.......



0
 
SuperMarioCommented:
Okay - here's one thing I neglected to tell you.

Animated .GIFs have no concept of frame actions. That's only Flash movies. So here is what I did to make it work (please excuse the crude illustration):

Legend: |o| is a keyframe
        | | is a tween

Layer 1: |o| | | | | |o|
Layer 2: |o| | | | | |o|

I copied the frames from 1 to 7 and pasted them at the end twice, so now it looks like:

Layer 1: |o| | | | | |o| |o| | | | | |o|
 |o| | | | | |o|

Layer 2: |o| | | | | |o| |o| | | | | |o|
 |o| | | | | |o|

Now you can't add ANY frame actions or it may goof it up.

What this does is play the animation 3 times and stop on the last frame, and make sure to export the .GIF with 1 animation loop.

-Dan
0
 
SuperMarioCommented:
Whoops, the frames below the layers in the second example wrapped around. They're supposed to be continued on the first line...
0
 
luinziAuthor Commented:
I've tried this and all that happens is that once the animation has finished the gif will disappear. I must be doing something wrong!

I'll get back to you on tuesday!
0
 
techpageCommented:
make sure your frame ends with keyframes that contain the last gif you want and also make sure you put the stop action at the end of the frame. I assume there were EXTRA FRAMES that weren't noticed by you...
0
 
SuperMarioCommented:
techpage, you can't add actions to a flash animation that's going to be exported as a GIF. All it does is take up space; the GIF format won't read flash actions.

But, make sure that the last frame is a keyframe.

-D
0
 
luinziAuthor Commented:
Nothing seems to be working, and i'm no idiot. Is this possible with animated gifs I ask? It sure works for flash movies but not for gifs?
0
 
SuperMarioCommented:
Yes. Remember my post above? I tested it. It does what you are trying to do.

Legend: o = keyframe
        - = tween or blank keyframe

Original movie's timeline:

o---o

Two keyframes with 3 frames of tweening.

Select frames 1-5 and copy frames.

Now, at frame 6, right click on the timeline and paste the frames there.

Now, at frame 11, right click on the timeline and paste the frames there.

Do the same at frame 16.

Now you have this:

o---oo---oo---oo---o

At frame 16, the movie stops and does not disappear. The movie plays once, plays three more times, and stops on the last frame.

Now go to File -> Export... and choose Animated Gif from the dropdown list. Hit OK when you find a filename to use. Now, enter the number 1 in the box above the words (0 to repeat forever).

Just try it with a sample file. I'll upload an example .fla to my website.

-D


0
 
SuperMarioCommented:
Go to these two URLs:

to view the .gif:

http://www.catapultic.com/testin.gif

To download the .fla:

http://www.catapultic.com/testin.fla

If the gif does not display correctly for you, then it must be one of your own browser settings.

Let me know what the outcome is!

-D
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 7
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now