<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Extending CSS capabilities in Flash</title>
	<link>http://www.blog.lessrain.com/flash-extending-css-capability/</link>
	<description>Lessrain Blog</description>
	<pubDate>Mon, 22 Mar 2010 15:56:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: David Hay</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-138698</link>
		<dc:creator>David Hay</dc:creator>
		<pubDate>Mon, 11 May 2009 08:08:45 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-138698</guid>
		<description>&lt;p&gt;I know this is old but just in case you're having the same trouble as ‘Umkaã€€ãƒ›ã‚¹ãƒ†ã‚£ãƒ³ã‚°,  you can fix it with autoSize if you do TextFieldAutosize.CENTER.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I know this is old but just in case you&#8217;re having the same trouble as ‘Umkaã€€ãƒ›ã‚¹ãƒ†ã‚£ãƒ³ã‚°,  you can fix it with autoSize if you do TextFieldAutosize.CENTER.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-138674</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 30 Apr 2009 09:52:39 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-138674</guid>
		<description>&lt;p&gt;Damn. That last post had all its less than and greater than tags stuffed up. Oh well, dear moderator, if you can be bothered fixing it, please do so, otherwise, meh. Internet's loss.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Damn. That last post had all its less than and greater than tags stuffed up. Oh well, dear moderator, if you can be bothered fixing it, please do so, otherwise, meh. Internet&#8217;s loss.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-138673</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 30 Apr 2009 09:51:17 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-138673</guid>
		<description>&lt;p&gt;I know this is an ooooooooooold post, but in response to the question raised by  'Umkaã€€ãƒ›ã‚¹ãƒ†ã‚£ãƒ³ã‚°' above, and for the sake of anyone stumbling across this post like I just did... the problem is the autoSize property.&lt;/p&gt;

&lt;p&gt;A html textfield, with &lt;a&gt; tags styled by a Flash StyleSheet, jumps around when rolling over said &lt;/a&gt;&lt;a&gt; tags... only when this text field is multilined, with a set width, and set to autoSize.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The solution is... after you've populated that html textfield (ie. set its htmlText property), capture the dimensions of said textfield, turn off autoSize, then set said textfields _width and _height properties.&lt;/p&gt;

&lt;p&gt;Eg, after setting the htmlText property...&lt;/p&gt;

&lt;p&gt;/*
SNAPSHOT...
&lt;em&gt;/
var o:Object = { w:Math.ceil(txt._width), h:Math.ceil(txt._height) };
/&lt;/em&gt;
TURN OFF AUTOSIZE...
&lt;em&gt;/
txt.autoSize = false;
/&lt;/em&gt;
SET THE &lt;em&gt;WIDTH AND _HEIGHT...
*/
txt.&lt;/em&gt;width = o.w;
txt._height = o.h;&lt;/p&gt;

