Skip to main content
Participating Frequently
July 9, 2009
Question

Managing focus and blinking

  • July 9, 2009
  • 2 replies
  • 2134 views

I have three separate editable textflows on my screen. When I give each one focus the blinking cursor appears, but when I take the focus off each container the blinking cursor remains, and it's not clear which container has the focus - I see 3 blinking at the same time.

I can't seem to find any focus events in the docs. Is there a way to remove the blinking cursor when a container doesn't have the focus?

This topic has been closed for replies.

2 replies

Participating Frequently
August 20, 2009

I am having same problem, basically, I am creating multiple textFlows over the same ContainerController, everytime after I dynamicly adding a new textFlow, the focus is on the container, but the cursor just does blink.

here is a piece of code snippet shows how do I add a new textFlow:

   public function execute(event:CairngormEvent):void {

            var tf:TextFlow = new TextFlow();
           
            var undo:UndoManager = new UndoManager();
           
            Log.getLogger('ExamWriter').info("Undo And Redo Item Limit", undo.undoAndRedoItemLimit);
           
            tf.interactionManager = new EditManager(new UndoManager());
           
            tf.interactionManager.selectRange(0,0);
           
            tf.interactionManager.setFocus();
           
           
            tf.fontSize = this.myModel.userPreferences.fontSize;
            tf.color = this.myModel.userPreferences.fontColor;
            tf.fontFamily = "Arial";
            tf.backgroundAlpha = 0;
           
            tf.backgroundColor = this.myModel.userPreferences.backgroundColor;
           
            this.pageContent.pageNum = this.myModel.userResponse.pageContent.length + 1;
            this.pageContent.content = tf;
           
            this.pageContent.content.addEventListener(CompositionCompleteEvent.COMPOSITION_COMPLETE, compositionComplete);
            this.myModel.userResponse.pageContent.addItem(this.pageContent);
           
            this.myModel.userResponse.currentPageNum = this.myModel.userResponse.pageContent.length - 1;
           
            Log.getLogger('ExamWriter').info("AFTER INSERTING NEW PAGE -- PAGE CONTENT LENGTH:: " + this.myModel.userResponse.pageContent.length);
        }

Any suggestion to fix this problem or work-around?

Participating Frequently
July 9, 2009

Thank you for your report.  We are working on the problem.

cash0Author
Participating Frequently
August 18, 2009

Has there been any progress on this?

Can you confirm that it is indeed a bug. Or at least suggest a way to tell a text container to stop blinking?

Thanks.

Adobe Employee
August 24, 2009

Same ContainerController, different textflows add this controller  everytime.

Code like:

this._textFlow.flowComposer.addController(this._controller);

Is there any thing wrong with this?


That's not supported.  A TextFlow may have many ContainerControllers.  A ContainerController may only be associated with one TextFlow.  It's a 1 to N relationship.  That's very unlikely to change.  Can you tell me more about your use case?

Thanks,

Richard