<?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:blogger='http://schemas.google.com/blogger/2008' 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-22145364</id><updated>2024-09-16T03:13:54.848+02:00</updated><category term="flash"/><category term="font embedding"/><category term="mutliple fonts"/><category term="embedding"/><category term="flash css"/><category term="flash developer"/><category term="flash ide"/><category term="flash internal font name"/><category term="fonts"/><category term="shared library"/><category term="textfield"/><title type='text'>Iason van der Meulen Flash Development Blog</title><subtitle type='html'>In this blog you can see and read my newest flash and design creations. And some interesting information about other peoples work.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://myflashdev.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://myflashdev.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>I van der Meulen</name><uri>http://www.blogger.com/profile/00644734699427354216</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEvstslOw7c4JBDd6fWPXehqhVjM2SDjOSX2tFw-rp7rgzpwqqlDt9uaOMDasxjYfPa_J-qTL3wIInoA-jDbmJCH1JLDPnNhtMWsEE0nWlvOD5CxxbRwHPhvt6JfUuQ/s220/DSCN1924.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-22145364.post-8828542320762700821</id><published>2011-04-04T16:53:00.011+02:00</published><updated>2011-04-04T17:04:59.658+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="flash"/><category scheme="http://www.blogger.com/atom/ns#" term="flash css"/><category scheme="http://www.blogger.com/atom/ns#" term="flash ide"/><category scheme="http://www.blogger.com/atom/ns#" term="flash internal font name"/><category scheme="http://www.blogger.com/atom/ns#" term="font embedding"/><category scheme="http://www.blogger.com/atom/ns#" term="fonts"/><category scheme="http://www.blogger.com/atom/ns#" term="mutliple fonts"/><category scheme="http://www.blogger.com/atom/ns#" term="shared library"/><title type='text'>How to us the shared library technique to embed fonts in your project?</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;In my last post I did explain how to use the EMBED method to use multiple fonts in just one text field. This method works a bit different, it uses a combination of embedded fonts and style sheets.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;This is a quit simple technique to apply to any project. When you&#39;re creating new fonts in the library you need to give them there original name instead of using&amp;nbsp; Font1, Font2 etc. It&#39;s really annoying for other developers when the fonts aren&#39;t named properly in the library. So give the fonts a proper name, it saves you and your colleagues a lot of time.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;So first thing we are going tot do is create a font.fla. where we are going to put in all our font files.On the stage you are going to put text fields with all the fonts you want to use.&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-fMn74xA0qHc/TZnVhxaetSI/AAAAAAAADt0/G0VUMcOmDbQ/s1600/textfields.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;br /&gt;
&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-fMn74xA0qHc/TZnVhxaetSI/AAAAAAAADt0/G0VUMcOmDbQ/s1600/textfields.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;http://1.bp.blogspot.com/-fMn74xA0qHc/TZnVhxaetSI/AAAAAAAADt0/G0VUMcOmDbQ/s400/textfields.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;But before we&#39;re going to do that we are first going to put the fonts in to the library. See picture below.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-E3w10wsZu2M/TZnVkOpcBxI/AAAAAAAADuQ/SfB7tm5Gn6o/s1600/library-fonts.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;168&quot; src=&quot;http://4.bp.blogspot.com/-E3w10wsZu2M/TZnVkOpcBxI/AAAAAAAADuQ/SfB7tm5Gn6o/s400/library-fonts.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-4vWS5SgJncw/TZnViDbdvdI/AAAAAAAADt4/2g8gq0JA604/s1600/add-font.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-4vWS5SgJncw/TZnViDbdvdI/AAAAAAAADt4/2g8gq0JA604/s1600/add-font.png&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;You can add fonts to the library by clicking on the small triangle in the library panel. See picture on the right side. You now created a new font in your library. &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Right click on the font in your library. You should see then the same panel as in the picture below. Select the font give it the same name as in the drop down and also include the style of the font. This is so you know witch font it is and witch style it has. After you did that, select all the characters you want to embed. You can include the characters you want by clicking on the check boxes under “Character ranges”.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-DXEZoTcekpY/TZnViuKQGSI/AAAAAAAADuA/rtkKammrGDw/s1600/font-properties1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;247&quot; src=&quot;http://4.bp.blogspot.com/-DXEZoTcekpY/TZnViuKQGSI/AAAAAAAADuA/rtkKammrGDw/s400/font-properties1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;In this properties panel go to the “actionscript” tab. Check “Export for runtime sharing” and give as URL the swf name of this asset. In my case that&#39;s fonts.swf. No compile this file if everything went ok you should have a swf file in the output folder of your fla.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-g9-YcpX7_mM/TZnVjZZNqfI/AAAAAAAADuE/rfaMEl_mfvI/s1600/font-properties2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;http://2.bp.blogspot.com/-g9-YcpX7_mM/TZnVjZZNqfI/AAAAAAAADuE/rfaMEl_mfvI/s400/font-properties2.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The next step is very easy create a new fla file. I called my fla file fontTest.fla. So what you are going to do is copy the fonts from the font.fla library to this new fla file you just have created. Now create a text field as in the picture shown below.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-fMn74xA0qHc/TZnVhxaetSI/AAAAAAAADt0/G0VUMcOmDbQ/s1600/textfields.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;298&quot; src=&quot;http://1.bp.blogspot.com/-fMn74xA0qHc/TZnVhxaetSI/AAAAAAAADt0/G0VUMcOmDbQ/s400/textfields.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;In properties panel select the font from the library. A library font is always marked with a (*).&amp;nbsp; Select the library font you want to use for that particular text field. Do one final check to see if the fonts are ready to be imported.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-bDo7XxgRxfQ/TZnVjk6n8qI/AAAAAAAADuI/FZ-cfXOtWdQ/s1600/font-propertiespanel.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;http://4.bp.blogspot.com/-bDo7XxgRxfQ/TZnVjk6n8qI/AAAAAAAADuI/FZ-cfXOtWdQ/s400/font-propertiespanel.png&quot; width=&quot;216&quot; /&gt;&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Go to your library and right click one the font, go to properties, select the “actionscript” tab and check if the check box “import for runtime sharing” is checked.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-JOE9ZJS1-R4/TZnVjyeUXsI/AAAAAAAADuM/puYlWSGPIBc/s1600/import-runtimesharing.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;http://1.bp.blogspot.com/-JOE9ZJS1-R4/TZnVjyeUXsI/AAAAAAAADuM/puYlWSGPIBc/s400/import-runtimesharing.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;In order to use a different font in the same text field we have to use a style sheet in flash and point to this particular font. To make this work you need to have the internal font name, you can retrieve this by adding a text field tot the stage and set library font you want. After you did that you click on the menu item in the flash IDE “commands” and select the option “Copy Font Name for Actioscript”. Now you have the internal font name on the clipboard.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: orange; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: orange; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;What I didn&#39;t mention was that you have to give the just placed text field on the stage a&amp;nbsp; instance name. I named my text field “tf”.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;So now create a new class named MainIDE.as place this class in the same folder as your fla file and add the following code:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
MainIDE.as&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #3f3f3f; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;package&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.display.MovieClip;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.text.AntiAliasType;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.text.StyleSheet;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.text.TextField;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.text.TextFieldAutoSize;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* @author iason.vandermeulen&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class MainIDE extends MovieClip&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public var tf : TextField;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; private var _css : StyleSheet;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public function MainIDE()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this._css = new StyleSheet();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this._css.parseCSS(&quot;strong{color:#000000; font-family:&lt;b&gt;Univers LT Std 57 Cn&lt;/b&gt;; fontSize:14; leading:0px; display:inline;}&quot;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.tf.styleSheet = this._css;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.tf.embedFonts = true;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.tf.antiAliasType = AntiAliasType.ADVANCED;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.tf.autoSize = TextFieldAutoSize.LEFT;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; this.tf.htmlText = &quot;&amp;lt;strong&amp;gt;Just a test&amp;lt;/strong&amp;gt; for a test example.&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;} &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Now look at the line where the css style is defined and where the font name is bold. There where it is bold you will paste your just copied internal font name. Now it&#39;s going to use this particular font where ever it finds a &amp;lt;strong&amp;gt; html tag in the text.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;In order to compile this example you need to a sign the MainIDE.as file in the document root of your fla file.&amp;nbsp; If you don&#39;t know how to do that, search on google!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;See the result in the image below after compiling&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-oZyS6uG1R5c/TZnVkjMxGII/AAAAAAAADuY/yby3O46WiyI/s1600/test.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;321&quot; src=&quot;http://2.bp.blogspot.com/-oZyS6uG1R5c/TZnVkjMxGII/AAAAAAAADuY/yby3O46WiyI/s400/test.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Created by Iason van der Meulen&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myflashdev.blogspot.com/feeds/8828542320762700821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/22145364/8828542320762700821' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/8828542320762700821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/8828542320762700821'/><link rel='alternate' type='text/html' href='http://myflashdev.blogspot.com/2011/04/how-to-us-shared-library-technique-to.html' title='How to us the shared library technique to embed fonts in your project?'/><author><name>I van der Meulen</name><uri>http://www.blogger.com/profile/00644734699427354216</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEvstslOw7c4JBDd6fWPXehqhVjM2SDjOSX2tFw-rp7rgzpwqqlDt9uaOMDasxjYfPa_J-qTL3wIInoA-jDbmJCH1JLDPnNhtMWsEE0nWlvOD5CxxbRwHPhvt6JfUuQ/s220/DSCN1924.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-fMn74xA0qHc/TZnVhxaetSI/AAAAAAAADt0/G0VUMcOmDbQ/s72-c/textfields.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-22145364.post-3066759433401927398</id><published>2011-03-31T11:27:00.000+02:00</published><updated>2011-03-31T11:27:28.035+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="embedding"/><category scheme="http://www.blogger.com/atom/ns#" term="flash"/><category scheme="http://www.blogger.com/atom/ns#" term="flash developer"/><category scheme="http://www.blogger.com/atom/ns#" term="font embedding"/><category scheme="http://www.blogger.com/atom/ns#" term="mutliple fonts"/><category scheme="http://www.blogger.com/atom/ns#" term="textfield"/><title type='text'>Also having this problem with multiple fonts in flash?</title><content type='html'>&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;I always had issue’s loading multiple fonts in to flash, so this time I toughed let’s take a bit more time to understand the problem.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The problem I encounter most is: When you have to embed multiple fonts into one text field. For example you have one font that’s called “Universal LT Std Bold Cn” and “Universal LT Std Cn”. Both don’t have font styles except the regular font style. So no bold or anything else is available to you. That’s why there’re different fonts for different styles in the first place.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;There are two ways to deal with this problem. One of them is using the shared runtime technique the other technique is done with the EMBED code in actionscript. Depending on how your project is setup, one off the two probably suites you best.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;I prefer the EMBED method. First of all, most of the time I don’t work in the Flash IDE but in a actionscript editor like FDT. The EMBED method is easier to use in combination with other classes I think and probably takes less time to implement.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;However there is one &lt;b style=&quot;color: orange;&quot;&gt;disadvantage &lt;/b&gt;to this technique. You can’t us it in combination with the IDE (compiling with the IDE) unless you add the complete Flex SDK to your IDE library path, by doing this file size will grow.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: orange; font-family: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;In this post I am going to explain the EMBED technique. In my next post I will explain the import shared library technique.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;First of all you have to create a font folder where you will put your fonts, so the files can be embedded. We also do this because we use SVN and by adding this folder to SVN all other developers don’t have to search for the used fonts in this particular project.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Your project folder should look like this, I know it’s not well organized, swf and fla files should be separated. But sins this project is so small I think it isn’t necessary to put them all in their own folder.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-Yt-e-llublo/TZRDgUIKw8I/AAAAAAAADts/uCwMZM56d68/s1600/picture1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;245&quot; src=&quot;http://4.bp.blogspot.com/-Yt-e-llublo/TZRDgUIKw8I/AAAAAAAADts/uCwMZM56d68/s400/picture1.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;project folder structure&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;span style=&quot;font-size: small;&quot;&gt;So, next step is to write your own font class. To keep the fonts and the font classes organized we put them all in the font folder.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;As you can see I have created this “UniversalLtStd.as” class. In this class you creat the following:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;package fonts&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.text.Font;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @author iason.vandermeulen&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class UniversalLtStd&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static const NAME : String = &quot;UniversLTStd&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*&amp;nbsp;&amp;nbsp;&amp;nbsp; Flex SDK 3.* embed syntax&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Embed(&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * source=&#39;UniversLTStd-Cn.otf&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * fontName=&#39;UniversLTStd&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * fontWeight=&#39;regular&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * fontStyle=&#39;57 Condensed&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * unicodeRange=&#39;U+0000-U+007F,U+0080-U+00FF&#39;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * )]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Fleks SDK 4.* embed syntax&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Embed(&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; source=&quot;UniversLTStd-Cn.otf&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; embedAsCFF=&quot;false&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontName=&quot;UniversLTStd&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontWeight=&#39;regular&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mimeType=&quot;application/x-font&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unicodeRange=&#39;U+0000-U+007F,U+0080-U+00FF&#39;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static const _regularClass : Class;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Embed(&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; source=&quot;UniversLTStd-BoldCn.otf&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; embedAsCFF=&quot;false&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontName=&quot;UniversLTStd&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fontWeight=&#39;bold&#39;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mimeType=&quot;application/x-font&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unicodeRange=&#39;U+0000-U+007F,U+0080-U+00FF&#39;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )]&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static const _boldClass : Class;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static function register() : void&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Font.registerFont(_regularClass);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Font.registerFont(_boldClass);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;And this is how my main class looks like&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #666666; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;package&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;{&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import fonts.UniversalLtStd;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.display.MovieClip;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.text.AntiAliasType;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.text.TextField;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.text.TextFieldAutoSize;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; import flash.text.TextFormat;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * @author iason.vandermeulen&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class MainFDT extends MovieClip&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private var _tf : TextField;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; private var _format : TextFormat;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public function MainFDT()&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._format = new TextFormat();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._format.font = UniversalLtStd.NAME;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._format.size = 12;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._format.color = 0x0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf = new TextField();&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf.defaultTextFormat = this._format;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf.embedFonts = true;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf.antiAliasType = AntiAliasType.ADVANCED;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf.autoSize = TextFieldAutoSize.LEFT;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf.x = 25;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf.y = 25;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf.height = 200;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf.width = 400;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf.border = true;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._tf.htmlText = &quot;&amp;lt;b&amp;gt;This is a test&amp;lt;/b&amp;gt; and it seems to be working&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.addChild(this._tf);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;background-color: #444444; font-family: inherit;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;}&lt;br /&gt;
&lt;span style=&quot;background-color: #444444;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
In order to compile this you have to create a launche file in FDT or FB and target the mainFDT class en set the output file to what ever you&#39;d like to call it. My output file is main.swf, most logical.&lt;div class=&quot;blogger-post-footer&quot;&gt;Created by Iason van der Meulen&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myflashdev.blogspot.com/feeds/3066759433401927398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/22145364/3066759433401927398' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/3066759433401927398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/3066759433401927398'/><link rel='alternate' type='text/html' href='http://myflashdev.blogspot.com/2011/03/also-having-this-problem-with-multiple.html' title='Also having this problem with multiple fonts in flash?'/><author><name>I van der Meulen</name><uri>http://www.blogger.com/profile/00644734699427354216</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEvstslOw7c4JBDd6fWPXehqhVjM2SDjOSX2tFw-rp7rgzpwqqlDt9uaOMDasxjYfPa_J-qTL3wIInoA-jDbmJCH1JLDPnNhtMWsEE0nWlvOD5CxxbRwHPhvt6JfUuQ/s220/DSCN1924.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-Yt-e-llublo/TZRDgUIKw8I/AAAAAAAADts/uCwMZM56d68/s72-c/picture1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-22145364.post-230767411483421835</id><published>2011-03-23T21:11:00.001+01:00</published><updated>2011-04-04T17:55:11.451+02:00</updated><title type='text'>So lets start with a project that just has bin finished</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Recently I have worked on a Rexona campaign with my colleges, called Miss Rexona Beauty. It was a project that was going to run on &lt;a href=&quot;http://www.hyves.nl/&quot;&gt;Hyves &lt;/a&gt;(a social network website that&#39;s being used by a lot of people in the Netherlands, you could compare it with Facebook only smaller).&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;It was a cool project to do because I learned some new things for example how to make a fisheye effect and apply this to a image. This effect is also called in development terms a &quot;Displacement Map Filter&quot;. I had never done this before so it was a challenge to see how it works and how to apply it.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;If you are interested in how you can make a fisheye effect with the displacement map filter then visit the website of &lt;a href=&quot;http://www.emanueleferonato.com/2007/12/03/understanding-flash-displacement-map-filter/&quot;&gt;Emanuele Feronato&lt;/a&gt; it helped me a lot to understand how the filter works.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;The complete project has bin created with the Temple library and Gaia. For more information about the Temple library visit this &lt;a href=&quot;http://code.google.com/p/templelibrary/&quot;&gt;website&lt;/a&gt; you will find documentation and examples there. For the Gaia Framework visit this &lt;a href=&quot;http://www.gaiaflashframework.com/&quot;&gt;website&lt;/a&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://lh5.googleusercontent.com/-Dj42OysFFkQ/TYpSxrTgXgI/AAAAAAAADtk/_T1N--KJcv4/s1600/miss-rexona.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;325&quot; src=&quot;https://lh5.googleusercontent.com/-Dj42OysFFkQ/TYpSxrTgXgI/AAAAAAAADtk/_T1N--KJcv4/s400/miss-rexona.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Miss Rexona Beauty by MediaMonks&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Created by Iason van der Meulen&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myflashdev.blogspot.com/feeds/230767411483421835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/22145364/230767411483421835' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/230767411483421835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/230767411483421835'/><link rel='alternate' type='text/html' href='http://myflashdev.blogspot.com/2011/03/so-lets-start-with-project-that-just.html' title='So lets start with a project that just has bin finished'/><author><name>I van der Meulen</name><uri>http://www.blogger.com/profile/00644734699427354216</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEvstslOw7c4JBDd6fWPXehqhVjM2SDjOSX2tFw-rp7rgzpwqqlDt9uaOMDasxjYfPa_J-qTL3wIInoA-jDbmJCH1JLDPnNhtMWsEE0nWlvOD5CxxbRwHPhvt6JfUuQ/s220/DSCN1924.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://lh5.googleusercontent.com/-Dj42OysFFkQ/TYpSxrTgXgI/AAAAAAAADtk/_T1N--KJcv4/s72-c/miss-rexona.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-22145364.post-5989040621009744759</id><published>2011-03-23T20:24:00.000+01:00</published><updated>2011-03-23T20:24:32.973+01:00</updated><title type='text'>New Job new start</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Sinds 1 december I am working for a company called MediaMonks it&#39;s stationed in Hilversum the Netherlands and in Londen. It&#39;s a company with many professionals and many disciplines.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;For example the flash developers like my self, game developers, Ipad and Android developers, front-end people, 3d animators and modellers, back-end programmers, designers etc. etc. and many more.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; The nice thing of this company is that it can do almost everything in house, so there is a lot of knowledge in this company to learn form. Besides that, it&#39;s a great company to work for they also organise awesome parties witch is nice to and is good for the spirit on the working flour.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;I am proud to be Monk :) &lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Created by Iason van der Meulen&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myflashdev.blogspot.com/feeds/5989040621009744759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/22145364/5989040621009744759' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/5989040621009744759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/5989040621009744759'/><link rel='alternate' type='text/html' href='http://myflashdev.blogspot.com/2011/03/new-job-new-start.html' title='New Job new start'/><author><name>I van der Meulen</name><uri>http://www.blogger.com/profile/00644734699427354216</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEvstslOw7c4JBDd6fWPXehqhVjM2SDjOSX2tFw-rp7rgzpwqqlDt9uaOMDasxjYfPa_J-qTL3wIInoA-jDbmJCH1JLDPnNhtMWsEE0nWlvOD5CxxbRwHPhvt6JfUuQ/s220/DSCN1924.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-22145364.post-4011999790014535762</id><published>2009-11-07T14:43:00.000+01:00</published><updated>2009-11-07T14:43:21.629+01:00</updated><title type='text'>Lets start blogging again ...</title><content type='html'>As you can see I haven&#39;t bin very active&amp;nbsp;in the past 3 years. However I would like to continue my blog with some new posts. At the moment I am really in to AS3 OOP (Object Oriented Programming). &lt;br /&gt;
It still is kinda new for me and still learning every day.&lt;br /&gt;
In my upcoming post I am going to start with some basic OOP and show you how it works.&amp;nbsp;I&#39;ll show you how to&amp;nbsp;use a XML file in your flash application with AS3.&lt;br /&gt;
&lt;br /&gt;
Hope to see you people back soon...&lt;div class=&quot;blogger-post-footer&quot;&gt;Created by Iason van der Meulen&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myflashdev.blogspot.com/feeds/4011999790014535762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/22145364/4011999790014535762' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/4011999790014535762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/4011999790014535762'/><link rel='alternate' type='text/html' href='http://myflashdev.blogspot.com/2009/11/lets-start-blogging-again.html' title='Lets start blogging again ...'/><author><name>I van der Meulen</name><uri>http://www.blogger.com/profile/00644734699427354216</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEvstslOw7c4JBDd6fWPXehqhVjM2SDjOSX2tFw-rp7rgzpwqqlDt9uaOMDasxjYfPa_J-qTL3wIInoA-jDbmJCH1JLDPnNhtMWsEE0nWlvOD5CxxbRwHPhvt6JfUuQ/s220/DSCN1924.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-22145364.post-113978929963356043</id><published>2006-02-13T01:04:00.000+01:00</published><updated>2006-02-22T18:21:04.063+01:00</updated><title type='text'>PHP Class for MySQL queries</title><content type='html'>&lt;div class=&quot;tekst&quot;&gt;&lt;b&gt;In this tutorial I am going to explain how a php class basically works. Some knowledge of PHP is required to really understand how a class works.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. Creating a new PHP document&lt;br /&gt;2. Writing the PHP code2.1 Creating the class&lt;br /&gt;3. Communicate with the class&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Creating a new document&lt;/b&gt;&lt;br /&gt;First of all we have to create three new documents, open notepad or any text editor. This could also be dreamweaver or any other web page software.When you have opened notepad don&#39;t start typing, first save the file with the name queryClass.php, showQuery.php and connex.php. Don&#39;t forget the extension else you will get an txt file instead of an PHP file.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Writing the PHP code&lt;/b&gt;&lt;br /&gt;Now the few things you must know are, that &quot;$anyname&quot; stands for a variable, we can store information init. We also can use variables inside of an class &quot;$this-&gt;anyname&quot;, you could also send a variable back to the page the executed the function in the class. If you don&#39;t really understand what I mean check out the examples later.&lt;br /&gt;&lt;br /&gt;&lt;!-- First code, connection !--&gt;&lt;br /&gt;&lt;b&gt;creating a connection with the mysql server&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;//Save this in the file connex.php&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$connection = mysql_connect(&#39;localhost&#39;,&lt;br /&gt;&#39;mysql_login_here&#39;,&lt;br /&gt;&#39;mysql_password_here&#39;)&lt;br /&gt;or die (&quot;Couldn&#39;t connect to mysql server&quot;);&lt;br /&gt;$database = mysql_select_db(&#39;your datbase&#39;);&lt;br /&gt;or die (&quot;Couldn&#39;t connect to database&quot;);&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--Second code, Class !--&gt;&lt;br /&gt;&lt;b&gt;Creating the Class&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;//Save this in the file queryClass.php&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;Class querySelect {&lt;br /&gt;include(&#39;connex.php&#39;);&lt;br /&gt;var $id;&lt;br /&gt;var $subject;&lt;br /&gt;var $text;&lt;br /&gt;var $table;&lt;br /&gt;&lt;br /&gt;function queryOnId(){&lt;br /&gt;$query = &quot;SELECT * FROM $this-&amp;gt;$table WHERE id=$this-&amp;gt;id&quot;;&lt;br /&gt;$result = mysql_query($query);&lt;br /&gt;or die (&quot;Query error&quot;);&lt;br /&gt;if(empty($result)){&lt;br /&gt;echo &quot;Ther where no results&quot;;&lt;br /&gt;}else{&lt;br /&gt;&lt;br /&gt;$this-&amp;gt;row_set = mysql_fetch_assoc($result);&lt;br /&gt;$this-&amp;gt;row_set[&#39;subject&#39;];&lt;br /&gt;$this-&amp;gt;row_set[&#39;text&#39;];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql_free_result($result);&lt;br /&gt;mysql_close($connection); &lt;br /&gt;$this-&amp;gt;done = &quot;true&quot;;&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;!--Third code, Queryshow !--&gt;&lt;br /&gt;&lt;b&gt;Showing the query&lt;/b&gt;&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;//Save this in the file showQuery.php&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;include(&#39;queryClass.php&#39;);&lt;br /&gt;$querySelect = new querySelect();&lt;br /&gt;$querySelect-&gt;id = $_POST[&#39;id&#39;];&lt;br /&gt;$querySelect-&gt;queryOnId();&lt;br /&gt;$done = $querySelect-&gt;done;&lt;br /&gt;$row_set = $querySelect-&gt;row_set;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;MyQuery&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;if(isset($done)){&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php while($row_set){ ?&amp;gt;&lt;br /&gt;  &amp;lt;table width=&amp;quot;600&amp;quot; border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;  &amp;lt;tr&amp;gt;&lt;br /&gt;  &amp;lt;td&amp;gt;&amp;lt;?php echo &amp;quot;$row_set[&#39;subject&#39;]&amp;quot;;?&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;  &amp;lt;/tr&amp;gt;&lt;br /&gt;  &amp;lt;tr&amp;gt;&lt;br /&gt;  &amp;lt;td&amp;gt;&amp;lt;?php echo &amp;quot;$row_set[&#39;text&#39;]&amp;quot;;?&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;  &amp;lt;/tr&amp;gt;&lt;br /&gt;  &amp;lt;/table&amp;gt;&lt;br /&gt;&amp;lt;?php } ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Created by Iason van der Meulen&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myflashdev.blogspot.com/feeds/113978929963356043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/22145364/113978929963356043' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/113978929963356043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/113978929963356043'/><link rel='alternate' type='text/html' href='http://myflashdev.blogspot.com/2006/02/php-class-for-mysql-queries.html' title='PHP Class for MySQL queries'/><author><name>I van der Meulen</name><uri>http://www.blogger.com/profile/00644734699427354216</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEvstslOw7c4JBDd6fWPXehqhVjM2SDjOSX2tFw-rp7rgzpwqqlDt9uaOMDasxjYfPa_J-qTL3wIInoA-jDbmJCH1JLDPnNhtMWsEE0nWlvOD5CxxbRwHPhvt6JfUuQ/s220/DSCN1924.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-22145364.post-113942322359385819</id><published>2006-02-08T18:40:00.000+01:00</published><updated>2006-02-15T18:23:21.196+01:00</updated><title type='text'>Use XML content in Flash8</title><content type='html'>&lt;div class=&quot;tekst&quot;&gt;&lt;br /&gt;In this small tutorial I am going to show you how to use XML content in flash.&lt;br /&gt;&lt;br /&gt;Step1: Creating your own XML file&lt;br /&gt;Step2: Creating the action-script code in Flash&lt;br /&gt;Step3: Place the content in a dynamic text box&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Creating you own XML file&lt;/b&gt;&lt;br /&gt;You can create an XML file in notepad or any other text editor, notepad for example.&lt;br /&gt;&lt;br /&gt;In notepad place the following code.&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&amp;gt;&lt;br /&gt;&amp;lt;mytext&amp;gt;&lt;br /&gt;&amp;lt;message&amp;gt;&lt;br /&gt;&amp;lt;subject&amp;gt;This is a tutorial about XML&amp;lt;/subject&amp;gt;&lt;br /&gt;&amp;lt;text&amp;gt;Here you can place you own text&amp;lt;/text&amp;gt;&lt;br /&gt;&amp;lt;/message&amp;gt;&lt;br /&gt;&amp;lt;/mytext&amp;gt;&lt;/div&gt;now save the file with the name mytext and don&#39;t forget the extension .xml else you will create a txt file instead of an XML file.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Creating the action script code in Flash&lt;/b&gt;&lt;br /&gt;No we are going to create a new flash document. Open flash, en create a new file before you are going to start and add action-script to the flash document save the file in the same directory where you saved the XML file.&lt;br /&gt;&lt;a href=&quot;http://photos1.blogger.com/blogger/321/2249/1600/firstframe.jpg&quot;&gt;&lt;br /&gt;&lt;img style=&quot;FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 174px; CURSOR: hand; HEIGHT: 138px&quot; height=&quot;134&quot; alt=&quot;&quot; src=&quot;http://photos1.blogger.com/blogger/321/2249/320/firstframe.jpg&quot; width=&quot;216&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Now go to the first frame in the time line, after that select the text box tool from the tool menu on the left.&lt;br /&gt;&lt;br /&gt;Draw two text box fields on the stage, one will be for the subject and the other will be for the text.&lt;br /&gt;You can make the one for the text higher so more text will appear at once.&lt;br /&gt;&lt;br /&gt;Select the first text box and go to properties as shown in the image below, you can find the properties at the bottom of the screen.&lt;br /&gt;&lt;br /&gt;In the properties tab, you can select a type for the text box, static text,dynamic text and input text. Select dynamic text from the drop down menu. Under the drop down menu, you have an input field, click on it a type subject. Now we have gave the subject text box the name subject.&lt;br /&gt;Do exactly the same thing for the text box for the text and give it the name mytext.&lt;br /&gt;&lt;br /&gt;In the middle of the properties window, you can see that the text box is set to Single line change that into multiline.&lt;br /&gt;&lt;a href=&quot;http://members.lycos.nl/iasonic123//img/properties.jpg&quot;&gt;&lt;br /&gt;&lt;img style=&quot;WIDTH: 379px; CURSOR: hand; HEIGHT: 155px&quot; height=&quot;155&quot; alt=&quot;&quot; src=&quot;http://members.lycos.nl/iasonic123//img/properties.jpg&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Place the content in a dynamic text box&lt;/b&gt;&lt;br /&gt;The only thing that is left, is the code in Flash. Again select the first frame in the time line, hit the F9 key on the keyboard. the action script window should appear now.&lt;br /&gt;&lt;br /&gt;put in the following code.&lt;br /&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;xmlData = new XML();&lt;br /&gt;xmlData.ignoreWhite = true;&lt;br /&gt;xmlData.onLoad = loadXML;&lt;br /&gt;xmlData.load(&quot;mytext.xml&quot;);&lt;br /&gt;&lt;br /&gt;function loadXML(loaded) {&lt;br /&gt;&lt;br /&gt;if (loaded) {&lt;br /&gt;xmlNode = this.firstChild;&lt;br /&gt;subject = [];&lt;br /&gt;text = [];&lt;br /&gt;total = xmlNode.childNodes.length;&lt;br /&gt;for (i=0; i&amp;lt;total; i++) {&lt;br /&gt;subject[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;&lt;br /&gt;text[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;&lt;br /&gt;showtext(i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;}else{&lt;br /&gt;content = &quot;file not loaded!&quot;;&lt;br /&gt;}&lt;br /&gt;}function showtext(i){&lt;br /&gt;_root.subject.text = subject[i];&lt;br /&gt;_root.mytext.text = text[i];&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;stop();&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;Created by Iason van der Meulen&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myflashdev.blogspot.com/feeds/113942322359385819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/22145364/113942322359385819' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/113942322359385819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/22145364/posts/default/113942322359385819'/><link rel='alternate' type='text/html' href='http://myflashdev.blogspot.com/2006/02/use-xml-content-in-flash8.html' title='Use XML content in Flash8'/><author><name>I van der Meulen</name><uri>http://www.blogger.com/profile/00644734699427354216</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXEvstslOw7c4JBDd6fWPXehqhVjM2SDjOSX2tFw-rp7rgzpwqqlDt9uaOMDasxjYfPa_J-qTL3wIInoA-jDbmJCH1JLDPnNhtMWsEE0nWlvOD5CxxbRwHPhvt6JfUuQ/s220/DSCN1924.JPG'/></author><thr:total>0</thr:total></entry></feed>