Showing posts with label text. Show all posts
Showing posts with label text. Show all posts

Thursday, April 9, 2009

Want to vertically center your dynamic Flash text?

I googled this, and all of the code I came across either didn't work or seemed like a lot of code for such a simple thing. All I wanted to do was vertically center my text against a container I was displaying it in, no matter if I had 1 line, 2 lines, 3, etc.

So I came up with the following code. Just make sure that the object you want to center against is center aligned within the movieClip.

myDynamicText.autoSize = true;
textHeight = myDynamicText._height;
myDynamicText._y = -(textHeight/2);


That's it.

Thursday, April 3, 2008

Photoshop Feature Request #1

In the options menu of the Character palette, there's an option called "No Break". If you use this on a word that's been hyphenated in your paragraph, it removes the added break. But what happens when you apply this "No Break" to an entire paragraph? Does it work as expected, not allowing any words contained in the paragraph to hyphenate?

Nope. Your text disappears. Completely. Just vanishes.

The problem with the one by one method of de-hyphenating words is that is takes some time, especially when de-hyphenating one word hyphenates two others.

That's my (frustrated) request of the day.