Be a Supporter!
Response to: MovieClip randomly stops Posted March 20th, 2014 in Programming

At 3/20/14 01:55 PM, milchreis wrote:
At 3/20/14 11:31 AM, 8bitblitz wrote: but it still just goes to the frame and just stops.
Something else causes this.
Find any code that manipulates that time line.

I found out the problem! :D
The hand's timeline has frames with names on them, and it apparently didn't work, so I made it a movieClip again, but this time, made the attack a movieclip, connected it with the new movieclipped hand (by adding a new frame just for itself), and now it works (if that makes sense).
Ah well. Thanks for at least replying! :3

Response to: MovieClip randomly stops Posted March 20th, 2014 in Programming

At 3/20/14 05:08 AM, milchreis wrote: Welcome to the forum.
You posted in the wrong one, try Flash.
If you post code, use the code tags.

At 3/19/14 09:38 PM, 8bitblitz wrote: onEnterFrame = function(){
hand1.gotoAndPlay("lightningAttack");
}
This code does not make too much sense.
onEnterFrame will be executed at the fps you set. So this mc will be told to go to that frame 30 times a second (for example)
You don't just tell it to go to that frame, but also to play it's timline.
This is never going to work, because as soon as it tries to play to the next frame, the onEnterFrame will tell it to go back to the "lightningAttack" frame.

This is messed up.
Think about what you want to do exactly.

Thanks for the reply!
and sorry for posting it in the wrong area :[

I hope that it's okay to say I am a beginner with actionscript 2 (as you can tell).
It's weird because it works for other movieclips, but for this one, it just didn't work for me, but anyways, thanks for the reply!

I've changed it simply to

hand1.gotoAndPlay("lightningAttack");

but it still just goes to the frame and just stops. I must be very oblivious, or there is an error...

MovieClip randomly stops Posted March 19th, 2014 in Programming

Hello! I am currently working on a flash game (the programming language is as2, so for as3 programmers, don't answer please) and it randomly stops. I am programming on the main frame for it to go to and play this certain frame, but it just goes to the next frame, and that's it. I even deleted the code inside of it just so it could work, but it still doesn't. Here is the code.

onEnterFrame = function(){
hand1.gotoAndPlay("lightningAttack");
}

and the hand just moves to the next frame ;[
my other code is working fine. Other characters are moving and the code works for them, but not for this. I don't get it. I just need help.