Sie sind nicht angemeldet.

1

Dienstag, 17. Mai 2011, 05:42

PADDING in textstyle

Hi!
Don't you think it would be really important to have a padding parameter in <textstyle > ?????
The text needs some margin with the edge of the background. It looks really ugly.

If there's a way to do it, please tell me, I don't know!
Ariel M.
Build and Customize your virtual tours with Spinattic
www.spinattic.com

My profile in Spinattic

Zephyr

Profi

Beiträge: 1 003

Wohnort: Netherlands

Beruf: Web developer

  • Nachricht senden

2

Dienstag, 17. Mai 2011, 09:31

Flash doesnt support padding, these are all the supported styles: http://www.adobe.com/livedocs/flash/9.0/…StyleSheet.html

But you can fake it, by setting background to false, and then create another background (an image or a textfield without text) have the background have a lower zorder then the textfield above it. make the textfield (for a padding of 10px) 20px less wide, and 20px less height. Make textfield a parent of the background, and then give the textfield an offset of 10px on x and y.

so:
<plugin name='textbakckground" url="textfield.swf" background="true" backgroundcolor="0xFFFFFF" width="400" height="400" />
<plugin name="textfield" url="textfield.swf" background="false" parent="plugin[textbackground]" x="10" y="10" width="380px" height="380px" />

3

Dienstag, 17. Mai 2011, 17:01

Hi All,
But you can fake it,...
An alternative could be using htmlText tags inside your text like textformat for the left and right padding and font size='' in association with a br tag for the top and bottom padding.
like this:

Quellcode

1
showtext([textformat leftmargin='20' rightmargin='20'][font size='15'][br][/font]YOUR TEXT HERE[font size='15'][br][/font][/textformat])


SAlut.

5

Dienstag, 17. Mai 2011, 17:11

;-)

Ähnliche Themen