Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html formatting problem 2

Status
Not open for further replies.

ThomasJSmart

Programmer
Sep 16, 2002
634
my html formatted textfield is acting strange.

im importing an html text variable from a php file
and loading it into an html formatted textfield in
flash.

the var is foo=<B>bar</B>foo

but flash only shows &quot;foo&quot; its skipping the <B>bar</B> part
like it doesnt recognise the tag or something.

any idea's

thanks,
thomas


I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
ps. its doing the same with the <I> tag, but <FONT COLOR=&quot;#FF0000&quot;> and <BR> seem to work fine

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
What font are you using in the textfield?

Regards,

cubalibre2.gif
 
It's because the font outlines for the bold and italic versions of your font aren't embedded in the movie - if you switch the textbox to non-embedded characters you'll see what I mean as everything will show up as you expect.

To get around this have other textboxes off stage with the italic and bold fonts embedded so that the outlines are present in your movie - this will bump up filesize though.

 
hard to say without seeing the whole php script but perhaps something like this is what is needed

$foo .= urlencode($bar);
 
billwatson, i tried using the urlencode but it didnt help it. the error is in flash not php.

oldnewbie, the font is the standard arial font.

wangbar, that worked. however as you said it dubbles the size of my swf :(. do you think if i dont include the font outlines for arial at all that most ppl will still be able to view the content?

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
If you go with a standard dynamic textbox without the fonts embedded your users will see everything and the filesize will be much smaller but you might not get the text appearance exactly as you want (the spacing's different for a start) and if your users don't have arial installed (mac users mainly) it'll show in a related font but not exactly as you designed it. The differences in layout are pretty minimal though and the text will be much sharper at low point sizes.
 
sounds ok :) ill do that.
many thanks for your help.

I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top