Welcome to Dream.In.Code
Become an Expert!

Join 136,875 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,686 people online right now. Registration is fast and FREE... Join Now!




onMouseDown supposed to play once but repeats forever?

 
Reply to this topicStart new topic

onMouseDown supposed to play once but repeats forever?

cadeownz
2 Aug, 2008 - 12:57 AM
Post #1

New D.I.C Head
*

Joined: 11 Jul, 2008
Posts: 31

Hey,
i have an Archer and when i move my mouse around the stage his arms and bow follow but when i press it should play the Archer shooting, and it does but it keeps repeating and never stops and if i click again it does not stop or play another shooting animation.. Plz help..

CODE
stop();
_root.onRelease = function() {
    _root.arrowman.gotoAndPlay(2);
}

see on release it should play the animation and then on the last frame of animation i put stop(); so it stops it but it ignores that and plays forever.. this is probly easy but i just dont get it. someone plz help

Thanks in advance..
biggrin.gif biggrin.gif smile.gif biggrin.gif smile.gif biggrin.gif smile.gif biggrin.gif smile.gif biggrin.gif smile.gif smile.gif biggrin.gif biggrin.gif smile.gif smile.gif biggrin.gif

This post has been edited by cadeownz: 2 Aug, 2008 - 01:01 AM
User is offlineProfile CardPM
+Quote Post

BetaWar
RE: OnMouseDown Supposed To Play Once But Repeats Forever?
2 Aug, 2008 - 09:03 AM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 2,032



Thanked: 82 times
Dream Kudos: 1175
My Contributions
I am not sure but onMouseDown only plays once for me (Flash 8) Maybe try changing the stop to this.stop(); to tell the movieclip to stop and not everything.

Hope that helps.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 08:11PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month