Stopping an Animation

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 2nd, 2006, 14:28
Junior Member
Join Date: Jul 2006
Location: Canton, OH
Age: 37
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TheThrock
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
Reply With Quote

  #2 (permalink)  
Old Aug 2nd, 2006, 14:40
Junior Member
Join Date: Jul 2006
Location: Canton, OH
Age: 37
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TheThrock
Re: Stopping an Animation

Also, Can I make the animation happen by pushing a button? How do I do that one?
THanks.
Reply With Quote
  #3 (permalink)  
Old Aug 2nd, 2006, 15:20
Highly Reputable Member
Join Date: Aug 2005
Location: 3rd Branch Up, Old Oak.
Age: 48
Posts: 658
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4 (permalink)  
Old Aug 4th, 2006, 13:48
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
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
Reply With Quote
  #5 (permalink)  
Old Aug 4th, 2006, 18:03
Junior Member
Join Date: Jul 2006
Location: Canton, OH
Age: 37
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TheThrock
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
Reply With Quote
  #6 (permalink)  
Old Aug 4th, 2006, 18:10
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
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
Reply With Quote
  #7 (permalink)  
Old Aug 4th, 2006, 18:52
Junior Member
Join Date: Jul 2006
Location: Canton, OH
Age: 37
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TheThrock
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.
Reply With Quote
  #8 (permalink)  
Old Aug 4th, 2006, 19:17
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
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
Reply With Quote
  #9 (permalink)  
Old Aug 4th, 2006, 19:48
Junior Member
Join Date: Jul 2006
Location: Canton, OH
Age: 37
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TheThrock
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.
Reply With Quote
  #10 (permalink)  
Old Aug 4th, 2006, 20:21
Junior Member
Join Date: Jul 2006
Location: Canton, OH
Age: 37
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to TheThrock
Re: Stopping an Animation

great, we did it.
Thanks!
Reply With Quote
  #11 (permalink)  
Old Aug 4th, 2006, 21:47
Up'n'Coming Member
Join Date: Jul 2006
Location: Dallasish Texas
Age: 41
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to PixelLuv Send a message via Yahoo to PixelLuv
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
Reply With Quote
  #12 (permalink)  
Old Aug 26th, 2006, 05:58
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Cool Re: Stopping an Animation

Sometimes it is so easy to miss just the smallest thing in actionscript.
Reply With Quote
  #13 (permalink)  
Old Aug 28th, 2006, 19:46
Reputable Member
Join Date: Jul 2006
Location: exeter
Age: 20
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Reply

Tags
stopping, animation

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 22:53.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43