Skip to main content
Participating Frequently
April 9, 2009
Question

New User

  • April 9, 2009
  • 1 reply
  • 1159 views

I bought flash CS4 professional and developed a small web site. One thing that driving me crazy is that the animation continuosly looping for ever. I have more complicated design to follow but I am wondering why the animation does not stop even after putting a stop(); on the timeline on a key frame.

Scenario

1) I have a layer with an image (movie clip symbol). The alpha of this image changes from 0 to 100 as it traverses through timeline

2) I have another layer for actions. I created a key frame at frame 50 where MC's alpha becomes 100%. In the action dialog I typed exactly as "stop();"

But I am into my third day not knowing how to get this simple thing working for me. I know this could be a very simple thing for you guys but please help.

(Machine specs: XP Tablet 2 GB MEM)

This topic has been closed for replies.

1 reply

Inspiring
April 9, 2009

stop() only stops the timeline it is placed in. You should see the result of the movieClip no longer change it's alpha.

The movieClip has it's own timeline and that will keep playing and so show possible animations it contains. If you want it's timeline to stop as well, give it an instancename in the properties panel and use it to address it's timeline:

myMovieClip_mc.stop();

Make sure the instancename is set at the correct frame, a keyframe will see it's content as new and therefore also possibly renew/clear any instancenames. Depends on the order of actions while creating the animation.

rradhakAuthor
Participating Frequently
April 9, 2009

First, let methank you for responding so quickly.

One of the things that I tried included naming the movie clip instance as "go". (I forgot to mention that in my original post. sorry). I called go.stop() on the actions layer at 50th frame. Still, when I control+enter, it continuously loops. I have attached a simple animation that I created, Could you please help me correct this one. Once this is fixed, I will be able to apply the logic to my original animation that i am working.

I evaluated swismax prior to purchasing Flash and found swishmax is very easy and quick. During evaluation priod, I created moderately complex anim using that product. But I bought licenses for Flash CS4 finally because of Adobe's name and feature fullness. But taking this long to implement a simple stop is putting a shadow on my decision to purchase Flash. I know it is too early and I might be overlooking some simple thing.

Thanks for your help.

Damon Edwards
Inspiring
April 9, 2009

Your attachment didn't take.  If you click your object on stage at frame 50, it has in instance name of [go] (no brackets)?  The instance name is the unique name you type in the properties panel once an object has focus on stage.  Also, on frame 50, you created a keyframe, clicked that keyframe and opened the actions layer and typed in [go.stop();] (no brackets)?  I can see why it's not stopping, you're confusing it, telling go to stop..   On a serious note though, if all answers are true, email me the FLA of this animation to dzedward[at]gmail[dot]com and I'll take a closer look.  Also, when you test, do you see anything show up in the compiler error window, or even the output window?