A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Keyboard controlled menu (Dot Syntax)

  1. #1
    Member
    Join Date
    Aug 2013
    Posts
    39

    Keyboard controlled menu (Dot Syntax)

    I am designing an RPG in flash. I started with a turn based battle system, and I wanted to make a battle menu that can be controlled by the keyboard rather than the mouse. After many hours of work, I managed to make a system that works, but when I go to bring up the second menu (the menu used to choose the attacks) I honestly have no idea how to go about making flash move from the main menu to the submenu I added. I'm not sure if I'm explaining this very well, but does anyone have any ideas?

    I moved away from tellTarget since that is depricated and replaced the entire code with dot syntax, but after a selection is made, I want it to move to the sub menu that will appear after the original selection is made and I'm still clueless as to how to make that happen.


    SWF preview 2.JPG
    menu (8).fla

    feel free to edit any code you need to. I just need this to work

  2. #2
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Hi,

    I was actually planning to help you with when you first asked this question a few months ago, but school got in the way and I never managed to have enough time to come up with a viable solution. It looks like you've already come up with good, though messy, solution, but hey, as long as it works for you it doesn't matter how you arrived to the solution

    After taking a look at your file, I think I've found what you did wrong. In the control movieclip (the red dot), on Frame 5 and 6, when referring to btn005 and btn006, you forgot that both of those buttons are inside another movieclip with the instance name altmenu1. So, change this:

    Code:
    _parent.btn005.gotoAndStop(1);
    _parent.btn006.gotoAndStop(2);
    to this:

    Code:
    _parent.altmenu1.btn005.gotoAndStop(1);
    _parent.altmenu1.btn006.gotoAndStop(2);
    and do that everywhere else in Frame 5 and 6. Doing that made it work for me to get inside the sub menu

    Hope this helps
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  3. #3
    Member
    Join Date
    Aug 2013
    Posts
    39
    you are my god. Thank you sooooo much! I never thought it'd be something so simple!

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