Skip to main content
saratogacoach
Inspiring
July 18, 2014
Question

Eliminate Focus Rectangle in loaded SWF radio buttons

  • July 18, 2014
  • 1 reply
  • 613 views

I am working on a project in Flash Professional (AIR export) that loads an external SWF. The loaded SWF, which loads into the main SWF, has many radio buttons and radio button groups. Buttons have no label, instead using text box labels above each radio button choice.

So, the secondary SWF runs in the primary SWF's timeline/stage.

Would like to eliminate the Focus Rectangle which appears when a secondary SWF's radio button is chosen (clicked). Have tried a number of different scripts in AS3 in the secondary SWF, like radiobutton1.focusRect = false; Nothing has prevented the focus rectangle from displaying. In the main SWF tried this.focusRect = false hoping to disable all focus rectangle activity on the main stage. Didn't work either.

Not sure what to try to get rid of these focus rectangles.

Any suggestions appreciated.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 19, 2014

i can't even get a focus rectangle to show up unless a tabIndex is assigned and the tab key is pressed and even that is easy to suppress.  what are you doing that causes a focus rect to show?

saratogacoach
Inspiring
July 19, 2014

Hi,

Not doing anything extraordinary. Debugging on a Win 8.1 desktop, clicking a radio button in the group, first time only. Once any button in the group is clicked and the focus rectangle appears, changing choice by clicking another radio button in the group does not produce a focus rectangle. Odd behavior?

I did have some success at least getting that first focus rectangle to display as centered over the button by going into the component's locked skins and deleting all states' focus rectangle skins. Doesn't prevent it from appearing as noted above, but the focus rectangle is now centered instead of off to the side. Label setting in component is "top".

kglad
Community Expert
Community Expert
July 19, 2014

i don't see that.