perhaps another "bug" of textfield plugin 1.17.4

  • Hi,

    May you tell me please, if I found a bug in the newest (1.17.4) textfield plugin? Perhaps it is now necessary to use a different coding?
    I wish to have the same white color of the link as the rest of my text, but the color attribute of hyperlink is not correctly interpreted.


    <plugin name="info09pano01"
    url="../plugins/textfield.swf"
    devices="desktop|tablet"
    children="true"
    align="lefttop" x="50" y="60" width="500" height="50"
    zorder="2"
    html='Thank you for your visit! Enjoy your tour ! [a href="event:action(hide-info09pano01);openurl(http://facebook,_blank);" style="color:#FFFFFF;"]Let us know, if you like it ![/a]'
    css="text-align:left; color:#FFFFFF; font-family:Arial; font-size:14px;"
    autoheight="true"
    vcenter="false"
    background="true"
    backgroundcolor="0x000000"
    backgroundalpha="1"
    border="true"
    bordercolor="0x000000"
    borderalpha="1"
    borderwidth="20.0"
    roundedge="0"
    keep="false"
    visible="true"
    handcursor="false"
    />

  • Hi,

    that's not a bug, that's the indented behavior (see the 1.17.1 releases notes) - in the previous version there were no predefined default colors for <a> links, but now there are have ones.

    The reason that your example isn't working in Flash is that the Flashplayer doesn't support the 'style' html attribute - see here .

    There would be two solutions:

    1. use html and css code like this - here the whole text was put into a <p> element and the styles for the <p> and <a> elements defined:

    Code
    html='[p]Thank you for your visit! Enjoy your tour ! [a href="event:action(hide-info09pano01);openurl(http://facebook,_blank);" style="color:#FFFFFF;"]Let us know, if you like it ![/a][/p]'
    css="p{text-align:left; color:#FFFFFF; font-family:Arial; font-size:14px;} a{color:#FFFFFF;text-decoration:underline;}"

    2. or simply use a <font> tag to set the color for the link text - the Flashplayer will parse that tag and a HTML5 browser will ignore it - I would recommend this solution:

    Code
    html='Thank you for your visit! Enjoy your tour ! [a href="event:action(hide-info09pano01);openurl(http://facebook,_blank);" style="color:#FFFFFF;"][font color="#FFFFFF"]Let us know, if you like it ![/font][/a]'

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!