dynamic text fields part II

just got back from a six week holiday, so was wondering if i’d lost my mind while i was away…

steps to recreate weird problem:

1. set up two dynamic text boxes on the stage – one bold and one not bold – both with letter spacing of 1.(hint at solution) give them instance names – text1 and text2
2. set their text attributes in actionscript eg.
text1.text=”hello”;
text2.text=”there”;

3. run out – notice that neither text box is bold.

for some bizarre reason, giving the text box a letter spacing value!=0 means that it loses its formatting when you set its text value.

to resolve either set letter spacing to 0, or follow my earlier post in setting text with a letter spacing value.

Interactive developer, Author - iOS development with Swift - book coming 2017 https://manning.com/books/ios-development-with-swift

Tagged with: ,
Posted in Flash

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: