Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Eliminate Focus Rectangle in loaded SWF radio buttons

Contributor ,
Jul 18, 2014 Jul 18, 2014

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.

screenshot1.jpg

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.

TOPICS
ActionScript
546
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2014 Jul 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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 19, 2014 Jul 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".screenshot2.jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2014 Jul 19, 2014

i don't see that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 19, 2014 Jul 19, 2014

Not sure why I am seeing this. Maybe, I changed a radio button component skin setting by accident?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2014 Jul 19, 2014
LATEST

that could do it.

why don't you test with a standard radio button?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines