Sometimes I just dont get stuck into the excellent Adobe API's soon enough.
Adobe TextField API
While creating a speech bubble, I wanted to resize the textfeild and speech bubble graphic dependant on the dynamic text content size. It turned out easy in the end.
bubble.outline.width = bubble.twitter_txt.textWidth+30; bubble.outline.height = bubble.twitter_txt.textHeight+20;
(2.8kb)
No comments:
Post a Comment