Jump to content
Search Community

Transform rotation effects TextInput Components

sonicworks test
Moderator Tag

Recommended Posts

Hi,

 

I'm getting an odd bug when I rotate an object with the flex transformer then click on a component (textinput, colour chooser, numeric stepper etc..) it's highlight box is rotated by the same amount. The components are outside the flextransform object.

 

Any ideas of where I should start looking?

 

Thanks

 

Tim

Link to comment
Share on other sites

Gotta love Flex - that's definitely a Flex framework bug, not TransformManager. Adobe would need to fix it on their end, but you could just get rid of the focus box by doing a setStyle("focusThickness", 0) on the offending component. If anyone knows of a better solution, I'm all ears.

Link to comment
Share on other sites

Hi, thanks for the clue, you are correct it is Flex bug.

 

I solved it by overriding the focusManager class and setting the override as the new focus manager for the application

 

private function onPreinitialize():void

{

this.focusManager = new FocusPaneOverride(this);

}

 

 

 

 

package ..............

{

 

import mx.managers.FocusManager;

import mx.managers.IFocusManagerContainer;

import flash.display.Sprite;

 

public class FocusPaneOverride extends FocusManager

{

 

public function FocusPaneOverride(container:IFocusManagerContainer, popup:Boolean = false){

super(container,popup);

}

 

override public function get focusPane():Sprite{

var fp:Sprite = super.focusPane;

if (fp && fp.numChildren != 0)

fp.getChildAt(0).rotation = 0;

 

return super.focusPane;

}

 

}

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...