;

PDA

Click to See Complete Forum and Search --> : v7-AS3 Bold/Italic problem with text editor.


nepa
05-12-2009, 05:44 AM
Is it possible to bold/italic single words in the text editor?

If not, is there any good way to create sentences with one or two bold words?

I tried to import text as an image but scaling the flash presentation to higher resolutions makes the text soft looking.

I have the newest version of Koolmoves.

Bob Hartzell
05-12-2009, 08:13 AM
No. That requires rich text and that has not been implemented yet.

blanius
05-12-2009, 07:16 PM
Must it be editable? You can do this by making field HTML but you cannot edit it at runtime in HTML.

nepa
05-13-2009, 02:09 AM
Must it be editable?

No. What I'm doing is basically a short presentation which has couple of pages of text and pictures.

I'll try that HTML thing and see if it works out well.

Do you guys have any idea when the rich text feature will be implemented?

blanius
05-13-2009, 10:13 AM
When you create your text field just check the HTML box in the properties panel. Then use

<B></B> for bold and <i></i> for italics. Keep in mind it only supports a small subset of HTML

nepa
05-14-2009, 01:47 AM
Thanks. It worked well.

Only problem is that you cannot fade in/out dynamic text. So I'm using this http://board.flashkit.com/board/showthread.php?t=645475 solution now.
It works but it is not the coolest way.

edit:

And it is actually such a bad way that there must be a better way to do it.
Dynamic text looks nicer than normal text but because it is missing the fading it is pretty much useless, unless there is an easy way to do the fading.

blanius
05-14-2009, 06:54 AM
put the text in a movieclip, also select on the textfield "embed characters" and set to yes. then you can fade it

nepa
05-14-2009, 07:13 AM
Now it works! Thank you very very much!

nepa
05-15-2009, 01:28 AM
I was a bit too hasty.
I did a quick test at work and it seemed to work ok but when I started to work with the actual presentation at home I found out that html tags don't work if you are using embedded characters. The bold words just disappears.
If you unselect the embedded characters the html tags works but the fading doesn't.
Irritating. :)

w.brants
05-15-2009, 07:54 AM
If you want to use bold text together with font embedding, you need to embed the bold version of the font separately.

I would suggest not to use font embedding and solve it like thisvar cmf = new ColorMatrixFilter();
var cmfMatrix = cmf.matrix;

// set txt1 alpha to .5

cmfMatrix[18] = .5;
cmf.matrix = cmfMatrix;
txt1.filters = [cmf];

nepa
05-18-2009, 03:02 AM
Are there any disadvantages in font embedding other than it increases the size of the swf file?

I embedded all four versions of the font I'm using and the size of the movie increased only about 100kb.

Now the bold fonts and fading works but only if you watch the movie from Koolmoves i.e. using the 'play in web browser' button.

Exporting the movie causes some of the text to disappear, again.

What is the difference between export and play functions? The temporary swf file that Koolmoves generates when 'play in web browser' is selected works fine but the exported swf file doesn't.

w.brants:

I tried your suggestion also and I managed to do some fading but my actionsript skills are not good enough (yet) to do any stuff that really works.

w.brants
05-18-2009, 04:06 AM
Exporting the movie causes some of the text to disappear, again.
That's strange. It shouldn't make any difference.
The main disadvantage of font embedding is the filesize. Another thing is that to me a device font sometimes looks better when the fontsize is small. The advantage is that the viewer doesn't need to have the font installed on his computer.

nepa
05-19-2009, 02:10 AM
I started doing the whole presentation from scratch and now it works. I have no idea why it didn't work before but fortunately I got it working.

I'll be back if/when I have more to ask. :)

Thank you all for your help!

nepa
05-20-2009, 02:07 AM
The problems continue.

The managed to repeat the text disappear error.

I have a presentation which has 11 key frames and I cannot export the movie anymore. The temporary swf file, which Koolmoves generates when 'play in web browser' is selected, works fine.

It seems that there is something missing from exported swf file because the size is only 100KB, compared to temporary file which is 400KB. The embedded fonts maybe?

The exporting worked fine when I had only couple of key frames in the presentation.

I can use the temporary file so the defect doesn't stop my work but it makes me wonder is there is a bug in Koolmoves... ;)

blanius
05-20-2009, 09:00 AM
Send the fun file and all assets to compile to support@koolmoves.com