Thursday, February 12, 2009

Weird Alpha Behaviour with Flash 10

It's been a while since I've done much with visual assets and text fields created in the Flash authoring environment, but I've got a project that does use it. So, I keep finding these little weird behaviors.

Today, I was trying to put a watermark-like repeated text on top of graphics I'd drawn on the stage. I repeated a text field over and over again, across the stage. All good. Then converted them all into a single text field, and applied an alpha color effect. Looked perfect!

But when I generated the swf, the alpha color effect wasn't applied. Took me a while to figure out what the problem was, but I'd accidentally set the text field to dynamic text instead of static text. Changed that setting, and all was good.

The weird part about it, though, was that the color effect was applied in the authoring environment preview, but not in the compiled swf. I'll have to search the Flash bug base to see if anyone's already filed it.

2 comments:

Keith Peters said...

You need to embed the font. Non-embedded dynamic text fields won't do alpha. been that way since... forever?

Kristin Henry said...

Yeah, it's not that it didn't apply in the swf that threw me. More that it applied it in the authoring environment, as if it was static text.

If it hadn't applied in authoring, I would have thought to check the text field type setting, which actually was set by default...since I had just previously added a dynamic text field to the stage.