<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: getBounds for TextFields = getBitmapBounds()</title> <atom:link href="http://blog.stroep.nl/2009/11/getbitmapbounds/feed/" rel="self" type="application/rss+xml" /><link>http://blog.stroep.nl/2009/11/getbitmapbounds/</link> <description>Just a collection of random works - Mark Knol</description> <lastBuildDate>Thu, 04 Feb 2010 15:09:55 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: luuk</title><link>http://blog.stroep.nl/2009/11/getbitmapbounds/comment-page-1/#comment-10174</link> <dc:creator>luuk</dc:creator> <pubDate>Sun, 08 Nov 2009 22:19:20 +0000</pubDate> <guid isPermaLink="false">http://blog.stroep.nl/?p=799#comment-10174</guid> <description>Hi Mark, getBounds gets inherited from DisplayObject, so it can be expected it returns the border bounds, the methods wasn&#039;t designed for text.Although your solutions seems to produce a fine result, it is kind of overengineered converting the textfield to a bitmapdata object. Have you tried looking into TextLineMetrics? (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextLineMetrics.html)That in combination with numLines, getLineText and getCharBounds suffices to get al the info you need to find the exact borders :)</description> <content:encoded><![CDATA[<p>Hi Mark, getBounds gets inherited from DisplayObject, so it can be expected it returns the border bounds, the methods wasn&#8217;t designed for text.</p><p>Although your solutions seems to produce a fine result, it is kind of overengineered converting the textfield to a bitmapdata object. Have you tried looking into TextLineMetrics? (<a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextLineMetrics.html" rel="nofollow">http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextLineMetrics.html</a>)</p><p>That in combination with numLines, getLineText and getCharBounds suffices to get al the info you need to find the exact borders <img src='http://blog.stroep.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Tweets die vermelden getBounds for TextFields = getBitmapBounds() &#124; Stroep Blog -- Topsy.com</title><link>http://blog.stroep.nl/2009/11/getbitmapbounds/comment-page-1/#comment-10023</link> <dc:creator>Tweets die vermelden getBounds for TextFields = getBitmapBounds() &#124; Stroep Blog -- Topsy.com</dc:creator> <pubDate>Fri, 06 Nov 2009 00:17:22 +0000</pubDate> <guid isPermaLink="false">http://blog.stroep.nl/?p=799#comment-10023</guid> <description>[...] Dit blogartikel was vermeld op Twitter door Ben en Paul Johnson, mknol. mknol heeft gezegd: done! Getbounds for textfields. http://tinyurl.com/ykg9hot [...]</description> <content:encoded><![CDATA[<p>[...] Dit blogartikel was vermeld op Twitter door Ben en Paul Johnson, mknol. mknol heeft gezegd: done! Getbounds for textfields. <a href="http://tinyurl.com/ykg9hot" rel="nofollow">http://tinyurl.com/ykg9hot</a> [...]</p> ]]></content:encoded> </item> </channel> </rss>