This is a discussion on "Stopping an Animation" within the Flash & Multimedia Forum section. This forum, and the thread "Stopping an Animation are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Stopping an Animation
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Stopping an Animation
How do I keep the animation from looping over and over. DO I have to use Action script and if so, How?
Thanks, Eric |
|
|
|
|||
|
Re: Stopping an Animation
Also, Can I make the animation happen by pushing a button? How do I do that one?
THanks. |
|
|||
|
Re: Stopping an Animation
It should only repeat if you ask it to loop the playback (check settings).
Animating a button is just several movies in one. You make the button on one timeline, then make the animation you want to happen on the mouse over and drop it into the mix (sry, it's actionscript time) and the same for mouse down's, etc, etc. THIS may help but there are loads more out there. I haven't used Flash for ages so I had to Google for it. Last edited by Legacy_Staff; Aug 2nd, 2006 at 15:22. |
|
|||
|
Re: Stopping an Animation
add a stop action on the final frame to make sure.
you can add a goto and play to a button symbol and just set it to start on frame 1 of the movie you want to play. ~Pxl |
|
|||
|
Re: Stopping an Animation
I tried but can't get it. Goto and play to a button?
I have the animation that runs when I press ctrl/enter. and I have a button that I need to press to get the animation to run instead of it just running by itself. Where do I put goto and play at? Thanks, Eric |
|
|||
|
Re: Stopping an Animation
If your pressing enter and its running your still in the app right? you need to test it in the browser. and goToandPlay is a fairly basic frame action.
To be fair, this is a fairly in depth question. Details beyond what a chat or message board can attend to. Just check out the tutorial that comes with the app on button behaviors. It wont take that long and if you have a sticking point at that juncture let me know and ill help sort it out. I'm not trying to punt your question. I just cant go through all the basic flash development steps on a board. Use the tutorials and the web and u will get up to speed quickly. ~Pxl |
|
|||
|
Re: Stopping an Animation
I read a few things. I may be doing this wrong so I am going to run it by you.
I have two layers with a shape tween from frame 1 to frame 30 simulating doors opening. Each layer is a door with one opening to the left and one to the right. At frame 30 of each layer I have stop(); in the action script box. This opens the dors once then they stop. I have another layer that it the button is in titled Button and another layer titled actions. In the actions layer I have the action script as follows: open_btn.onRelease { gotoAndPlay(1,1); } When running the file I get this error: **Error** Scene=Scene 1, layer=actions, frame=1:Line 1: Syntax error. open_btn.onRelease { **Error** Scene=Scene 1, layer=actions, frame=1:Line 2: Scene name must be quoted string gotoAndPlay(1,1); Total ActionScript Errors: 2 Reported Errors: 2 It's definately wrong and I just can't seem to get to the next step. Any help is great. Thanks. |
|
|||
|
Re: Stopping an Animation
you only need one stop(); action per timeline.
try removing that script. opening your button symbol. putting that script in the down frame. i dont think you need the "open_btn" part if you do that. id put my stop action in frame 30 of my action layer. tidy. test your movie. this should run the timeline once. then whenever you hit the button the movie will return to frame 1 of the movie and play to the stop action. if you dont want it to play at all then put a stop action on frame 1 in your action layer. and set your gotoAndPlay to (1,2) i think. been a while. im rusty. ~Pxl |
|
|||
|
Re: Stopping an Animation
great I got it, except the button opens the doors but then when they open it goes back to frame one before it stops.
I put the stop(); action in frame 30 of my actions layer and it shows up on every frame of the actions layer. The gotoAndPlay had to be (1) because (1,2) gave errors. Any more thoughts, I am almost there with it. And Thanks a lot. |
|
|||
|
Re: Stopping an Animation
great, we did it.
Thanks! |
|
|||
|
Re: Stopping an Animation
glad it worked. did u sort the stop in every frame thing. u need to place it in a keyframe.
post it and link it. ~Pxl |
|
||||
|
Sometimes it is so easy to miss just the smallest thing in actionscript.
|
|
|||
|
Re: Stopping an Animation
yeh actionscript drives me crazy sometimes like the other day i wrote a whole load of code and on one of the lines i should have had 2 = and i only had 1 it messed it all up lol
rusty |
![]() |
| Tags |
| stopping, animation |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| etoxin>> Funky Flash site some really funky interactive animation. Animation to play | etoxin | Free Web Site Critique | 33 | Jan 17th, 2008 12:39 |
| stopping bots | saltedm8 | Webforumz Cafe | 14 | Dec 12th, 2007 23:20 |
| Tabindex stopping at 20. | serialnuker | Flash & Multimedia Forum | 9 | May 21st, 2007 05:43 |
| stopping your website be pinched? | Joolsd186 | Web Page Design | 14 | Aug 16th, 2006 16:09 |
| stopping <td> s | benbacardi | PHP Forum | 0 | Jun 11th, 2005 21:38 |