A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: trouble with key.isToggled. Toggle is working but MC is not playing properly

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jan 2002

    trouble with key.isToggled. Toggle is working but MC is not playing properly

    Hey FK, when using key.isDown, I can have a animated_mc inside a player_mc gotoAndStop(4); where the animated_mc is what I want to play. animated_mc on frame 4 will play so long as I have the button down. Which works as intended with "Key.isDown".

    The problem is, I want to use a key to toggle the animation on frame 4 without having to hold the key down. So I figure key.isToggled would work.

    It does toggle properly, but no matter what I try; I can't get it to actually play the mc that is on that frame without holding the key down. The toggle goes to the frame properly but the animation only plays if I keep the key down. It stops as soon as I lift my finger off the key (stays on the correct frame though, so toggle works).

    I have a really tough time with jargon so coding is a terrific struggle, but I would still really love to learn.

    Your patience, time, and responses are much appreciated!

  2. #2
    Junior Member
    Join Date
    Jan 2002
    Also, If I've screwed up somehow with etiquette, I apologize. If this is getting ignored because of something missed in an FAQ or a common problem, please let me know.

  3. #3
    Senior Member
    Join Date
    Jan 2010
    could i have a look at the .fla file to have a proper look?
    might be addicted to flash...

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    CFA2h (respect the HEX)
    Maybe on your KEY.up there is something?

    maybe the movie you are trying to play has stop actions in every frame? hence stopping the playhead from moving?

    post the code or the .fla as suggested..


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center