&lt;p&gt;...problem solved.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I know this is an ooooooooooold post, but in response to the question raised by  &#8216;Umkaã€€ãƒ›ã‚¹ãƒ†ã‚£ãƒ³ã‚°&#8217; above, and for the sake of anyone stumbling across this post like I just did&#8230; the problem is the autoSize property.</p>
<p>A html textfield, with <a> tags styled by a Flash StyleSheet, jumps around when rolling over said </a><a> tags&#8230; only when this text field is multilined, with a set width, and set to autoSize.</a></p>
<p>The solution is&#8230; after you&#8217;ve populated that html textfield (ie. set its htmlText property), capture the dimensions of said textfield, turn off autoSize, then set said textfields _width and _height properties.</p>
<p>Eg, after setting the htmlText property&#8230;</p>
<p>/*<br />
SNAPSHOT&#8230;<br />
<em>/<br />
var o:Object = { w:Math.ceil(txt._width), h:Math.ceil(txt._height) };<br />
/</em><br />
TURN OFF AUTOSIZE&#8230;<br />
<em>/<br />
txt.autoSize = false;<br />
/</em><br />
SET THE <em>WIDTH AND _HEIGHT&#8230;<br />
*/<br />
txt.</em>width = o.w;<br />
txt._height = o.h;</p>
<p>&#8230;problem solved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaime</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-137952</link>
		<dc:creator>Jaime</dc:creator>
		<pubDate>Wed, 03 Dec 2008 18:04:38 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-137952</guid>
		<description>&lt;p&gt;Thanks it works .&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks it works .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davey&#8217;s Flash Blog  &#187; Blog Archive   &#187; Internationalization (Localization) of Flash Applications with Flash 8 (AS 2)</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-116239</link>
		<dc:creator>Davey&#8217;s Flash Blog  &#187; Blog Archive   &#187; Internationalization (Localization) of Flash Applications with Flash 8 (AS 2)</dc:creator>
		<pubDate>Wed, 12 Dec 2007 17:39:25 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-116239</guid>
		<description>&lt;p&gt;[...] apanese and am working on Greek and Chinese. Notable Links: Flash and CSS: http://www.blog.lessrain.com/?p=98 http://www.connectedpixel.com/blog/fonts/cssembedding Flash Shared Font Lib [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] apanese and am working on Greek and Chinese. Notable Links: Flash and CSS: <a href="http://www.blog.lessrain.com/?p=98" rel="nofollow">http://www.blog.lessrain.com/?p=98</a> <a href="http://www.connectedpixel.com/blog/fonts/cssembedding" rel="nofollow">http://www.connectedpixel.com/blog/fonts/cssembedding</a> Flash Shared Font Lib [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LutinCapucheBlog &#187;</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-39516</link>
		<dc:creator>LutinCapucheBlog &#187;</dc:creator>
		<pubDate>Thu, 01 Feb 2007 20:56:32 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-39516</guid>
		<description>&lt;p&gt;[...] t en classes Un article intéressant pour l&#8217;extension de la classe : lessrain           Entry Filed under: Flash AS2                Leave a Comment                                 Name  Required          Email [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] t en classes Un article intéressant pour l&#8217;extension de la classe : lessrain           Entry Filed under: Flash AS2                Leave a Comment                                 Name  Required          Email [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ulf</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-29671</link>
		<dc:creator>ulf</dc:creator>
		<pubDate>Thu, 28 Sep 2006 15:20:32 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-29671</guid>
		<description>&lt;p&gt;ok guys! Leading works fine! But what about setting the letterSpacing to floating point (noninteger) values? TextFormat won't work while using stylesheets and setting the letter-spacing in the stylesheet doesn't allow you to set the value to floating point (noninteger) values (such as 2.6). Any Ideas?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>ok guys! Leading works fine! But what about setting the letterSpacing to floating point (noninteger) values? TextFormat won&#8217;t work while using stylesheets and setting the letter-spacing in the stylesheet doesn&#8217;t allow you to set the value to floating point (noninteger) values (such as 2.6). Any Ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jonathan</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-184</link>
		<dc:creator>jonathan</dc:creator>
		<pubDate>Wed, 31 Aug 2005 01:28:57 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-184</guid>
		<description>&lt;p&gt;Passing the negative leading in constructor does work - though I am encountering a strange effect - the second and or 3rd lines disappear - though the text height measures as if they were there. Same in test publishing and in html page. Any one else have this issue? (Mac OsX, v7.24 of plugin)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Passing the negative leading in constructor does work - though I am encountering a strange effect - the second and or 3rd lines disappear - though the text height measures as if they were there. Same in test publishing and in html page. Any one else have this issue? (Mac OsX, v7.24 of plugin)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cedric</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-96</link>
		<dc:creator>cedric</dc:creator>
		<pubDate>Thu, 04 Aug 2005 14:58:46 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-96</guid>
		<description>&lt;p&gt;another way to set negative leading :
try passing all the args in the Constructor function... &lt;/p&gt;

&lt;p&gt;//  font:String, size:Number, color:Number, bold:Boolean, italic:Boolean, underline:Boolean, url:String, target:String, align:String, leftMargin:Number, rightMargin:Number, indent:Number, leading:Number
var fmt = new TextFormat("Arial", 20, 0xff0000, false, false, false, "","" , "left", 0, 0,0 , -12);&lt;/p&gt;

