A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] focusEnabled Question

  1. #1
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876

    [RESOLVED] focusEnabled Question

    The flash documentation says about focusEnabled property for an mc:

    'Property; if the value is undefined or false, a movie clip cannot receive input focus unless it is a button. If the focusEnabled property value is true, a movie clip can receive input focus even if it is not a button.'

    and for _focusrect it says:

    'Property; a Boolean value that specifies whether a movie clip has a yellow rectangle around it when it has keyboard focus.'

    Now my question is I have a movieclip my_mc on stage and the following actions on the first and only frame of the root timeline:

    Code:
    my_mc.focusEnabled = true;
    my_mc._focusrect = true;


    my question is when I view this in a browser, and after i click the swf (to give the swf focus) and then click the tab key, why doesnt a yellow rectangle appear around the movieclip?

    Thanks in advance for yoru feedback..
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  2. #2
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,876
    its ok no worries... movieclips have to have their tabEnabled property set to true as well in order for them to get focus!!
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

  3. #3
    Senior Member Ray Beez's Avatar
    Join Date
    Jun 2000
    Posts
    2,793
    I'm having the opposite problem. I can't seem to turn OFF the stupid tab key!

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