apply a stop() to the child movieclip, if that's what you want:
Unfortunately, that doesn't work.
Flash essentially is saying: I am still on the Front frame, so there's no need to do anything else.
So the previously called gotoAndStop for the walk animation just keeps going.
Hope that makes sense.
is there a child movieclip that keeps playing when you're on the Front frame? if yes, what's the instance name of that child movieclip and do you want that child movieclip to stop playing?
Well, as I laid out before I have a main Character movie clip, under which are nested MCs with different profile views on each frame, and under those MCs are further nested profile animations in the same manner.
Essentially, when a key is pressed, I want to activate the walk animation. This requires first going to the Character's "Front" frame, and further to the "walk" animation frame nested under "Front".
When the key is released, I naturally want the walk animation to stop. I am unsure how to accomplish this. Is there some way to reference this clip heirarchy in order to make Flash show only the "Front" frame and not the animations underneath it? As it currently functions, the code I pasted before does not accomplish this. The walk animation continues to play even after key being released.
let's say characterMc has 4 frames: up down left right... frame down has a movieclip named frontMc... frontMc has 2 frames: run walk... each of these frames have a movieclip that animates the action... these animation movieclips can have the same name since they are on different frames- for example, each named "anim"... now on key release you can characterMc.frontMc.anim.stop() and it wouldn't matter if you're on frame walk or frame run
you can give frontMc a third frame: run walk blank... frame blank is empty... now on key release you can characterMc.frontMc.gotoAndStop("blank")
1 person found this helpful
i just told you how to do that. you failed to understand that advice because you don't understand flash.
you need to understand how flash handles your setup so you can solve this problem (which i already explained how to do).
let's start with, "This requires first going to the Character's "Front" frame, and further to the "walk" animation frame nested under "Front"."
Character has a keyframe "Front". that makes sense to flash (and those of us that understand flash). 'and further to the "walk" animation frame nested under "Front".' does not make sense.
there must be a child movieclip on Character's keyframe "Front" and that movieclip can have keyframes including one labeled "walk". That child movieclip's instance name is critical to handling your issue. i used childmoviecip in the code i suggested but you should give this movieclip an instance name and use that instead.
using that child movieclip's instance name, you can control that child movieclip using dot notation like i suggested:
or, if you want to direct childmovieclip to one of its keyframes (eg, standstill), use:
If I completely understood flash, I wouldn't be on here asking for help (apparently wasting your time).
I'll give what you stated a shot.