A plugin for displaying simple html/css formated texts.
The position and size of the plugin can by adjusted with the standard layer/plugin attributes.
When no size will be set, the default size of 400x300 will be used.
In the krpano HTML5 Viewer the textfield plugin is directly integrated into the viewer itself.
The internal HTML5 textfield plugin will be automatically used when trying to load a 'textfield.swf' file.
Note - there is no full html/css support - use it only for small and simple texts!
When using the < and > characters will be not possible,
(because of xml limitations) then the [ and ] characters can be used instead - krpano will map them automatically.
And to get the real [ and ] characters use
them twice - [[ and ]].
There are two possiblites to set the html text:
Either directly in the html attribute:
html="[b]Bold Text[/b]"
Or put the html content in a <data> xml element and refer to it via data:name:
html="data:htmltext"
It is possible to create links in the html code that can call krpano actions, by using event:actions as link target:
When the text itself should be not select- and clickable, then the plugin/layer children setting should be set to false.
Note - the Flashplayer supports only a small and limited subset of html and css code!
Don't try using 'real' html/css code here!
Here a link to the offical Flashplayer documentation about the supported HTML elements:
http://help.adobe.com/.../TextField.html#htmlText
Or put the css styles in a <data> xml element and refer to it via data:name:
css="data:cssstyles"
Note - the Flashplayer supports only a small and limited subset of html and css code!
Don't try using 'real' html/css code here!
Here a link to the offical Flashplayer documentation about the supported CSS elements:
http://help.adobe.com/.../StyleSheet.html
This event will be called when autoheight=true is set and the size of the plugin has changed.
Note - due the automatic word-breaking, there can be more than one onautosized event when the width or the html content will be changed.
Note - when creating a textfield plugin element dynamically by actions (addplugin, ...),
then the onautosized event should be set before setting the html value to avoid missing the
first call of it.