Results 1 to 3 of 3

Thread: Disable Tab Button

  1. #1
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default Disable Tab Button

    Hello...

    How do I go about disabling the tab button in Flash? If you've noticed, when you press the tab button on your keyboard while viewing a flash movie, a yellow box appears around all buttons and MC's with actions attached (even plaing the onRollOver/Out states on occassion.

    I have some MCs on a page with a form. I'm sure some users will be using the tab button as I also do when filling out forms. I find these yellow boxes to be quite unsigthly!

    Does anyone know of a way to disable this? I'm pretty sure it's possible.

    For example, if you look at those point-and-click games...the really well made ones will have this feature diabled so you can't figure out what is clickable (and thus might produce an advtangeous result) simply by pressing tab.

    Thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I don't know the code off the top of my head, but from my experience, you can control events with actionscript based on keys pressed. All you need to do is figure out which command is needed to do something for the tab button, then do something like "return false" which is javascript (closely related to actionscript), but basically disables the default event. Or, perhaps, just "do" something else, such as add one to an extraneous variable, which might override the default.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    For the MCs:

    Code:
    movieClip.tabEnabled = false;
    If you have parent/child set up and all your MC's are in one MC then use:

    Code:
    movieClip.tabChildren = false;
    And yes, for each one... I haven't come across a global version yet, but I am trying... slowly and with less care... LOL
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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