Announcement

Collapse
No announcement yet.

Bug with links in Scaleform textArea

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bug with links in Scaleform textArea

    Hello. I find strange bug in Scaleform TextArea with links.

    I'm adding htmlText:
    Code:
    <span class='default'>Text <a href='asfunction:_root.fromA, LINK#Text0'>[Link]</a>: line0</span>
    It converts in TextArea to:
    Code:
    <TEXTFORMAT INDENT="0" LEFTMARGIN="0" RIGHTMARGIN="0" LEADING="2">
       <P ALIGN="LEFT">
          <FONT FACE="Arial" SIZE="14" COLOR="#000000" KERNING="0">Text </FONT>
          <FONT FACE="Arial" SIZE="14" COLOR="#000000" KERNING="0"><A HREF="asfunction:_root.fromA, LINK#Text0">[Link]</A></FONT>
          <FONT FACE="Arial" SIZE="14" COLOR="#000000" KERNING="0">: line0</FONT>
      </P>
    </TEXTFORMAT>
    It's ok. Link is clicking, text is text.

    But if I click at link and add some new line:
    Code:
    <span class='default'>Text <a href='asfunction:_root.fromA, LINK#Text0'>[Link]</a>: line0</span>
    <span class='default'>Text <a href='asfunction:_root.fromA, LINK#Text1'>[Link]</a>: line1</span>
    Then text converts in TextArea to:
    Code:
    <TEXTFORMAT INDENT="0" LEFTMARGIN="0" RIGHTMARGIN="0" LEADING="2">
       <P ALIGN="LEFT">
          <FONT FACE="Arial" SIZE="14" COLOR="#000000" KERNING="0"><A HREF="asfunction:_root.fromA, LINK#Text0">Text [Link]: line0</A></FONT>
       </P>
    </TEXTFORMAT>
    <TEXTFORMAT INDENT="0" LEFTMARGIN="0" RIGHTMARGIN="0" LEADING="2">
       <P ALIGN="LEFT">
          <FONT FACE="Arial" SIZE="14" COLOR="#000000" KERNING="0"><A HREF="asfunction:_root.fromA, LINK#Text0">Text </A></FONT>
          <FONT FACE="Arial" SIZE="14" COLOR="#000000" KERNING="0"><A HREF="asfunction:_root.fromA, LINK#Text1">[Link]</A></FONT>
          <FONT FACE="Arial" SIZE="14" COLOR="#000000" KERNING="0"><A HREF="asfunction:_root.fromA, LINK#Text0">: line1</A></FONT>
       </P>
    </TEXTFORMAT>
    It's wrong, Scaleform adds additional <a href...> tags to normal text!

    Anybody know how I can fix it?
    Added attach with simple test: LinkBug.zip (in this exaple two textFields: standart flash textField and CLICK textArea - both have a bug)

    Thanks a lot!

    #2
    Odd. I downloaded your file and tested it in the September 2011 UDK GFx Player, and it works perfectly. Only the word [Link] is click-able. Text is not. The log output is:

    Html to add:<span class='default'>Text <a href='asfunction:_root.fromA, LINK#Tex
    t0'>[Link]</a>: </span>
    <span class='default'>Text <a href='asfunction:_root.fromA, LINK#Text1'>[Link]</
    a>: </span>

    txt:<TEXTFORMAT INDENT="0" LEFTMARGIN="0" RIGHTMARGIN="0" LEADING="2"><P ALIGN="
    LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#000000" KERNING="0">Text <A HREF="asf
    unction:_root.fromA, LINK#Text0">[Link]</A>: </FONT></P></TEXTFORMAT><TEXTFORMAT
    INDENT="0" LEFTMARGIN="0" RIGHTMARGIN="0" LEADING="2"><P ALIGN="LEFT"><FONT FAC
    E="Arial" SIZE="14" COLOR="#000000" KERNING="0">Text <A HREF="asfunction:_root.f
    romA, LINK#Text1">[Link]</A>: </FONT></P></TEXTFORMAT>


    txt1:<TEXTFORMAT INDENT="0" LEFTMARGIN="0" RIGHTMARGIN="0" LEADING="2"><P ALIGN=
    "LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#000000" KERNING="0">Text <A HREF="as
    function:_root.fromA, LINK#Text0">[Link]</A>: </FONT></P></TEXTFORMAT><TEXTFORMA
    T INDENT="0" LEFTMARGIN="0" RIGHTMARGIN="0" LEADING="2"><P ALIGN="LEFT"><FONT FA
    CE="Arial" SIZE="14" COLOR="#000000" KERNING="0">Text <A HREF="asfunction:_root.
    fromA, LINK#Text1">[Link]</A>: </FONT></P></TEXTFORMAT>

    Comment


      #3
      Oh, I have GFx Player v3.0.74. Need to update, thanks)

      Comment

      Working...
      X