images+html text+flash does not work with newer krpano.swf

  • I have been doing some new experiments using textfield with html text and found out there seems to be a bug using images in html texts.

    While they work fine in html5 they just disappear in flash.

    Reverting from 1.17 to 1.16.9 still did not work but 1.08.15 works.

  • Do you have a sample?

    But please note that images inside the Flash textfield are always a bit problematic, because of the bad Flashplayer html support - e.g. the image sizes don't extend the textfield size, the textflow around the images is problematic and the image urls are relative to the main swf file and not relative to the krpano xml paths.

    Best regards,
    Klaus

  • Do you have a sample?

    But please note that images inside the Flash textfield are always a bit problematic, because of the bad Flashplayer html support - e.g. the image sizes don't extend the textfield size, the textflow around the images is problematic and the image urls are relative to the main swf file and not relative to the krpano xml paths.

    Best regards,
    Klaus

    You mean relativ to the main html file ? Thats the only way it works for me.

    Here is a version with 1.17 textfield.swf is from the 1.17 plugin folder
    http://360-foto.dk/kongensbedekammer-html/

    And this is a duplicate with 1.08.15 and the corresponding textfield version
    http://360-foto.dk/kongensbedekammer-html-1.08/index.html

    HTML texts are the red and blue spots. Blue includes an image which works fine in html5 with both versions but disappears with flash and 1.17

    Here is the textdata http://360-foto.dk/kongensbedekammer-html/data/textdata.xml

  • Hi,

    thanks for the examples!

    The missing image is a Flashplayer bug.
    The Flashplayer skips the first image when there are whitespace characters before the image in the html code.

    In older krpano versions this wasn't happening because there the <data> element was parsed differently - there the whitespaces around the content where automatically removed during xml parsing. In newer versions the whole <data> content is stored as it is (including all whitespaces).

    In the next krpano release, the textfield plugin will automatically strip the whitespaces away, then this case will work again.

    A manual workaround would be removing the whitespaces between the <data ...> and the <img ...> definitions.

    E.g. change this part:

    Code
    <data name="text1">
    <img align="left" width="123" hspace="10" vspace="10" src="data/img/img1.jpg"/>

    to this one: (a single line without any whitespace characters like blanks or linebreaks)

    Code
    <data name="text1"><img align="left" width="123" hspace="10" vspace="10" src="data/img/img1.jpg"/>

    Best regards,
    Klaus

Participate now!

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