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

focusManager in FB4

New Here ,
Jul 17, 2010 Jul 17, 2010

Copy link to clipboard

Copied

I moved a project created in flex 3 to FB4 and it works fine using sdk 3.5 If i set it to 4.1 sdk

I get one error related to the focusManager.

focusManager.moveFocus(mx.events.FocusRequestDirection.FORWARD);

This command is used to move the cursor forward to the next tabindex in my application. Can someone help me out

in what this has changed to? I know i've had isues with this in the 3 series sdk and it worked correctly i belive when sdk 3.3

hit as it had a problem in mac versus pc. So in sdk 3.5 with air 2 it works correctly but changing sdk to 4.1 and trying (no compatibility mode or flex 3 compatibility mode) it errors on compile.

Description    Resource    Path    Location    Type
1061: Call to a possibly undefined method moveFocus through a reference with static type mx.managers:IFocusManager.    keyevent_functions.as    /BeamPro2/src    line 124    Flex Problem

i have the following imports

import mx.events.FocusRequestDirection;
import mx.managers.FocusManager;
import mx.managers.IFocusManager;
import mx.managers.IFocusManagerComplexComponent;
import mx.events.FocusRequestDirection;

thanks for any help.

Rob

Views

1.0K

Translate

Translate

Report

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
New Here ,
Jul 19, 2010 Jul 19, 2010

Copy link to clipboard

Copied

LATEST

just to follow up on this - another forum answered this and it worked well in mac and win

It's  been removed in the Flex 4 SDK.

Can you instead try:

Code:
focusManager.setFocus( focusManager.getNextFocusManagerComponent() );

http://www.flexdeveloper.eu/forums/flex-4/flex-4-focusmanager-movefocus-is-now-poof/

Votes

Translate

Translate

Report

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