<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7549777464435205759</id><updated>2011-04-21T20:57:42.172-07:00</updated><title type='text'>flash|unlimited</title><subtitle type='html'>tips and tricks to go beyond flash</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flashunlimited.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7549777464435205759/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://flashunlimited.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Channa</name><uri>http://www.blogger.com/profile/04225832761635972820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.hi5.com/0005/139/452/nSPKT5139452-01.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7549777464435205759.post-2858075549682359493</id><published>2008-02-14T00:16:00.000-08:00</published><updated>2008-02-15T05:35:26.852-08:00</updated><title type='text'>device font masking and alpha!</title><content type='html'>device fonts in Flash still needs a lot of fixes. one of the most common problems:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;non-rectangular shaped masks don't work properly with device fonts&lt;/li&gt;&lt;li&gt;alpha opacity of a text field rendered with device fonts dont work&lt;/li&gt;&lt;li&gt;animated text fields with alpha values (like a fade effect) just wont work too. text field either appears with 100% alpha or not appear at all. no transperancy! :( &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;luckily, graphic filters come to save us. here's a cute trick to work around this problem. simply place your text field inside a movie clip and apply any graphic filters (such as Blur, Drop Shadow, etc) to the movie clip. this will force Flash player to cache the content of the movie clip including the text field as a bitmap. then you can mask the movie clip and change the alpha value of the movie clip and get the device font transperancy. change the filter parameters to zero so the effect actually will not distort the original text field image. (apply a Blur filter and set the blur amount to 0 will not blur the text)&lt;br /&gt;&lt;br /&gt;remember! alpha values applied from the text field's fill color wont work with device fonts. you need to change the alpha value of the movie clip either from the properties panel or &lt;span style="font-family:courier new;"&gt;_alpha&lt;/span&gt; property using ActionScript.&lt;br /&gt;&lt;br /&gt;what if you can't place your text field inside a movie clip? then you'll have to apply a graphic filter to the text field and change the _alpha value using ActionScript. simple as placing the following ActionScript lines in frame actions.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;&lt;span style="font-family:courier new;"&gt;import flash.filters.*;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;var dummyFilter:BlurFilter = new BlurFilter(0,0,0);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;myTextField.filters = new Array(dummyFilter);&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;myTextField._alpha = 50;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note: in ActionScript 3.0 alpha values are always less than one. so 50 becomes 0.5.&lt;br /&gt;&lt;br /&gt;using this method you can make masks (with non-rectangular shapes) work with device fonts and apply transperancy to device fonts, animate them with fade like effects, etc.&lt;/p&gt;&lt;p&gt;but we still need a better device font rendering from Flash. hopefully in next release! :)&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7549777464435205759-2858075549682359493?l=flashunlimited.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://flashunlimited.blogspot.com/feeds/2858075549682359493/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7549777464435205759&amp;postID=2858075549682359493' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7549777464435205759/posts/default/2858075549682359493'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7549777464435205759/posts/default/2858075549682359493'/><link rel='alternate' type='text/html' href='http://flashunlimited.blogspot.com/2008/02/device-fonts-and-alpha-opacity.html' title='device font masking and alpha!'/><author><name>Channa</name><uri>http://www.blogger.com/profile/04225832761635972820</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://photos1.hi5.com/0005/139/452/nSPKT5139452-01.jpg'/></author><thr:total>3</thr:total></entry></feed>