&lt;p&gt;leading WILL WORK (crazy thing!!!) 
I suspect Macromedia to have a 'Math.abs()' somewhere it shouldn't ;)
like in the setter method of TextFormat's leading property&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>another way to set negative leading :<br />
try passing all the args in the Constructor function&#8230; </p>
<p>//  font:String, size:Number, color:Number, bold:Boolean, italic:Boolean, underline:Boolean, url:String, target:String, align:String, leftMargin:Number, rightMargin:Number, indent:Number, leading:Number<br />
var fmt = new TextFormat(&#8221;Arial&#8221;, 20, 0xff0000, false, false, false, &#8220;&#8221;,&#8221;" , &#8220;left&#8221;, 0, 0,0 , -12);</p>
<p>leading WILL WORK (crazy thing!!!)<br />
I suspect Macromedia to have a &#8216;Math.abs()&#8217; somewhere it shouldn&#8217;t <img src='http://www.blog.lessrain.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> like in the setter method of TextFormat&#8217;s leading property</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umkaã€€ãƒ›ã‚¹ãƒ†ã‚£ãƒ³ã‚°</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-90</link>
		<dc:creator>Umkaã€€ãƒ›ã‚¹ãƒ†ã‚£ãƒ³ã‚°</dc:creator>
		<pubDate>Fri, 29 Jul 2005 11:10:40 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-90</guid>
		<description>&lt;p&gt;I am not sure if it is a fflash bug or not, but when you load external html tagged file and external css is applied, whe links look ok until you rollover.&lt;/p&gt;

&lt;p&gt;When you rollover the lines of text change there position which makes an unpleasent effect.&lt;/p&gt;

&lt;p&gt;you can see at links - www.ai-web-hosting.com/links-j.html
Any ideas how to fix it?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I am not sure if it is a fflash bug or not, but when you load external html tagged file and external css is applied, whe links look ok until you rollover.</p>
<p>When you rollover the lines of text change there position which makes an unpleasent effect.</p>
<p>you can see at links - <a href="http://www.ai-web-hosting.com/links-j.html" rel="nofollow">http://www.ai-web-hosting.com/links-j.html</a><br />
Any ideas how to fix it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FranÃ§ois</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-82</link>
		<dc:creator>FranÃ§ois</dc:creator>
		<pubDate>Wed, 13 Jul 2005 08:41:22 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-82</guid>
		<description>&lt;p&gt;Did you know that you can access to ALL Textformat properties directly in your styled text? Ok, it's not in the CSS, but you can write this:&lt;/p&gt;

&lt;p&gt;&#60;textformat leading='6'&#62;&#60;p class='bodytext'&#62;My text&#60;/p&#62;&#60;/textformat&#62;&#60;/pre&#62;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Did you know that you can access to ALL Textformat properties directly in your styled text? Ok, it&#8217;s not in the CSS, but you can write this:</p>
<p>&lt;textformat leading=&#8217;6&#8242;&gt;&lt;p class=&#8217;bodytext&#8217;&gt;My text&lt;/p&gt;&lt;/textformat&gt;&lt;/pre&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-47</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Tue, 14 Jun 2005 09:19:31 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-47</guid>
		<description>&lt;p&gt;I found yet another annoying bug: attributes in the CSS file must be followed immediately by the colon.&lt;/p&gt;

&lt;p&gt;this works
color: #000000;&lt;/p&gt;

&lt;p&gt;...this doesn't
color : #000000; &lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I found yet another annoying bug: attributes in the CSS file must be followed immediately by the colon.</p>
<p>this works<br />
color: #000000;</p>
<p>&#8230;this doesn&#8217;t<br />
color : #000000; </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-46</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Mon, 13 Jun 2005 16:22:04 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-46</guid>
		<description>&lt;p&gt;I had to add a fix to the class to address a well known bug in Flash ignoring negative leadings.
See &lt;a href="http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001843.html"&gt;live docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can work around this bug by setting the leading in the TextFormat constructor. See comments in the class code...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I had to add a fix to the class to address a well known bug in Flash ignoring negative leadings.<br />
See <a href="http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001843.html">live docs</a></p>
<p>You can work around this bug by setting the leading in the TextFormat constructor. See comments in the class code&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Playfool &#187; Extending CSS in Flash</title>
		<link>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-45</link>
		<dc:creator>Playfool &#187; Extending CSS in Flash</dc:creator>
		<pubDate>Mon, 13 Jun 2005 12:24:45 +0000</pubDate>
		<guid>http://www.blog.lessrain.com/flash-extending-css-capability/#comment-45</guid>
		<description>&lt;p&gt;[...] sh                I was writting my own TextField Class at work and I noticed this post on Lessrain which seems to get around the problems with you not being able to use the Css propertiers lik [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[&#8230;] sh                I was writting my own TextField Class at work and I noticed this post on Lessrain which seems to get around the problems with you not being able to use the Css propertiers lik [&#8230;]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
