LinkElement, InlineGraphicElement + SelectionManager bug

If you have an image that is used as an anchor (link), you are supposed to be able to click on the image to start link processing. However, if you have a SelectionManager in your TextFlow, things do not work 100% as they should.

Specifically, if you try to click the link by moving the cursor of your mouse directly over the image (which means without touching any other text that may be part of the binding of all that is < a href = "foo" > aaa < img source = "...) ("/ > bbb < /a >... do not touch aaa or bbb with your cursor), then the image is not a link.

However if you move the cursor of your mouse over the rest of the text in the link just before moving the mouse on the image, the image answers at the click of a link (that is, drag your mouse from left to right through the aaa, and directly on the img).

I have attached a simple example program that demonstrates this problem, but you should take the car to go the mouse that I described in the post.

I use Gumbo 5032 TLF 277.

If someone can you please confirm this as a bug, I'd appreciate it.
Thank you
Tim

I am able to reproduce this. Thanks for posting the code example! I'll make sure it gets looked at.

I see the problem as long as it's even worse than describe you. When the SelectionManager is added, the image does not work for binding at all.

Tags: Adobe Open Source

Similar Questions

  • Adding a linkElement or an inlineGraphicElement a paragraphElement also adds a spanElement element

    Adding a linkElement or an inlineGraphicElement a paragraphElement also adds a spanElement element.

    In my case it's unfortunate - because I added a graphic inline with the width of the composition - the extra span chondrites causes an extra line in the composition.  If I use p.removeChild (spanElement) - it is automatically replaced again.

    Is there a solution to this - I can have a graph of line width without space below?

    What follows can be a better work around. Hope it will be useful:

    implement textflow

    var w: int = 300;

    var h:int = 200;

    var tf:TextFlow = new TextFlow();

    tf.interactionManager = new EditManager();

    var container: Sprite = new Sprite();

    var controller: ContainerController = new ContainerController (container, w, h);

    addChild (container);

    tf.flowComposer.addController (controller);

    Add an image - use a sprite as a source

    var s:Sprite = new Sprite();

    s.graphics.beginFill (0xFF0000);

    s.graphics.drawRect (0,0,w,20); do the entire width

    var d: DivElement = new DivElement();

    var p: ParagraphElement = new ParagraphElement();

    var ige:InlineGraphicElement = new InlineGraphicElement();

    S = IGE.source;

    IGE.float = Float.LEFT;

    ige.lineHeight = 0; only when float is NOT Float.NONE;

    p.addChild (ige);

    d.addChild (p);

    tf.addChild (d);

    force the creation of terminator (it is not guaranteed to be there up to standardize) and set the lineHeight to zero

    TF.tlf_internal::normalize();

    Use getLastLeaf to get the FlowLeafElement containing the terminator - attention that it is always a SpanElement

    var terminator: FlowLeafElement = p.getLastLeaf ();

    If the length is great than the last leaf has text outside the end mark and you can't go to zero in the lineHeight

    If (terminator.textLength == 1)

    terminator.lineHeight = 0;

    tf.flowComposer.updateAllControllers ();

    Add text below

    var d2:DivElement = new DivElement();

    var p2: ParagraphElement = new ParagraphElement();

    Duration: Var SpanElement = new SpanElement();

    span. Text = "some aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa text";

    span.lineHeight = 0;

    P2. AddChild (SPAN);

    D2. AddChild (P2);

    tf.addChild (d2);

    tf.flowComposer.updateAllControllers ();

  • Bug in InlineGraphicElement with integrated resource

    set of resources integrated into the InlineGraphicElement source does not show until a real editing operation occurs
    CBC:
    var ball: InlineGraphicElement = new InlineGraphicElement();
    Bullet.source = "" http://www.adobe.com/shockwave/download/images/flashplayer_100x100.jpg "; "
    new bulletClass();
    Bullet.Width = 15;
    Bullet.Height = 15;
    var pf:ParagraphFormat = new ParagraphFormat();
    pf.marginLeft = 20;
    pf.textIndent = 0;
    p.paragraphFormat = FP;
    var sp:SpanElement = new SpanElement();
    sp.digitWidth = '10';
    sp.fontFamily = 'courier';
    sp.fontSize = 10;
    sp.textAlpha = 0.1;
    TPI Text ='. ' ;
    p.addChildAt(0,sp);
    p.addChildAt(0,bullet);
    _textFlow.flowComposer.updateAllContainers ();

    ....'
    private void graphicStatusChangeEvent(e:StatusChangeEvent):void
    {
    for each (var bm:bulletMap in map)
    {
    If (WB. Bullet is e.Element)
    {
    trace ('found');
    bm.para.textIndent = .actualWidth - (bm.bullet)-12 InlineGraphicElement;
    _textFlow.flowComposer.updateAllContainers ();
    }
    }
    InlineGraphicElement (e.element).graphic.addEventListener (MouseEvent.CLICK, onBulletClick);
    _textFlow.flowComposer.updateAllContainers ();
    }

    If I replaced embed source normal URL, it loads and displays correctly.

    Any idea about it? A bug?

    FYI: What's happening here is that the composition is the recursive way. With the embedded graphic State is set when the first call to updateAllContainers and then him recursively event handler calls updateAllContainers. That confuses the composer.

    Rather than requiring the appellant to understand that I am adding a Boolean value to the composer while calls such as updateAllContainers etc. simply revisit the recursive calls. This is the example to work.

    It'll take some time to fix it for seep through the system and displayed.

    Note that simply adding your own values Boolean around the first call to updateAllContainers may not work well. You will need to also call dial again if you see a recursive call - there is an internal change more to do with a delayed handling change of format in the event handler.

    By the way you use a version old enough - I think it would be interesting to update on buid 370.

    Richard

  • Sizing InlineGraphicElement bug

    When InlineGraphicElements width or height are set to "auto", sovereign wealth funds have unexpected proportions. Looks like they're trying to be square, instead of using the width and height of the DisplayObject.

    var graphic: DisplayObject = new MyEmbeddedSwf();
    var ige:InlineGraphicElement = new InlineGraphicElement();
    IGE.source = graphics;

    I submitted a fix for the problem of automatic size. It will be in build 381 and later versions.

    Thanks again for the code example.

  • SelectionManager flashing I-beam abduction

    I have an application which in all respects can be considered similar to the example of Pagination.
    I do not want the end-user to be able to edit the document, but I need to do some operation when the user interacts with the text, as do some actionscript when they click a LinkElement, or create a hover on elements ParagraphElements and DivElements on mouseover.

    That's why I created a superclass of SelectionManager to manage text events and mouse events.

    The side effect of this design is that, when the user place the mouse on any ancient text, the pointer of the mouse is almost always an i-beam insertion point, giving the impression that editing is available, even if they can indeed change.

    If I find another way to make the events and eliminate the SelectionManager completely, then I don't get the practical possibility for my users to select a section of text, then copy it to the Clipboard.

    Surely, there must be a way, when using a SelectionManager to have the cursor of the arrow during the overflight of arbitrary text and a hand pointer when you move to a LinkElement rather than the i-beam, however, I can't figure out how to make this happen on my own.

    If anyone out there can help me with this, I surely you my gratitude.
    Thank you
    Tim

    Anyone?

    longlostbigelow,
    Thans for your answer.

    I must have done that 100 times, but just couldn't work... then you inspired me to try once more, with a slight change...

    In my mouseOverHandler, I was doing a treatment, and in general, if nothing special was going on, I'll be back super.mouseOverHandler (e).

    Well, that was what hurt me...

    Great was the substitution of the mouse cursor.

    Thank you for taking the time to read this. You really made my app much prettier with a simple change.

    Thank you
    Tim

  • LinkElement error?

    In the latest version of Gumbo, LinkElements give me an error when I hover over them. The stack trace is as follows:
    TypeError: Error #1009: cannot access a property or method of a null object reference.
    to flashx.textLayout.elements::LinkElement$/attachContainerEventHandlers()
    to flashx.textLayout.elements::LinkElement$/addLinkToMouseInArray()
    to flashx.textLayout.elements::LinkElement/mouseOverHandler()

    Interestingly, not one of the entries in the stacktrace are any code I wrote.
    Any ideas?
    Thank you
    Tim

    There was a bug in our Build 392, integrated with the latest version of Flex. It has been fixed in our Build 393, so you'll see the next time that a new TLF is integrated.

  • macOS bug Sierra - Possible? (Terminal)

    I use the Terminal Df-h command to find the percentage of used space on the hard drive of my Mac, and I've noticed that since the upgrade to Mac OS Sierra; It came out that I used 0% (which may not be true); I was wondering could this be a bug and this is the case with anyone else?

    In fact, it is show you used 6% of disk space. 0 percent at the end relates the number of inodes that are used (data structures that manage the different metadata). Because you have so few files you are not yet using 1% of inodes, so he says always 0% are used.

    So, no, no bug

  • Calendar Apple App Bug frozen works only with iOS 10 update grrr

    Since I updated to iOS 10 (more more later than 10.2, etc.), everything was not too bad except THE APPLE CALENDAR app, its deiving me crazy when I click on the app it's like it freezes and past shift x 50 mode still something to do with the calendar app will cause either a frozen or a black screen or white and then crashed ack to main menu. Sometimes it will allow me to create but will be trolling with typing and finally crashed or not even save it... Please HELP I am sure what else to do, I tried to download google calendar and which seemed to have something of bug he loves too then something happens. And I tried to delete it and download it again, / force delivery, nothing has changed

    Hi there calsparks!

    Thank you for bringing your question on the calendar of freezing and trolling since the update to iOS 10 on your iPhone for Apple Support communities.  I rely on the calendar to keep my life organized, so I'm happy to help you resolve this issue today.

    Looks like you did a few good troubleshooting by force to leave the app, force to restart the iPhone and deleting and reinstalling the application calendar.  At this stage my next recommendation would be to backup your iPhone, then erase and restore your iPhone as a new device, then test calendar to see if it behaves correctly, and then restore your backup.

    The backup of your iPhone, iPad and iPod touch

    Use iTunes on your Mac or PC to restore your iPhone, iPad or iPod to factory settings

    Restore your iPhone, iPad or iPod touch from a backup

    Have a great day!

  • iPhone restore backup encryption bug in iTunes

    First the details of my system:

    El Capitan 10.11.6

    iPhone iOS 6 10.0.2

    iTunes 12.5.1.21

    Steps to reproduce:

    1 backup the by using the encrypted password (current running iOS 10) iPhone

    2. once the backup is complete change password encrypted from A to B

    3. restore the iPhone using the backup.

    The backup cannot be restored with A password or password B.

    I think that most people would say I forgot the password B. You would be a mistake. Password B was stored in my keychain and it wouldn't work. To check that I had the correct password, I downloaded a password free utility cracking. For some reason, these utilities are available for Windows only. I used the utility of tenorshare. Since I was sure I knew the password, I used boxes of prefix and suffix of the utility to verify that the password is correct. The utility shows you only the first 2 characters of your password once he finds her. Since I am sure that I knew the password, I put the first 7 characters of the password in the prefix box password and he assumes that the last of them (which I knew that). Then I put the first 6 characters of the password in the prefix area of password and the last character in the zone suffix and guess the second to the last character (which I knew that too). In both cases, he finds the password, which confirmed that all my characters were correct, but iTunes would not accept. At this point, I was convinced this is an Apple bug, so I googled some more and found this blog https://deciphertools.com/blog/ios-10-backup-password-incorrect/ which confirms:

    "If you recently changed your password backup in iTunes, and iTunes is now reports that 'the password was incorrect' when you try to restore this backup, then we may be able to help."

    There is a small problem affecting backups iOS 10 - sometimes changing password causes backup the password being rejected (both new and old passwords) when you try to use the backup that you did. »

    I was able to solve my problem of password associated with the procedure.

    My backup was too important to wait for a solution possible iTunes. Apple should recognize this problem and have a fix as soon as POSSIBLE.

  • IOS 10 keyboard bug

    There is a bug at the moment where the software keyboard when my iPad Pro running the latest iOS (from today 06/10/16) displayed in the bad sense.  It happens as follows:

    I'm holding the iPad in Vertical Mode (Home button down) and I'm on the home page of apps.

    I pull down from the center of the screen to access frequently used applications.

    As soon as these applications appear that the software keyboard appears also, but in fashion landscape on the left side of the screen. It crashes me out to make a choice of app and I have to tilt the iPad to type the first letters of a couple of my app type laterally in the wrong way.

    Expected behavior: in a vertical position the keyboard should be popping up by underneath the screen, applications frequently used at the top of the screen and there is no occlusion.

    If someone has corrected it somewhere, I'm all ears, but I expect that what needs to be fixed with some magical-spackle code.

    Thank you all!

    Hello. You have restarted your iPad since the last update? Here's how

    1. Press and hold the sleep/wake button until the Red slider appears.
    2. Drag the slider to turn off your device completely off.
    3. Once the device turns off, press and hold the sleep/wake button again until you see the Apple logo.

    What you describe works normally for me on iPad Air with iOS 10.0.2, so it looks just a curiosity for you. By the way, is your Pro model 9.7 to 12.9 inches?

  • Bug in iOS Schedule 10: jumps to two months

    Presently I found what seems to be a bug in iOS 10 calendar: sometimes, when choosing a certain day in the month view + list of activities below, the real selected jumps from day to another month, which is currently not displayed on the screen. Then the red circle suddenly disappeared from the current month and jump out of view to a different month (usually 1 month in the future).

    Anyone else having this problem? I use iCloud for calendar synchronization.

    I did not have this experience so far.  This - try restarting your iPhone, iPad or iPod touch - Apple Support

  • Numbers 4.0 - Bug with default date when entering the time alone?

    I've just updated to 4.0 numbers after upgrade to Mac OS Sierra and met with what seems to be a bug.

    Previously when I enter a time in the format hh: mm in a cell that has the format of Date and time, it would create the date date of the day, because none has been provided explicitly. It is the behavior expected according to this support article:

    If you do not enter a date and a time, Numbers adds a default value for you. For example, if you type '13:15 ', Numbers adds today's date by default.

    What happens now in numbers 4.0 for me when I get home just a moment, is that it gives me 01/01/2016 as the date, which is a huge pain, because I rely on the fact that the date is (or should be) today's date by default when you enter data in my spreadsheet and right now that means I have to manually change each date by hand to be released today.

    All confirm that this behavior occurs in numbers 4.0 (Build 3507)?

    Thank you

    Michael

    Here is what I get here after typing 13:15 in numbers 4.0 under Sierra:

    I left the Format of data in automatic mode, but get the same result when the format Date and time.

    It might have something to do with your region settings in system preferences (I'm using the default values for the United States).

    Have you tried numbers, reboot and try in a document of closing costs?

    SG

  • activation iPad 9.3.5 blocking bug

    Sorry if this thread in the wrong section, I can't find the section support or tag you,

    Ive updated my ipad 9.3.5 once ive power used for one day in empty battery.

    then it restarts and now im on this activation of the lock screen but my apple ID does not.

    screenshots:

    1. no language > This means I already configure it.

    2 NOTE: after 9.3.5 strings I could change the apple for a * s, even managed to download apps on it, then ipad ID drain its battery and restarted, it went to the lock of activation screen and does not my i.d.

    Ive tried to log a * s , but does not, so I thought he came back to the previous owners i.d.

    I heard that there is a bug like that when it updated to 9.x or older.

    a * 6 is my aunt apple id and the previous owner, we have already made contact with apple on the recovery of this apple ID (case ID: *), and we managed to get password reset e-mail. but still do not accept.

    I hope someone can help me with this, waiting for response from the apple support.

    < personal information under the direction of the host >

    MARK AS RESOLVED.

    another successful apple ID to unlocked it.

  • What restoration brings back old bags in the device? I was always told that icloud restoration brings all the bugs back, yet care apple lately told me than vice versa. I'm lost in a cleaner for restoration of backup: icloud or itune?

    What restoration brings back old bags in the device? I was always told that icloud restoration brings all the bugs back, yet care apple lately told me than vice versa. I'm lost in a cleaner for restoration of backup: icloud or itune?

    I've never heard a backup report bugs, however if you are interested in, you can always restore the device as good as new.

  • iMessage/Facetime activation on iOS 10 bug

    Hello

    The bug appeared after the first intentional reboot after iOS 10 updated, my iPhone 5 has been disconnected for a few hours. When it started I started to receive petitions of iM/FT on reboot or a random time after even if iM/FT completely!

    I did not move my SIM card. If I refuse to activate iM I can't see my phone number in the Contacts section.

    The same bug persists on the iPhone of my 5s wife while his phone has never been disconnected except 10.0.2 update.

    Hi Valsh,

    Here is how to fix iMessage / FaceTime activation do not question.

    Before you begin, you'll need sort these things:

    • Make sure that in the phone application, you got your registered number. On top of "Contacts", you should see your registered number (My Number :). If not, you will need to go to settings → → my phone number and enter your number.
    • Make sure that the Date and time (in general) are correct. Set to "Set automatically" to ensure that the time zone is correct and the iPhone is at the right time.
    • Also make sure you have a working network. Problems of Wi - fi can cause iMessage activation problems therefore have active cell.
      For some users, the message for activation goes out as an international SMS. Make sure that your carrier allows these and you have a sufficient amount to send them.


    1. contact your operator

    First of all, make sure that your carrier supports iMessage or not. Contact the support team of carrier and check any condition limiting on your iMessage, blocks or text filters.

    2. airplane mode

    As strange as it sounds, maybe you should try this method if nothing else works. We found the airplane mode activation mode in one of the discussions. It sounds simple, and if it is correct, it would be nice, right?

    Here's how it works:

    Step #1. Get off at scroll → settings touch Messages and turn offiMessage (also turn off FaceTime)

    Step #2. Turn on airplane mode. WiFi will be disabled automatically.

    Step #3: Turn ON Wifi.

    Step #4. Return to Messages and ignition iMessage.

    Step #5. You will be prompted for your Apple ID if you have not yet added it. (otherwise, you get no notification)

    Step #6. Now, go back to the settings and disable airplane mode.

    Step #7. For the most part, you will see a notification that says "your carrier may charge for SMS" - press OK

    Step #8. If this is not the case, go to Messages, disable iMessage and then turn on again.

    Step #9. In a few moments, iMessage should be enabled.

    Step #10. You will see a greyed number and e-mail ID. A little later, the number should be checked, and that's all.


    3 Apple ID disconnect, connect

    Sometimes, you just need to logout of your identifier Apple and then sign in again.

    Step #1. Under Settings → Message, scroll up to where it says 'Send and receive'and tap on it.

    Step #2. Type on the Apple ID, then tap Sign Out.

    Step #3. Now turn off iMessage.

    Step #4. Wait for a while (toggle Wifi) and then turn on the iMessage.

    Step #5. Enter the details of your Apple ID now and try to reactivate iMessage

    4. set or restore

    If things do not work, you must first reset the settings of your location, then the iPhone. Reset is just a force so restart your data stays secure. After the reset, you will just connect with your Apple and implementing iMessage like new.

    If this fails, you may need to restore the iPhone as new or from a backup.

    Hope this helps,

    See you soon.

Maybe you are looking for