close panorama

Extended Textfield Plugin textfieldex.swf for Flash
by Aldo Hoeben - fieldofview.com

Description

A drop-in replacement for the textfield.swf krpano plugin with extended capabilities. It is based on the textfield.swf sources distributed with the krpano viewer package, and inherits all of its functionality. See the original documentation for general use information. This page only documents the extended functionality.

You may rename the plugin to textfield.swf and use it instead of the stock version, but note that this functionality is not available for the builtin textfield of the HTML5 viewer.

Download

textfieldex.swf  (plugin only)

The textfieldex sources and examples are available as part of the fovplugins package

fovplugins.zip  (plugin, source code & examples)

Syntax / XML Usage Example

<plugin name="textfieldex" 
        url="textfieldex.swf" 
        keep="true"
        />

Added Plugin Attributes

text
Set and/or read pure text, without HTML tags.
values: text content without HTML tags
scaletext
Scale text/fontsize with plugin/hotspot.
values: true/false, default: false
autosizemargin
Adds a margin to the bottom of the background when autosize="true".
values: >0, default: 4
autowidth
Automatically adjust the width of the background when multiline="false".
values: true/false, default: false
autowidthmargin
Adds a margin to the right of the background when autowidth="true".
values:>0, default: 4
multiline
Determine if all text should be rendered on a single line.
values: true/false, default: true
editable
Makes the textfield editable.
values: true/false, default: false
password
Hides the typed characters for editable text.
values: true/false, default: false
onsubmit
Actions / function that will be called when the user presses enter in an editable, non-multiline textfield.
values: function or action-name
quality
Enhanced render quality for text and border.
values: normal/high, default: normal
borderalpha
Set the alpha of the border.
values: 0-1, default: 1
borderjoints
Set the shape of the border joints.
values: miter/round/bevel, default: round
glowalpha
Set the alpha of the rendered glow around the plugin/hotspot.
values: 0-1, default: 1
shadowangle
Set the angle of the rendered shadow around the plugin/hotspot.
values: 0-360, default: 45
shadowcolor
Set the color of the rendered shadow around the plugin/hotspot.
values: hex color, default: 0x000000
shadowalpha
Set the alpha of the rendered shadow around the plugin/hotspot.
values: 0-1, default: 1
shadowblur
Set the blur amount of the rendered shadow around the plugin/hotspot.
values: >0, default: 0
textglowalpha
Set the alpha of the rendered glow around the text.
values: 0-1, default: 1
textshadowangle
Set the angle of the rendered shadow around the text.
values: 0-360, default: 45
textshadowcolor
Set the color of the rendered shadow around the text.
values: hex color, default: 0x000000
textshadowalpha
Set the alpha of the rendered shadow around the text.
values: 0-1, default: 1
textshadowblur
Set the blur amount of the rendered shadow around the text.
values: >0, default: 0

Example

CLICK TO VIEW EXAMPLE

License

CC-BY-3.0 The plugin can be used free of charge, in commercial or non-commercial applications. The source code is available under a Creative Commons Attribution license.

In a nutshell, this means you are free to use the software and its source code in your projects. If you use the source code in another software project, you are required to add attribution to the author(s). You are encouraged to share the your source code under a similar fashion, but it is not a requirement.

If you use the plugins regularly, you may consider making a donation so I can afford to continue making these plugins and making them available.