Topic: HTML text formatting for <caption>

Just bought simple viewer pro... and everything works great... however there's one thing which i can't get right, which is formatting the caption text with html tags.

font face and color doesn't apply neither does <i></i>

<caption><![CDATA[<font face="Times" size="12" color="#000000">At Day&apos;s End</font><br>18" x 24" Oil on Canvas<br><br><i>Original</i><br>$ 560.00  Unframed<br>$ 750.00  Framed<br><i>Giclee print reproduction*</i><br>(signed by the artist)<br>$ 130.00  Unframed<br>$ 275.00  Framed]]></caption>

also how do i set the text to left-align?

HELP PLEASE??  :oops:

i'm gonna post up jpgs of how i want the text to look and how it looks currently with the above code.

current image with the code above -
[img]http://www.ancreative.com/clients/ilona/current.jpg[/img]

how i want it to look like -
[img]http://www.ancreative.com/clients/ilona/want.jpg[/img]

Re: HTML text formatting for <caption>

Hi an-mew,
See the FAQ #14 for html formatting.
http://www.airtightinteractive.com/simp … r/faq.html
I'm not sure why yours isn't working, looks ok from here.

to set your text box to align Right ( left is the default) open simpleviewer.fla, select the caption textbox and in the property box ck align right icon

hth
richard

Richard

in order to better assist you, please provide a url, relevant code and details about your problem.
Thanks!

Re: HTML text formatting for <caption>

Flash ho wrote:

Hi an-mew,
See the FAQ #14 for html formatting.
http://www.airtightinteractive.com/simp … r/faq.html
I'm not sure why yours isn't working, looks ok from here.

to set your text box to align Right ( left is the default) open simpleviewer.fla, select the caption textbox and in the property box ck align right icon

hth
richard

Hi Flash ho,

Yes that's where i got the code example from... but it didn't work... tags with color and font face and italics just shows up as blank, the only thing i can set is font size and the line breaks <br>. I dun get it either. I did try setting the text align on the .fla file exactly the way you said to, it didn't work unless i uncheck the "Render text as html" box, which then will screw up the appearance of the caption. That's why i'm asking for help... ran out of ideas... and have no idea how to modify the .as functions.

Any ideas please?? i'm totally lost :'(

Re: HTML text formatting for <caption>

okie!!! i have solve the mystery... for the styling and color of the text anyways... but i still haven't been able to fix the text alignment issue... anyone can tell me how to right align?? i have tried selecting right-align on the text box, also <span style="text-align: right"> on the xml... nothing works...

HELP??

for those ppl who are interested in how i solve the mystery of the styling, color and font face issue. here's the solution...

Whatever style that you want to define in your html, you must have a corresponding empty dynamic textfield with that style with embedded fonts. duh... stupid me tongue

so my case i have 3 different empty dynamic text fields on the side that has the style i want embedded.

and in my xml i have
<caption><![CDATA[<font face="Palatino" size="12" color="#231F20">6 Pots in Pasadena</font><br><font color="##231F20">16" x 20" Oil on Canvas</font><br><br><font face="Myriad Italic" color="#231F20">Original</font><br>$ 000.00  Unframed<br>$ 000.00  Framed<br><br><font face="Myriad Italic" color="#231F20">Giclee print reproduction*<br>(signed by the artist)</font><br>$ 000.00  Unframed<br>$ 000.00  Framed]]></caption>

now the caption looks like this...
[img]http://www.ancreative.com/clients/ilona/new.jpg[/img][/img]

Re: HTML text formatting for <caption>

Thanks for posting the fix!

Richard

in order to better assist you, please provide a url, relevant code and details about your problem.
Thanks!

Re: HTML text formatting for <caption>

hy,

i´ve got a strange problem with the caption ...

here is my xml code:

<caption>
<!&#91;CDATA&#91;
<b>1</b><br>2<br>3
&#93;&#93;>
</caption>

i use a fixed sized viewer and it is just displaying the first two lines .... the 3rd line will never appear.

and one question - is the length of the textbox limited? if yes - where i can change the value for it?

thanx a lot,

csae

Re: HTML text formatting for <caption>

If you are using the fixedLayout AS option, you can also set the captionWidth and captionHeight: http://www.airtightinteractive.com/simp … tions.html

Felix Turner
SimpleViewer Support Team.

Re: HTML text formatting for <caption>

*argl*

... thx felix ;-)

Re: HTML text formatting for <caption>

I was having the same difficulties getting the font face and color to apply to the caption text--and it looks like an_mew figured this out, woohoo!!    But... I don't quite understand what is meant by

Whatever style that you want to define in your html, you must have a corresponding empty dynamic textfield with that style with embedded fonts. duh... stupid me Razz

so my case i have 3 different empty dynamic text fields on the side that has the style i want embedded.

Could somebody please post a walkthrough of how you do this in Flash?  That would be awesome.  I have already given it a few tries, but I'm not having any luck.