Skip to main content
Participating Frequently
Jul 9, 2009 4:09 PM UTC
Question

Managing focus and blinking

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 is closed to new replies. Start a new post to keep the conversation going.

11 replies

Participating Frequently
Aug 20, 2009 2:24 AM UTC

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?

Translate
Participating Frequently
Jul 9, 2009 11:55 PM UTC

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

Translate
cash0Author
Participating Frequently
Aug 18, 2009 2:33 PM UTC

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.

Translate
Participating Frequently
Aug 18, 2009 5:23 PM UTC

I'm sorry, but I don't have much update I can share with you at this moment.  We keep working on it.  Thank you for your patient.

Translate