Skip to main content
casper_no
Known Participant
April 12, 2010
Question

Selection always shown as unfocused

  • April 12, 2010
  • 2 replies
  • 929 views

I have a project that uses several textFlows. The ones inserted directly into an UIComponent descendant works as expected - I can select text and the selection is drawn.

TextFlows in a multipage, image wrapping class doesn't show selection, or rather the focusedSelection format is never used - it's always the unfocusedSelection format.This happens even as I drag to select. All other attributes work as expected - events are fired and selectionState returns correct values.

What can cause a textFlow to think it's never focused?

This topic has been closed for replies.

2 replies

casper_no
casper_noAuthor
Known Participant
May 4, 2010

Closing the thread

casper_no
casper_noAuthor
Known Participant
April 12, 2010

I've been debugging for a while. What happens is that when clicking in the TLF flow, an FocusIn event is received and right after it a FocusOut event comes. There is no relatedObject on the second event, so I can't track down who's sending.

Adobe Employee
April 12, 2010

Figuring out how focus is being stolen is, of course, the key.

Our tests aren't showing this so I'd guess its something in your app.

If you can create a sample program (source would be needed) I'd be glad to look at it.

Richard

casper_no
casper_noAuthor
Known Participant
April 13, 2010

:-) Yes, finding the focus thief is the key. But with no relatedObject in the FocusEvent, it's hard. Any ideas towards what can steal focus in this manner? Or, what can steal focus without there being a relatedObject (and it's not null because of security)

If this was AS2, I would be certain that FocusManager was the culprit.


I can't pass the source code on - it's part of a larger, non-public framework. But I do appreciate the offer to help.