Skip to main content
Known Participant
May 12, 2011
Question

Annoying copy-paste bug in TLF (4.1.0.16076)

  • May 12, 2011
  • 3 replies
  • 704 views

Hello,

I've found annpoying issue with copy-paste in TLF. Maybe someone can explain me how to live with it

Here's a very simple MXML code that creates two TLF containers:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                layout="horizontal"
                minWidth="955"
                minHeight="600"
                creationComplete="onCreationComplete()">

    <mx:Script>
        import flashx.textLayout.container.ContainerController;
        import flashx.textLayout.elements.TextFlow;
        import flashx.textLayout.edit.EditManager;

        private var textFlow1:TextFlow = new TextFlow();
        private var textFlow2:TextFlow = new TextFlow();
        private var textContainer1:Sprite = new Sprite();
        private var textContainer2:Sprite = new Sprite();

        private function onCreationComplete():void {
            c1.rawChildren.addChild(textContainer1);
            c2.rawChildren.addChild(textContainer2);
            var controller1:ContainerController = new ContainerController(textContainer1, c1.width, c1.height);
            var controller2:ContainerController = new ContainerController(textContainer2, c2.width, c2.height);
            textFlow1.flowComposer.addController(controller1);
            textFlow2.flowComposer.addController(controller2);
            textFlow1.interactionManager=new EditManager();
            textFlow2.interactionManager=new EditManager();
            textFlow1.flowComposer.updateAllControllers();
            textFlow2.flowComposer.updateAllControllers();
            textFlow1.interactionManager.refreshSelection();
            textFlow2.interactionManager.refreshSelection();
        }
    </mx:Script>

    <mx:Canvas id="c1"
               width="200"
               height="200"
               borderStyle="solid"/>
    <mx:Canvas id="c2"
               width="200"
               height="200"
               borderStyle="solid"/>

</mx:Application>

Now do the following sequence of actions withing the application:

1. Put cursor to the first (left) container and type some text.

2. Select the typed text. And copy it via Ctrl+C.

3. Invoke context menu via right mouse button on first container.

4. DO NOT choose any menu item - click outside popup menu to close it.

5. Click to a second container - cursor is moved correctly to a second container.

6. Press Ctrl+V. Text is inserted into first container

Note that this issue is reproducible on both Mac and Windows platforms.

This topic has been closed for replies.

3 replies

Known Participant
May 13, 2011

Thank you very much for your replies.

Maybe you know when the bug is going to be fixed?

Adobe Employee
May 13, 2011

I can reproduce it even with the latest TLF build( The Key step: 4. DO NOT choose any menu item - click outside popup menu to close it. It can only be reproduced when the *outside* is in the first container).

But It seems a player bug.

PS:

4.1.0.xxx is the version of flex SDK, not TLF.

For details, pls have a look at my last few replies in http://forums.adobe.com/thread/848143?tstart=0

Participating Frequently
May 12, 2011

I believe what you're seeing is this issue: http://bugs.adobe.com/jira/browse/FP-2971, which was reported a year and a half ago and somehow has yet to be addressed.