Hello everybody,
For the need of a projet, we have made a textfield plugin with a scrollbar.
You can download it in the attachment of this post.
Actually, it has all the properties of the "classic" textfield plugin proposed by Klaus and we added 4 others attributes :
- offset_top
- offset_bottom
- offset_left
- offset_right
These attributes permit to introduce offset from the 4 borders of the plugin.
With this, you can specify "margin" in pixel. Even if you resize the stage (enter fullscreen for example), the plugin will be (width - offset_left - offset_right) large and (height - offset_top - offset_bottom) height, and this watever the size of plugin is (in % or in pixel)
Maybe it's useless for you but we had need this feature... so ....
Example of usage :
<plugin name=scrolltextfield" url="%SWFPATH%/plugins/textfield_scrollable.swf"
width="100%" height="100%"
css="p { color: #ff0000; font-size: 10px;} a { color: #0000ff; }"
html="[p]This is sample text[/p]"
offset_top="80"
offset_bottom="20"
offset_left="20"
offset_right="20"
background="true"
/>
This is a first version that worked for our needs and any remarks are welcome.