<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2enclosuresfull.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-954112930831544755</atom:id><lastBuildDate>Tue, 13 Oct 2009 23:31:44 +0000</lastBuildDate><title>FLEX Examples</title><description /><link>http://flexexamples.blogspot.com/</link><managingEditor>noreply@blogger.com (Jon)</managingEditor><generator>Blogger</generator><openSearch:totalResults>598</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><media:category scheme="http://www.itunes.com/dtds/podcast-1.0.dtd">Technology/Gadgets</media:category><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><itunes:explicit>no</itunes:explicit><itunes:subtitle></itunes:subtitle><itunes:category text="Technology"><itunes:category text="Gadgets" /></itunes:category><creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by/2.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/blogspot/PmCX" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-3564792357413314977</guid><pubDate>Wed, 02 Sep 2009 03:34:00 +0000</pubDate><atom:updated>2009-09-01T20:36:05.196-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex 4 Tutorials</category><title>What is Flex 4</title><description>&lt;span class="Apple-style-span"  style="color: rgb(17, 17, 17);  line-height: 22px; font-size:14px;"&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;For the latest information on the next major release of Flex SDK and Flash Builder 4(codenamed “Gumbo”), check out the Flex 4 page on the Adobe Open Source site: &lt;/span&gt;&lt;a href="http://opensource.adobe.com/wiki/display/flexsdk/Gumbo" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;http://opensource.adobe.com/wiki/display/flexsdk/Gumbo&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;. The Flex 4 page includes the latest milestones, as well as links to the various public specifications. Also, you can check out the Flex 4 page on the Adobe Labs site at &lt;/span&gt;&lt;a href="http://labs.adobe.com/technologies/gumbo/" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;http://labs.adobe.com/technologies/gumbo/&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;To download nightly builds of the Flex 4 SDK, check out&lt;/span&gt;&lt;a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;For the latest Flex 4 documentation, check out &lt;/span&gt;&lt;a href="http://livedocs.adobe.com/flex/gumbo/langref/" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;http://livedocs.adobe.com/flex/gumbo/langref/&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt; and&lt;/span&gt;&lt;a href="http://livedocs.adobe.com/flex/gumbo/html/" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;http://livedocs.adobe.com/flex/gumbo/html/&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt; (as well as some Flex 4 beta chapters at the bottom of&lt;/span&gt;&lt;a href="http://opensource.adobe.com/wiki/display/flexsdk/Gumbo" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;http://opensource.adobe.com/wiki/display/flexsdk/Gumbo&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;).&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;If you think you’ve found a bug in the Flex SDK or in Flex Builder (any versions), you can file a bug in the public bug base at&lt;/span&gt;&lt;a href="http://bugs.adobe.com/flex/" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;http://bugs.adobe.com/flex/&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;For a list of Flex 4 specific examples on this blog, check out &lt;/span&gt;&lt;a href="http://blog.flexexamples.com/tag/gumbo/" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;http://blog.flexexamples.com/tag/gumbo/&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="color:#FFFFCC;"&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p class="alert" style="padding-top: 0.571em; padding-right: 0.786em; padding-bottom: 0.571em; padding-left: 0.786em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 160); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(229, 229, 151); border-right-color: rgb(229, 229, 151); border-bottom-color: rgb(229, 229, 151); border-left-color: rgb(229, 229, 151); background-position: initial initial; "&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt;Want a &lt;/span&gt;&lt;em style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt;free&lt;/span&gt;&lt;/em&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt; version of Flex Builder 3? Check out &lt;/span&gt;&lt;a href="https://freeriatools.adobe.com/" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt;https://freeriatools.adobe.com/&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt; and see if you qualify! Then, head over to the &lt;/span&gt;&lt;a href="https://freeriatools.adobe.com/flashbuilder4beta/" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-decoration: underline; "&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt;Adobe Flash Builder 4 Beta Extension Request&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="color:#006600;"&gt; site to request a Flash Builder 4 beta serial number. (Flash Builder 4 beta extension serial numbers are available for all licensed Flex Builder 3 customers. This includes all commercial and education serial numbers.)&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-3564792357413314977?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=5NHVNjn-7sM:zHvW58OiQQo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=5NHVNjn-7sM:zHvW58OiQQo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=5NHVNjn-7sM:zHvW58OiQQo:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=5NHVNjn-7sM:zHvW58OiQQo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=5NHVNjn-7sM:zHvW58OiQQo:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/5NHVNjn-7sM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/5NHVNjn-7sM/what-is-flex-4.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/09/what-is-flex-4.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-3896939139518959263</guid><pubDate>Wed, 02 Sep 2009 03:31:00 +0000</pubDate><atom:updated>2009-09-01T20:34:15.962-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex 4 Tutorials</category><title>Setting tab stops on RichText control in Flex 4</title><description>&lt;span class="Apple-style-span" style="color: rgb(17, 17, 17); font-size: 14px; line-height: 22px; "&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;You can also set tabs in a RichText control by setting the &lt;code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1em; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.929em; background-position: initial initial; "&gt;text&lt;/code&gt; property and using \t, as seen in the following example:&lt;/p&gt;&lt;div class="wp_syntax" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(17, 0, 0); background-color: rgb(249, 249, 249); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: silver; border-right-color: silver; border-bottom-color: silver; border-left-color: silver; overflow-x: auto; overflow-y: hidden; width: 780px; "&gt;&lt;div class="code" style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; vertical-align: top; "&gt;&lt;pre class="mxml" style="padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); overflow-x: visible; overflow-y: visible; clear: none; width: auto; float: none; font-size: 0.857em; line-height: 1.5em; white-space: pre; font-family: monospace; background-position: initial initial; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;?xml version=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"1.0"&lt;/span&gt; encoding=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"utf-8"&lt;/span&gt;?&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:application&lt;/span&gt; name=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"Spark_RichText_tabStops_test"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:fx=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"http://ns.adobe.com/mxml/2009"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:s=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"library://ns.adobe.com/flex/spark"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:mx=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"library://ns.adobe.com/flex/halo"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;       &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:controlbarcontent&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;mx:form&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;             &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;mx:formitem&lt;/span&gt; label=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"direction:"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;                 &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:dropdownlist&lt;/span&gt; id=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"dropDownList"&lt;/span&gt; requireSelection=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"true"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;                     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:dataprovider&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;                         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:arraylist&lt;/span&gt; source=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"[ltr,rtl]"&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;                     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:dataProvider&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;                 &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:DropDownList&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;             &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/mx:FormItem&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/mx:Form&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:controlBarContent&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;       &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:panel&lt;/span&gt; title=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"Spark RichText tabStops/tab test"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            horizontalCenter=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"0"&lt;/span&gt; verticalCenter=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"0"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;mx:vrule&lt;/span&gt; x=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"100"&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;mx:vrule&lt;/span&gt; x=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"200"&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;mx:vrule&lt;/span&gt; x=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"300"&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;           &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:richtext&lt;/span&gt; id=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"richTxt"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                text=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"Col 1{'\t'}Col 2{'\t'}Col 3{'\t'}Col 4"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                direction=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"{dropDownList.selectedItem}"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                tabStops=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"100 200 300"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                paragraphSpaceAfter=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"20"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                width=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"400"&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:Panel&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:Application&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;Due to popular demand, here is the “same” example in a more ActionScript friendly format:&lt;/p&gt;&lt;div class="wp_syntax" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(17, 0, 0); background-color: rgb(249, 249, 249); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: silver; border-right-color: silver; border-bottom-color: silver; border-left-color: silver; overflow-x: auto; overflow-y: hidden; width: 780px; "&gt;&lt;div class="code" style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; vertical-align: top; "&gt;&lt;pre class="mxml" style="padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); overflow-x: visible; overflow-y: visible; clear: none; width: auto; float: none; font-size: 0.857em; line-height: 1.5em; white-space: pre; font-family: monospace; background-position: initial initial; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;?xml version=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"1.0"&lt;/span&gt; encoding=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"utf-8"&lt;/span&gt;?&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:application&lt;/span&gt; name=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"Spark_RichText_tabStops_test"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:fx=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"http://ns.adobe.com/mxml/2009"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:s=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"library://ns.adobe.com/flex/spark"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:mx=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"library://ns.adobe.com/flex/halo"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        initialize=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"init();"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;       &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;fx:script&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;!&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;[&lt;/span&gt;CDATA&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;[&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            import flashx.textLayout.formats.Direction;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            import mx.collections.ArrayList;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            import mx.containers.Form;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            import mx.containers.FormItem;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            import mx.controls.VRule;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            import mx.core.FlexGlobals;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            import spark.components.DropDownList;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            import spark.components.Panel;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            import spark.events.IndexChangeEvent;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            import spark.primitives.RichText;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            private var dropDownList:DropDownList;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            private var pnl:Panel;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            private var richTxt:RichText;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            private function init&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;:void &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;{&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                dropDownList = new DropDownList&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                dropDownList.dataProvider = new ArrayList&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;[&lt;/span&gt;Direction.LTR, Direction.RTL&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;]&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                dropDownList.requireSelection = true;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                dropDownList.addEventListener&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;IndexChangeEvent.CHANGE, dropDownList_change&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                var formItem:FormItem = new FormItem&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                formItem.label = &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"direction:"&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                formItem.addElement&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;dropDownList&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                var form:Form = new Form&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                form.addElement&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;formItem&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                Application&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;FlexGlobals.topLevelApplication&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;.controlBarContent = &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;[&lt;/span&gt;form&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;]&lt;/span&gt;;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                richTxt = new RichText&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                richTxt.text = &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"Col 1\tCol 2\tCol 3\tCol 4"&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                richTxt.setStyle&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"tabStops"&lt;/span&gt;, &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"100 200 300"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                richTxt.setStyle&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"paragraphSpaceAfter"&lt;/span&gt;, &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(204, 102, 204); "&gt;20&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                richTxt.width = &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(204, 102, 204); "&gt;400&lt;/span&gt;;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                var vRule1:VRule = new VRule&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                vRule1.x = &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(204, 102, 204); "&gt;100&lt;/span&gt;;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                var vRule2:VRule = new VRule&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                vRule2.x = &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(204, 102, 204); "&gt;200&lt;/span&gt;;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                var vRule3:VRule = new VRule&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                vRule3.x = &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(204, 102, 204); "&gt;300&lt;/span&gt;;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                pnl = new Panel&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                pnl.title = &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"Spark RichText tabStops/tab test"&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                pnl.horizontalCenter = &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(204, 102, 204); "&gt;0&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                pnl.verticalCenter = &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(204, 102, 204); "&gt;0&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                pnl.addElement&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;vRule1&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                pnl.addElement&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;vRule2&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                pnl.addElement&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;vRule3&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                pnl.addElement&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;richTxt&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                addElement&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;pnl&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;}&lt;/span&gt;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            protected function dropDownList_change&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;evt:IndexChangeEvent&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;:void &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;{&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                richTxt.setStyle&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;(&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"direction"&lt;/span&gt;, dropDownList.selectedItem&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;)&lt;/span&gt;;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;}&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;]&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(102, 204, 102); "&gt;]&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/fx:Script&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:Application&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;The following example shows how you can use tab stops on a Spark RichText primitive in Flex 4 by setting the &lt;code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1em; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.929em; background-position: initial initial; "&gt;tabStops&lt;/code&gt; style.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;Full code after the jump.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;&lt;span id="more-1754" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="alert" style="padding-top: 0.571em; padding-right: 0.786em; padding-bottom: 0.571em; padding-left: 0.786em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 160); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(229, 229, 151); border-right-color: rgb(229, 229, 151); border-bottom-color: rgb(229, 229, 151); border-left-color: rgb(229, 229, 151); background-position: initial initial; "&gt;The following example(s) require Flash Player 10 and the Adobe Flex 4 SDK. To download the Adobe Flash Builder 4 beta, check out the Adobe Flash Builder 4 page on the Adobe Labs site. To download the latest build of the Flex 4 SDK, .&lt;/p&gt;&lt;div class="wp_syntax" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(17, 0, 0); background-color: rgb(249, 249, 249); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: silver; border-right-color: silver; border-bottom-color: silver; border-left-color: silver; overflow-x: auto; overflow-y: hidden; width: 780px; "&gt;&lt;div class="code" style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; vertical-align: top; "&gt;&lt;pre class="mxml" style="padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); overflow-x: visible; overflow-y: visible; clear: none; width: auto; float: none; font-size: 0.857em; line-height: 1.5em; white-space: pre; font-family: monospace; background-position: initial initial; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;?xml version=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"1.0"&lt;/span&gt; encoding=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"utf-8"&lt;/span&gt;?&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:application&lt;/span&gt; name=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"Spark_RichText_tabStops_test"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:fx=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"http://ns.adobe.com/mxml/2009"&lt;/span&gt; &lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:s=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"library://ns.adobe.com/flex/spark"&lt;/span&gt; &lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:mx=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"library://ns.adobe.com/flex/halo"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:controlbarcontent&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;mx:form&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;             &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;mx:formitem&lt;/span&gt; label=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"direction:"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;                 &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:dropdownlist&lt;/span&gt; id=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"dropDownList"&lt;/span&gt; requireSelection=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"true"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;                     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:dataprovider&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;                         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:arraylist&lt;/span&gt; source=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"[ltr,rtl]"&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;                     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:dataProvider&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;                 &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:DropDownList&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;             &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/mx:FormItem&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/mx:Form&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:controlBarContent&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;       &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:panel&lt;/span&gt; title=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"Spark RichText tabStops/tab test"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            horizontalCenter=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"0"&lt;/span&gt; verticalCenter=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"0"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;mx:vrule&lt;/span&gt; x=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"100"&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;mx:vrule&lt;/span&gt; x=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"200"&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;mx:vrule&lt;/span&gt; x=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"300"&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;           &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:richtext&lt;/span&gt; id=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"richTxt"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                direction=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"{dropDownList.selectedItem}"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                tabStops=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"100 200 300"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                paragraphSpaceAfter=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"20"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                width=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"400"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;             &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:content&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;                 &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:p&lt;/span&gt; direction=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"ltr"&lt;/span&gt; fontWeight=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"bold"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;0px&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:tab&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;100px&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:tab&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;200px&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:tab&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;300px&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:p&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;                 &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:p&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;Col 1&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:tab&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;Col 2&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:tab&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;Col 3&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:tab&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;Col 4&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:p&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;             &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:content&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:RichText&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:Panel&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:Application&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class="information" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;&lt;iframe src="http://blog.flexexamples.com/wp-content/uploads/spark/Spark_RichText_tabStops_test/bin/main.html" width="100%" height="350" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-3896939139518959263?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=y1tpFuHRVdg:0QFzNaqRm5U:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=y1tpFuHRVdg:0QFzNaqRm5U:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=y1tpFuHRVdg:0QFzNaqRm5U:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=y1tpFuHRVdg:0QFzNaqRm5U:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=y1tpFuHRVdg:0QFzNaqRm5U:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/y1tpFuHRVdg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/y1tpFuHRVdg/setting-tab-stops-on-richtext-control.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/09/setting-tab-stops-on-richtext-control.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-8327704226089736356</guid><pubDate>Wed, 02 Sep 2009 03:27:00 +0000</pubDate><atom:updated>2009-09-01T20:31:06.967-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Top Flex Examples</category><title>Creating full-screen Flex applications</title><description>&lt;span class="Apple-style-span" style="color: rgb(17, 17, 17); font-size: 14px; line-height: 22px; "&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;Full-Screen Mode in Flex. I’ve seen this appear a few times in the bugbase and on lists, but here is some simple code to let you toggle between “full screen mode” and “normal mode” in a Flex application. Note that in this example I’m listening for the &lt;code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1em; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.929em; background-position: initial initial; "&gt;applicationComplete&lt;/code&gt; event in the main &lt;mx:application&gt; tag instead of the&lt;code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1em; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.929em; background-position: initial initial; "&gt;creationComplete&lt;/code&gt; event. The &lt;code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1em; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.929em; background-position: initial initial; "&gt;applicationComplete&lt;/code&gt; tag is called slightly after the &lt;code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1em; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.929em; background-position: initial initial; "&gt;creationComplete&lt;/code&gt; event, after the Application has been completely initialized.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;If you try and access the &lt;code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1em; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.929em; background-position: initial initial; "&gt;Application.application.stage&lt;/code&gt; property from the &lt;code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1em; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.929em; background-position: initial initial; "&gt;creationComplete&lt;/code&gt; event, you’ll get a run-time error (RTE) saying the following:&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;&lt;/p&gt;&lt;pre class="code" lang="actionscript" style="padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); overflow-x: auto; overflow-y: auto; clear: both; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; background-position: initial initial; "&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;mx:application mx="http://www.adobe.com/2006/mxml" layout="vertical" applicationcomplete="init(event)"&gt;      &lt;mx:script&gt;         &lt;![CDATA[             import flash.display.StageDisplayState;              private function init(evt:Event):void {                 /* Set up full screen handler. */                 Application.application.stage.addEventListener(FullScreenEvent.FULL_SCREEN, fullScreenHandler);                 dispState = Application.application.stage.displayState;             }              private function fullScreenHandler(evt:FullScreenEvent):void {                 dispState = Application.application.stage.displayState + " (fullScreen=" + evt.fullScreen.toString() + ")";                 if (evt.fullScreen) {                     /* Do something specific here if we switched to full screen mode. */                 } else {                     /* Do something specific here if we switched to normal mode. */                 }             }              private function toggleFullScreen():void {                 try {                     switch (Application.application.stage.displayState) {                         case StageDisplayState.FULL_SCREEN:                             /* If already in full screen mode, switch to normal mode. */                             Application.application.stage.displayState = StageDisplayState.NORMAL;                             break;                         default:                             /* If not in full screen mode, switch to full screen mode. */                             Application.application.stage.displayState = StageDisplayState.FULL_SCREEN;                             break;                     }                 } catch (err:SecurityError) {                     // ignore                 }             }         ]]&gt;     &lt;/mx:Script&gt;      &lt;mx:string id="dispState"&gt;      &lt;mx:label text="width={Application.application.width}"&gt;     &lt;mx:label text="height={Application.application.height}"&gt;     &lt;mx:label text="displayState={dispState}"&gt;      &lt;mx:button label="Toggle fullscreen" click="toggleFullScreen()"&gt;  &lt;/mx:Application&gt;&lt;/pre&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-8327704226089736356?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=puYit8JPmQ4:Ktb0dZJmydA:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=puYit8JPmQ4:Ktb0dZJmydA:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=puYit8JPmQ4:Ktb0dZJmydA:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=puYit8JPmQ4:Ktb0dZJmydA:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=puYit8JPmQ4:Ktb0dZJmydA:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/puYit8JPmQ4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/puYit8JPmQ4/creating-full-screen-flex-applications.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/09/creating-full-screen-flex-applications.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-3440974988213199464</guid><pubDate>Tue, 25 Aug 2009 18:46:00 +0000</pubDate><atom:updated>2009-08-25T11:47:38.847-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Top Flex Examples</category><title>Adobe Flex 4 SDK</title><description>&lt;span class="Apple-style-span" style="font-family: Arial; font-size: 12px; line-height: 12px; "&gt;&lt;p style="font-size: 1em; line-height: 1.35em; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; word-wrap: break-word; "&gt;Welcome to the Adobe Flex® 4 SDK beta release on Adobe Labs (previously code named Gumbo). This release marks an expanded role for the Flex framework, now supporting both developers creating Flex applications and designers using Adobe® Flash® Catalyst™ to create interaction design.&lt;/p&gt;&lt;p style="font-size: 1em; line-height: 1.35em; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; word-wrap: break-word; "&gt;You can build great Flex applications using only the Flex 4 SDK and an editor of your choice, or you can use the beta version of Adobe Flash Builder™ 4 (previously named Flex Builder) which includes everything in the Flex 4 SDK within it. This beta release aligns with the public beta releases of both &lt;a href="http://labs.adobe.com/technologies/flashbuilder4/" style="text-decoration: none; color: rgb(0, 136, 17); "&gt;Flash Builder&lt;/a&gt; and &lt;a href="http://labs.adobe.com/technologies/flashcatalyst/" style="text-decoration: none; color: rgb(0, 136, 17); "&gt;Flash Catalyst&lt;/a&gt;.&lt;/p&gt;&lt;div class="columns-2-Abb-A" style="padding-top: 0px; padding-right: 8px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 0.5em; float: left; margin-left: 0px; width: 359px; "&gt;&lt;p style="font-size: 1em; line-height: 1.35em; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; word-wrap: break-word; "&gt;There are 3 main themes for this release:&lt;/p&gt;&lt;ul style="list-style-type: disc; list-style-position: outside; list-style-image: initial; margin-left: 0.5em; padding-left: 1.5em; margin-top: 1em; margin-bottom: 1.35em; "&gt;&lt;li style="font-size: 1em; line-height: 1.35em; padding-bottom: 0.5em; "&gt;Design in Mind: providing a framework for continuous collaboration between designer and developer&lt;/li&gt;&lt;li style="font-size: 1em; line-height: 1.35em; padding-bottom: 0.5em; "&gt;Developer Productivity: improving compiler performance and adding productivity enhancements to language features&lt;/li&gt;&lt;li style="font-size: 1em; line-height: 1.35em; padding-bottom: 0.5em; "&gt;Framework Evolution: taking advantage of new Flash Player capabilities and adding features required by common use-cases&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="columns-2-Abb-bb" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 8px; margin-bottom: 0.5em; float: right; margin-right: 0px; width: 175px; "&gt;&lt;div class="options-pod" style="margin-top: 0px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-image: url(http://labs.adobe.com/images/shared/optionspod/labs_r.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 100% 100%; "&gt;&lt;div class="op-head" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-image: url(http://labs.adobe.com/images/shared/optionspod/labs_head_r.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 100% 0%; "&gt;&lt;h3 style="font-size: 1em; line-height: normal; background-color: transparent !important; border-bottom-width: initial; border-bottom-style: none; border-bottom-color: initial; color: rgb(255, 255, 255); margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; padding-top: 2px; padding-right: 8px; padding-bottom: 3px; padding-left: 8px; background-image: url(http://labs.adobe.com/images/shared/optionspod/labs_head_l.gif); background-repeat: no-repeat; background-position: 0% 0%; "&gt;Download and Discuss&lt;/h3&gt;&lt;/div&gt;&lt;div class="op-body" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 8px; padding-bottom: 6px; padding-left: 8px; background-image: url(http://labs.adobe.com/images/shared/optionspod/labs_l.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 0% 100%; "&gt;&lt;ul class="iconmarker-16x16" style="list-style-type: none; list-style-position: initial; list-style-image: initial; margin-left: 0px !important; padding-left: 0px; margin-top: 0px !important; margin-bottom: 0.85em !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; margin-right: 0px !important; "&gt;&lt;li style="font-size: 1em; line-height: 1.35em; padding-bottom: 0.5em; margin-left: 1px; padding-left: 20px; "&gt;&lt;a href="http://labs.adobe.com/downloads/flex4sdk.html" title="Download" style="text-decoration: none; color: rgb(0, 136, 17); "&gt;&lt;img src="http://labs.adobe.com/images/icons/download_page.gif" alt="Try" width="16" height="16" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; height: 16px; width: 16px; vertical-align: middle; float: none; clear: none; margin-left: -20px; margin-right: 4px; " /&gt;Get the Flex 4 SDK beta&lt;/a&gt;&lt;/li&gt;&lt;li style="font-size: 1em; line-height: 1.35em; padding-bottom: 0.5em; margin-left: 1px; padding-left: 20px; "&gt;&lt;a href="http://forums.adobe.com/community/labs/gumbo/" title="Discuss" target="_blank" style="text-decoration: none; color: rgb(0, 136, 17); "&gt;&lt;img src="http://labs.adobe.com/images/icons/discussion.gif" alt="Discuss" width="16" height="16" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; height: 16px; width: 16px; vertical-align: middle; float: none; clear: none; margin-left: -20px; margin-right: 4px; " /&gt;Discuss Flex 4 SDK in the Labs forums&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p style="font-size: 1em; line-height: 1.35em; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; word-wrap: break-word; "&gt;For an overview of the new features, please read &lt;a href="http://www.adobe.com/devnet/flex/articles/flex4sdk_whatsnew.html" target="_blank" style="text-decoration: none; color: rgb(0, 136, 17); "&gt;Matt Chotin’s &lt;em&gt;What’s new in the Flex 4 SDK beta&lt;/em&gt; article.&lt;/a&gt;&lt;/p&gt;&lt;p style="font-size: 1em; line-height: 1.35em; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; word-wrap: break-word; "&gt;Please use this opportunity to explore new features and communicate your feedback. While we are excited about this near feature-complete release, please remember that that this is beta software and there will be bugs, incomplete features, some performance issues and documentation issues, so we suggest that you only use it for testing and exploratory purposes.&lt;/p&gt;&lt;p style="font-size: 1em; line-height: 1.35em; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; word-wrap: break-word; "&gt;&lt;strong&gt;Note:&lt;/strong&gt; If you are planning on using the Flash Builder 4 beta, everything included in the Flex 4 SDK will also be included so you will not need to download the SDK.&lt;/p&gt;&lt;h4 style="font-size: 1em; line-height: 1.3em; margin-top: 0px; margin-bottom: 0px; "&gt;Open Source Nightly Builds&lt;/h4&gt;&lt;p style="font-size: 1em; line-height: 1.35em; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; word-wrap: break-word; "&gt;The Flex framework is open source, so if you are looking for the open source nightly builds, please visit &lt;a href="http://opensource.adobe.com/flex" style="text-decoration: none; color: rgb(0, 136, 17); "&gt;opensource.adobe.com/flex&lt;/a&gt;.&lt;/p&gt;&lt;h4 style="font-size: 1em; line-height: 1.3em; margin-top: 0px; margin-bottom: 0px; "&gt;Flex 3 SDK&lt;/h4&gt;&lt;p style="font-size: 1em; line-height: 1.35em; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; word-wrap: break-word; "&gt;If you are looking for older versions of the Flex framework, you can get them from &lt;a href="http://opensource.adobe.com/flex" target="_blank" style="text-decoration: none; color: rgb(0, 136, 17); "&gt;the open source site&lt;/a&gt;.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-3440974988213199464?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=LQBXn8kp-KM:MRdVBw5IsDE:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=LQBXn8kp-KM:MRdVBw5IsDE:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=LQBXn8kp-KM:MRdVBw5IsDE:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=LQBXn8kp-KM:MRdVBw5IsDE:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=LQBXn8kp-KM:MRdVBw5IsDE:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/LQBXn8kp-KM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/LQBXn8kp-KM/adobe-flex-4-sdk.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/08/adobe-flex-4-sdk.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-325307893420740149</guid><pubDate>Tue, 25 Aug 2009 18:44:00 +0000</pubDate><atom:updated>2009-08-25T11:45:55.977-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex4 examples</category><title>Creating an animated base color effect on a Spark Button control in Flex 4</title><description>&lt;span class="Apple-style-span" style="color: rgb(17, 17, 17); font-size: 14px; line-height: 22px; "&gt;The following example shows how you can create an animating background effect on a Spark Button control in Flex 4 by using the AnimateColor effect on the &lt;code style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 1em; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.929em; background-position: initial initial; "&gt;baseColor&lt;/code&gt; style.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:130%;color:#111111;"&gt;&lt;span class="Apple-style-span" style="font-size: 14px; line-height: 22px;"&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;Full code after the jump.&lt;/p&gt;&lt;div class="wp_syntax" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; color: rgb(17, 0, 0); background-color: rgb(249, 249, 249); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: silver; border-right-color: silver; border-bottom-color: silver; border-left-color: silver; overflow-x: auto; overflow-y: hidden; width: 780px; "&gt;&lt;div class="code" style="padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; vertical-align: top; "&gt;&lt;pre class="mxml" style="padding-top: 0.667em; padding-right: 0.917em; padding-bottom: 0.667em; padding-left: 0.917em; margin-top: 0px; margin-right: 0px; margin-bottom: 1.833em; margin-left: 0px; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(238, 238, 238); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(221, 221, 221); border-right-color: rgb(221, 221, 221); border-bottom-color: rgb(221, 221, 221); border-left-color: rgb(221, 221, 221); overflow-x: visible; overflow-y: visible; clear: none; width: auto; float: none; font-size: 0.857em; line-height: 1.5em; white-space: pre; font-family: monospace; background-position: initial initial; "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;?xml version=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"1.0"&lt;/span&gt; encoding=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"utf-8"&lt;/span&gt;?&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;  &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:application&lt;/span&gt; name=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"Spark_Button_AnimateColor_baseColor_test"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:fx=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"http://ns.adobe.com/mxml/2009"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:s=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"library://ns.adobe.com/flex/spark"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;        xmlns:mx=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"library://ns.adobe.com/flex/halo"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;       &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;fx:declarations&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;         &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:animatecolor&lt;/span&gt; id=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"animatr"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                target=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"{btn}"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                colorFrom=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"haloSilver"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                colorTo=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"haloBlue"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                colorPropertyName=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"baseColor"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                duration=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"400"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                repeatCount=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"0"&lt;/span&gt; &lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;                repeatBehavior=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"reverse"&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;     &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/fx:Declarations&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;       &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;s:button&lt;/span&gt; id=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"btn"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            label=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"Spark Button"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            horizontalCenter=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"0"&lt;/span&gt; verticalCenter=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"0"&lt;/span&gt;&lt;/span&gt; &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;            creationComplete=&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(255, 0, 0); "&gt;"animatr.play();"&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;/&gt;&lt;/span&gt;&lt;/span&gt;   &lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); "&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&lt;/s:Application&lt;/span&gt;&lt;span style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(116, 0, 255); "&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;p class="information" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;&lt;a href="http://blog.flexexamples.com/wp-content/uploads/spark/Spark_Button_AnimateColor_baseColor_test/bin/srcview/" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(35, 97, 161); text-decoration: underline; "&gt;View source&lt;/a&gt; is enabled in the following example.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 1.571em; margin-left: 0px; "&gt;&lt;iframe src="http://blog.flexexamples.com/wp-content/uploads/spark/Spark_Button_AnimateColor_baseColor_test/bin/main.html" width="100%" height="100" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/iframe&gt;&lt;/p&gt;&lt;div span="googleAdsLeaderboard" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;ins style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; display: inline-table; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; height: 90px; position: relative; visibility: visible; width: 728px; "&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-325307893420740149?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fm82vOpaj_U:0sKz4g8gymw:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fm82vOpaj_U:0sKz4g8gymw:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fm82vOpaj_U:0sKz4g8gymw:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fm82vOpaj_U:0sKz4g8gymw:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fm82vOpaj_U:0sKz4g8gymw:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/fm82vOpaj_U" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/fm82vOpaj_U/creating-animated-base-color-effect-on.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/08/creating-animated-base-color-effect-on.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-1293236770194319266</guid><pubDate>Tue, 25 Aug 2009 18:43:00 +0000</pubDate><atom:updated>2009-08-25T11:44:05.188-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Component</category><title>Flex FORMATTING DATA GRID ROWS AND HEADERS</title><description>&lt;span class="Apple-style-span" style="font-family: Arial; color: rgb(71, 72, 72); font-size: 13px; "&gt;&lt;p&gt;When developing applications with the DataGrid component, you may want to use a custom font so the data grid fits with your overall design. YOu change fonts by setting a custom text format using a TextFormat object, and the &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;setStyle()&lt;/code&gt; or &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;setRendererStyle()&lt;/code&gt; methods. If you want to set the text format for a DataGrid component’s header, use the &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;setStyle()&lt;/code&gt; method along with the &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;headerTextFormat&lt;/code&gt; style. If you want to set the text format for each row in the DataGrid component, use the &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;setRendererStyle()&lt;/code&gt; method along with the &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;textFormat&lt;/code&gt; style.&lt;/p&gt;&lt;h4&gt;Example&lt;/h4&gt;&lt;div class="preWrapper"&gt;&lt;pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; overflow-x: auto; overflow-y: auto; font-size: 1.3em; clear: both; "&gt;&lt;span class="asReserved"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; fl.controls.DataGrid; &lt;/span&gt;&lt;span class="asReserved"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; fl.controls.dataGridClasses.DataGridColumn; &lt;/span&gt;&lt;span class="asReserved"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;import&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; fl.data.DataProvider;  &lt;/span&gt;&lt;span class="asVar"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; comicTextFormat&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;TextFormat &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; &lt;/span&gt;&lt;span class="asReserved"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; TextFormat&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;()&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; comicTextFormat.font &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; &lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“Comic Sans MS”&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;;  &lt;/span&gt;&lt;span class="asVar"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; comicBoldTextFormat&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;TextFormat &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; &lt;/span&gt;&lt;span class="asReserved"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; TextFormat&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;comicTextFormat.font&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; comicBoldTextFormat.bold &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; &lt;/span&gt;&lt;span class="asReserved"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;true&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;;  &lt;/span&gt;&lt;span class="asVar"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; dp&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;DataProvider &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; &lt;/span&gt;&lt;span class="asReserved"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; DataProvider&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;()&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; dp.addItem&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;({&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;columnA&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“Row 1A”&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;, columnB&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“Row 1B”&lt;/span&gt;&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;})&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; dp.addItem&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;({&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;columnA&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“Row 2A”&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;, columnB&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“Row 2B”&lt;/span&gt;&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;})&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; dp.addItem&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;({&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;columnA&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“Row 3A”&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;, columnB&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“Row 3B”&lt;/span&gt;&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;})&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;;  &lt;/span&gt;&lt;span class="asVar"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; colA&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;DataGridColumn &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; &lt;/span&gt;&lt;span class="asReserved"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; DataGridColumn&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“columnA”&lt;/span&gt;&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; colA.headerText &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; &lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“Column A:”&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;;  &lt;/span&gt;&lt;span class="asVar"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; colB&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;DataGridColumn &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; &lt;/span&gt;&lt;span class="asReserved"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; DataGridColumn&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“columnB”&lt;/span&gt;&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; colB.headerText &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; &lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“Column B:”&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;;  &lt;/span&gt;&lt;span class="asVar"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;var&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; myDataGrid&lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;:&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;DataGrid &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; &lt;/span&gt;&lt;span class="asReserved"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;new&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; DataGrid&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;()&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; myDataGrid.setStyle&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“headerTextFormat”&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;, comicBoldTextFormat&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; myDataGrid.setRendererStyle&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span class="asString"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;“textFormat”&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;, comicTextFormat&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; myDataGrid.addColumn&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;colA&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; myDataGrid.addColumn&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;colB&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; myDataGrid.dataProvider &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; dp; myDataGrid.width &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; 200; myDataGrid.rowCount &lt;/span&gt;&lt;span class="asOperator"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt; myDataGrid.length; myDataGrid.move&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;10, 10&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; addChild&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;myDataGrid&lt;/span&gt;&lt;span class="asBracket"&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 128, 0); "&gt;; &lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4&gt;Result&lt;/h4&gt;&lt;div id="flashcontent6" class="swfcontent"&gt;&lt;embed id="flashcontent6" type="application/x-shockwave-flash" width="220" height="105" src="http://www.adobe.com/devnet/flash/quickstart/datagrid_pt2/swfs/section9.example1.swf" quality="high" bgcolor="#ffffff" name="flashcontent6"&gt;&lt;/embed&gt;&lt;/div&gt;&lt;p&gt;To download the source files for this example, &lt;a href="http://www.adobe.com/devnet/flash/quickstart/datagrid_pt2/src/section9.example1.zip" style="color: rgb(0, 64, 182); text-decoration: underline; "&gt;click here&lt;/a&gt;.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-1293236770194319266?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=L3wchtJlJ5o:s5iUjU0BcUo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=L3wchtJlJ5o:s5iUjU0BcUo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=L3wchtJlJ5o:s5iUjU0BcUo:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=L3wchtJlJ5o:s5iUjU0BcUo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=L3wchtJlJ5o:s5iUjU0BcUo:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/L3wchtJlJ5o" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/L3wchtJlJ5o/flex-formatting-data-grid-rows-and.html</link><author>noreply@blogger.com (Jon)</author><enclosure url="http://www.adobe.com/devnet/flash/quickstart/datagrid_pt2/src/section9.example1.zip" length="465483" type="application/zip" /><media:content url="http://www.adobe.com/devnet/flash/quickstart/datagrid_pt2/src/section9.example1.zip" fileSize="465483" type="application/zip" /><itunes:explicit>no</itunes:explicit><itunes:subtitle> When developing applications with the DataGrid component, you may want to use a custom font so the data grid fits with your overall design. YOu change fonts by setting a custom text format using a TextFormat object, and the setStyle() or setRendererStyle</itunes:subtitle><itunes:author>noreply@blogger.com (Jon)</itunes:author><itunes:summary> When developing applications with the DataGrid component, you may want to use a custom font so the data grid fits with your overall design. YOu change fonts by setting a custom text format using a TextFormat object, and the setStyle() or setRendererStyle() methods. If you want to set the text format for a DataGrid component’s header, use the setStyle() method along with the headerTextFormat style. If you want to set the text format for each row in the DataGrid component, use the setRendererStyle() method along with the textFormat style.Exampleimport fl.controls.DataGrid; import fl.controls.dataGridClasses.DataGridColumn; import fl.data.DataProvider; var comicTextFormat:TextFormat = new TextFormat(); comicTextFormat.font = “Comic Sans MS”; var comicBoldTextFormat:TextFormat = new TextFormat(comicTextFormat.font); comicBoldTextFormat.bold = true; var dp:DataProvider = new DataProvider(); dp.addItem({columnA:“Row 1A”, columnB:“Row 1B”}); dp.addItem({columnA:“Row 2A”, columnB:“Row 2B”}); dp.addItem({columnA:“Row 3A”, columnB:“Row 3B”}); var colA:DataGridColumn = new DataGridColumn(“columnA”); colA.headerText = “Column A:”; var colB:DataGridColumn = new DataGridColumn(“columnB”); colB.headerText = “Column B:”; var myDataGrid:DataGrid = new DataGrid(); myDataGrid.setStyle(“headerTextFormat”, comicBoldTextFormat); myDataGrid.setRendererStyle(“textFormat”, comicTextFormat); myDataGrid.addColumn(colA); myDataGrid.addColumn(colB); myDataGrid.dataProvider = dp; myDataGrid.width = 200; myDataGrid.rowCount = myDataGrid.length; myDataGrid.move(10, 10); addChild(myDataGrid); Result To download the source files for this example, click here.</itunes:summary><itunes:keywords>Flex Component</itunes:keywords><feedburner:origLink>http://flexexamples.blogspot.com/2009/08/flex-formatting-data-grid-rows-and.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-986420575763622676</guid><pubDate>Tue, 25 Aug 2009 18:40:00 +0000</pubDate><atom:updated>2009-08-25T11:41:40.495-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">DataGrid component</category><category domain="http://www.blogger.com/atom/ns#">Flex4 examples</category><title>DataGrid component</title><description>&lt;span class="Apple-style-span" style="font-family: Arial; color: rgb(71, 72, 72); font-size: 13px; "&gt;&lt;p&gt;The following quick start demonstrates how to customize data grid columns, sort data grid columns numerically, format numbers in data grid columns using a custom label function, and how to specify a custom text format for both data grid headers and data grid rows.&lt;/p&gt;&lt;h3&gt;CREATING DATA GRID COLUMNS USING THE DATAGRIDCOLUMN OBJECT&lt;/h3&gt;&lt;p&gt;There are two main ways to add columns to a DataGrid instance:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Pass a string to the data grid’s &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;addColumn()&lt;/code&gt; or &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;addColumnAt()&lt;/code&gt; method.&lt;/li&gt;&lt;li&gt;Pass a DataGridColumn object (fl.controls.dataGridClasses.DataGridColumn) to the data grid’s &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;addColumn()&lt;/code&gt; or &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;addColumnAt()&lt;/code&gt; method.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;By using the DataGridColumn object, you can control additional attributes of the data grid column, such as the following:&lt;span id="more-1824"&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Specify whether the column is editable (&lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;DataGridColumn.editable&lt;/code&gt;)&lt;/li&gt;&lt;li&gt;Specify whether the column is resizable (&lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;DataGridColumn.resizable&lt;/code&gt;)&lt;/li&gt;&lt;li&gt;Specify the column’s header text (&lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;DataGridColumn.headerText&lt;/code&gt;)&lt;/li&gt;&lt;li&gt;Specify a custom function which generates a cell’s text (&lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;DataGridColumn.labelFunction&lt;/code&gt;)&lt;/li&gt;&lt;li&gt;Specify whether the column is sortable (&lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;DataGridColumn.sortable&lt;/code&gt;)&lt;/li&gt;&lt;li&gt;Specify sorting options (&lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;DataGridColumn.sortOptions&lt;/code&gt;)&lt;/li&gt;&lt;li&gt;Specify a custom sorting function (&lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;DataGridColumn.sortCompareFunction&lt;/code&gt;)&lt;/li&gt;&lt;/ul&gt;&lt;h4&gt;Example&lt;/h4&gt;&lt;p&gt;The following example creates a new DataGridColumn instance and adds it to the DataGrid using the &lt;code style="color: rgb(71, 72, 72); font-family: Courier, monospace; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 5px; "&gt;addColumn()&lt;/code&gt; method:&lt;/p&gt;&lt;div class="preWrapper"&gt;&lt;pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 1.5em; margin-left: 0px; overflow-x: auto; overflow-y: auto; font-size: 1.3em; clear: both; "&gt;&lt;span class="asReserved"&gt;import&lt;/span&gt; fl.controls.DataGrid; &lt;span class="asReserved"&gt;import&lt;/span&gt; fl.controls.dataGridClasses.DataGridColumn; &lt;span class="asReserved"&gt;import&lt;/span&gt; fl.data.DataProvider;  &lt;span class="asVar"&gt;var&lt;/span&gt; dp&lt;span class="asOperator"&gt;:&lt;/span&gt;DataProvider &lt;span class="asOperator"&gt;=&lt;/span&gt; &lt;span class="asReserved"&gt;new&lt;/span&gt; DataProvider&lt;span class="asBracket"&gt;()&lt;/span&gt;; dp.addItem&lt;span class="asBracket"&gt;({&lt;/span&gt;columnA&lt;span class="asOperator"&gt;:&lt;/span&gt;&lt;span class="asString"&gt;“Row 1A”&lt;/span&gt;, columnB&lt;span class="asOperator"&gt;:&lt;/span&gt;&lt;span class="asString"&gt;“1234.000″&lt;/span&gt;&lt;span class="asBracket"&gt;})&lt;/span&gt;; dp.addItem&lt;span class="asBracket"&gt;({&lt;/span&gt;columnA&lt;span class="asOperator"&gt;:&lt;/span&gt;&lt;span class="asString"&gt;“Row 2A”&lt;/span&gt;, columnB&lt;span class="asOperator"&gt;:&lt;/span&gt;&lt;span class="asString"&gt;“56.300″&lt;/span&gt;&lt;span class="asBracket"&gt;})&lt;/span&gt;; dp.addItem&lt;span class="asBracket"&gt;({&lt;/span&gt;columnA&lt;span class="asOperator"&gt;:&lt;/span&gt;&lt;span class="asString"&gt;“Row 3A”&lt;/span&gt;, columnB&lt;span class="asOperator"&gt;:&lt;/span&gt;&lt;span class="asString"&gt;“789.123″&lt;/span&gt;&lt;span class="asBracket"&gt;})&lt;/span&gt;;  &lt;span class="asVar"&gt;var&lt;/span&gt; colA&lt;span class="asOperator"&gt;:&lt;/span&gt;DataGridColumn &lt;span class="asOperator"&gt;=&lt;/span&gt; &lt;span class="asReserved"&gt;new&lt;/span&gt; DataGridColumn&lt;span class="asBracket"&gt;(&lt;/span&gt;&lt;span class="asString"&gt;“columnA”&lt;/span&gt;&lt;span class="asBracket"&gt;)&lt;/span&gt;; &lt;span class="asVar"&gt;var&lt;/span&gt; colB&lt;span class="asOperator"&gt;:&lt;/span&gt;DataGridColumn &lt;span class="asOperator"&gt;=&lt;/span&gt; &lt;span class="asReserved"&gt;new&lt;/span&gt; DataGridColumn&lt;span class="asBracket"&gt;(&lt;/span&gt;&lt;span class="asString"&gt;“columnB”&lt;/span&gt;&lt;span class="asBracket"&gt;)&lt;/span&gt;;  &lt;span class="asVar"&gt;var&lt;/span&gt; myDataGrid&lt;span class="asOperator"&gt;:&lt;/span&gt;DataGrid &lt;span class="asOperator"&gt;=&lt;/span&gt; &lt;span class="asReserved"&gt;new&lt;/span&gt; DataGrid&lt;span class="asBracket"&gt;()&lt;/span&gt;; myDataGrid.addColumn&lt;span class="asBracket"&gt;(&lt;/span&gt;colA&lt;span class="asBracket"&gt;)&lt;/span&gt;; myDataGrid.addColumn&lt;span class="asBracket"&gt;(&lt;/span&gt;colB&lt;span class="asBracket"&gt;)&lt;/span&gt;; myDataGrid.dataProvider &lt;span class="asOperator"&gt;=&lt;/span&gt; dp; myDataGrid.width &lt;span class="asOperator"&gt;=&lt;/span&gt; 200; myDataGrid.rowCount &lt;span class="asOperator"&gt;=&lt;/span&gt; myDataGrid.length; myDataGrid.move&lt;span class="asBracket"&gt;(&lt;/span&gt;10, 10&lt;span class="asBracket"&gt;)&lt;/span&gt;; addChild&lt;span class="asBracket"&gt;(&lt;/span&gt;myDataGrid&lt;span class="asBracket"&gt;)&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt;&lt;h4&gt;Result&lt;/h4&gt;&lt;div id="flashcontent1" class="swfcontent"&gt;&lt;embed id="flashcontent1" type="application/x-shockwave-flash" width="220" height="105" src="http://www.adobe.com/devnet/flash/quickstart/datagrid_pt2/swfs/section5.example1.swf" quality="high" bgcolor="#ffffff" name="flashcontent1"&gt;&lt;/embed&gt;&lt;/div&gt;&lt;p&gt;To download the source files for this example, &lt;a href="http://www.adobe.com/devnet/flash/quickstart/datagrid_pt2/src/section5.example1.zip" style="color: rgb(0, 64, 182); text-decoration: underline; "&gt;click here&lt;/a&gt;.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-986420575763622676?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=11SlatTsWzg:kxt2q5CuW0s:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=11SlatTsWzg:kxt2q5CuW0s:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=11SlatTsWzg:kxt2q5CuW0s:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=11SlatTsWzg:kxt2q5CuW0s:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=11SlatTsWzg:kxt2q5CuW0s:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/11SlatTsWzg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/11SlatTsWzg/datagrid-component.html</link><author>noreply@blogger.com (Jon)</author><enclosure url="http://www.adobe.com/devnet/flash/quickstart/datagrid_pt2/src/section5.example1.zip" length="465300" type="application/zip" /><media:content url="http://www.adobe.com/devnet/flash/quickstart/datagrid_pt2/src/section5.example1.zip" fileSize="465300" type="application/zip" /><itunes:explicit>no</itunes:explicit><itunes:subtitle> The following quick start demonstrates how to customize data grid columns, sort data grid columns numerically, format numbers in data grid columns using a custom label function, and how to specify a custom text format for both data grid headers and data </itunes:subtitle><itunes:author>noreply@blogger.com (Jon)</itunes:author><itunes:summary> The following quick start demonstrates how to customize data grid columns, sort data grid columns numerically, format numbers in data grid columns using a custom label function, and how to specify a custom text format for both data grid headers and data grid rows.CREATING DATA GRID COLUMNS USING THE DATAGRIDCOLUMN OBJECT There are two main ways to add columns to a DataGrid instance:Pass a string to the data grid’s addColumn() or addColumnAt() method.Pass a DataGridColumn object (fl.controls.dataGridClasses.DataGridColumn) to the data grid’s addColumn() or addColumnAt() method. By using the DataGridColumn object, you can control additional attributes of the data grid column, such as the following:Specify whether the column is editable (DataGridColumn.editable)Specify whether the column is resizable (DataGridColumn.resizable)Specify the column’s header text (DataGridColumn.headerText)Specify a custom function which generates a cell’s text (DataGridColumn.labelFunction)Specify whether the column is sortable (DataGridColumn.sortable)Specify sorting options (DataGridColumn.sortOptions)Specify a custom sorting function (DataGridColumn.sortCompareFunction)Example The following example creates a new DataGridColumn instance and adds it to the DataGrid using the addColumn() method:import fl.controls.DataGrid; import fl.controls.dataGridClasses.DataGridColumn; import fl.data.DataProvider; var dp:DataProvider = new DataProvider(); dp.addItem({columnA:“Row 1A”, columnB:“1234.000″}); dp.addItem({columnA:“Row 2A”, columnB:“56.300″}); dp.addItem({columnA:“Row 3A”, columnB:“789.123″}); var colA:DataGridColumn = new DataGridColumn(“columnA”); var colB:DataGridColumn = new DataGridColumn(“columnB”); var myDataGrid:DataGrid = new DataGrid(); myDataGrid.addColumn(colA); myDataGrid.addColumn(colB); myDataGrid.dataProvider = dp; myDataGrid.width = 200; myDataGrid.rowCount = myDataGrid.length; myDataGrid.move(10, 10); addChild(myDataGrid);Result To download the source files for this example, click here.</itunes:summary><itunes:keywords>DataGrid component, Flex4 examples</itunes:keywords><feedburner:origLink>http://flexexamples.blogspot.com/2009/08/datagrid-component.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-7580591436060671543</guid><pubDate>Mon, 06 Jul 2009 11:27:00 +0000</pubDate><atom:updated>2009-07-06T04:30:21.221-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Component</category><title>flex html tooltip component</title><description>&lt;span class="Apple-style-span"   style="color: rgb(238, 238, 238);   line-height: 21px; font-family:'Lucida Grande';font-size:12px;"&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;Flex components accepts plain text to display as ToolTip. So there is no way to format the ToolTip text. So i looked into this problem, i checked the source code of the class “ToolTip”. There i got a very easy solution for this.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;&lt;span id="more-73" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;/span&gt;The ToolTip class object uses &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;IUITextField&lt;/strong&gt; object to display the ToolTip text. In component lifeCycle, at the process of &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;commitProperties()&lt;/strong&gt; method, &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;text &lt;/strong&gt;property of the IUITextField is get assigned by the String which is specified to for component’s &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;tooltip &lt;/strong&gt;property. I got the right place, The Trick is just instead of assigning the tooltip string to the &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;text &lt;/strong&gt;property, override it by the property &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;htmlText&lt;/strong&gt;property of the IUITextField object, which will enable the html text to appear in tooltip.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;So i created a  component HTMLToolTip, which overrides the protected function &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;commitProperties()&lt;/strong&gt;method of the &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;TootTip&lt;/strong&gt; object. here is the source code of the component;&lt;/p&gt;&lt;div class="dp-highlighter" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; width: 99%; overflow-x: auto; overflow-y: hidden; direction: ltr !important; border-top-style: solid; border-right-style: none; border-bottom-style: solid; border-left-style: none; border-top-color: rgb(231, 229, 220); border-right-color: rgb(231, 229, 220); border-bottom-color: rgb(231, 229, 220); border-left-color: rgb(231, 229, 220); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;&lt;ol class="dp-c" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal; list-style-position: initial; list-style-image: initial; background-image: url(http://s1.wordpress.com/wp-content/plugins/highlight/highlighter_bg.gif?a); background-repeat: repeat-y; background-attachment: scroll; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 255); padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 8px !important; padding-left: 45px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 1px !important; margin-left: 0px !important; color: rgb(92, 92, 92); background-position: 0% 50%; "&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;&lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;package&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; com  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;{  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;    &lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;import&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; mx.containers.*;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;    &lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;import&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; mx.controls.Text;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;    &lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;import&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; mx.controls.ToolTip;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;    &lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;import&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; mx.core.*;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;    &lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;public&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; &lt;/span&gt;&lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;class&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; HTMLToolTip &lt;/span&gt;&lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;extends&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; ToolTip  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;    {  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;        &lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;public&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; &lt;/span&gt;&lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;function&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; HTMLToolTip()  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;        {    &lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;super&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;(); }  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;        override &lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;protected&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; &lt;/span&gt;&lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;function&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt; commitProperties():&lt;/span&gt;&lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;void&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;{  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;            &lt;span class="keyword"  style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background- color:inherit;"&gt;super&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;.commitProperties();  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;            textField.htmlText = text;  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;        }  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;    }  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;}  &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;To use this component, after loading the application (&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;creationComplete()&lt;/strong&gt;) use&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;ToolTipManager.toolTipClass&lt;/strong&gt; to assign this component as toolTip custom class, and asign the components &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;toolTip &lt;/strong&gt;property to assign html text. here is sample code;&lt;/p&gt;&lt;div class="dp-highlighter" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; width: 99%; overflow-x: auto; overflow-y: hidden; direction: ltr !important; border-top-style: solid; border-right-style: none; border-bottom-style: solid; border-left-style: none; border-top-color: rgb(231, 229, 220); border-right-color: rgb(231, 229, 220); border-bottom-color: rgb(231, 229, 220); border-left-color: rgb(231, 229, 220); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;&lt;ol class="dp-xml" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal; list-style-position: initial; list-style-image: initial; background-image: url(http://s1.wordpress.com/wp-content/plugins/highlight/highlighter_bg.gif?a); background-repeat: repeat-y; background-attachment: scroll; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 255); padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 8px !important; padding-left: 45px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 1px !important; margin-left: 0px !important; color: rgb(92, 92, 92); background-position: 0% 50%; "&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;&lt;span class="cdata" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; background-color: inherit; color: rgb(255, 20, 147); "&gt;&lt;/span&gt; &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;&lt;span class="cdata" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; background-color: inherit; color: rgb(255, 20, 147); "&gt;    import com.*;&lt;/span&gt; &lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;&lt;span class="cdata" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; background-color: inherit; color: rgb(255, 20, 147); "&gt;    private function init():void{&lt;/span&gt; &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;&lt;span class="cdata" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; background-color: inherit; color: rgb(255, 20, 147); "&gt;        ToolTipManager.toolTipClass = HTMLToolTip;&lt;/span&gt; &lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;&lt;span class="cdata" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; background-color: inherit; color: rgb(255, 20, 147); "&gt;        mtBtn.toolTip = "this is &lt;strong&gt;HTML&lt;/strong&gt;Tool&lt;strong&gt;Tip."&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/li&gt;&lt;strong&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;&lt;span class="cdata" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; background-color: inherit; color: rgb(255, 20, 147); "&gt;    }&lt;/span&gt; &lt;/span&gt;&lt;/li&gt;&lt;li class="alt"  style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255);  color:inherit;"&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;&lt;span class="cdata" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; background-color: inherit; color: rgb(255, 20, 147); "&gt;]]&gt;&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background- color:inherit;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/strong&gt;&lt;/ol&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;&lt;strong&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;The trick is overriding the components &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;commitProperties()&lt;/strong&gt; method&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;.&lt;/strong&gt;&lt;/p&gt;&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-7580591436060671543?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=4Wim41QPQz8:quTxbFq4opM:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=4Wim41QPQz8:quTxbFq4opM:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=4Wim41QPQz8:quTxbFq4opM:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=4Wim41QPQz8:quTxbFq4opM:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=4Wim41QPQz8:quTxbFq4opM:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/4Wim41QPQz8" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/4Wim41QPQz8/flex-html-tooltip-component.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/07/flex-html-tooltip-component.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-5292777839535609400</guid><pubDate>Mon, 06 Jul 2009 11:24:00 +0000</pubDate><atom:updated>2009-07-06T04:25:27.770-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Data Services</category><title>uploading an image into flash without server side script using flash player 10</title><description>&lt;span class="Apple-style-span" style="color: rgb(238, 238, 238); font-family: 'Lucida Grande'; font-size: 12px; line-height: 21px; "&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;The FileReference class in flash player 10 has a new method : &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;FileReference.load()&lt;/strong&gt; which provides the power of uploading the image, text file etc into flash player without any server side script.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;Before proceeding with &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;FileReference.load() &lt;/strong&gt;method, we need to call &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;FileReference.browse()&lt;/strong&gt;method so that user can select a file to load a selected file into flash player. Once the file get loaded into flash player you can access the loaded data by using a property of &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;FileReference.data&lt;/strong&gt;.&lt;br /&gt;The data loaded at &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;FileReference.data&lt;/strong&gt; property is commonly a type of &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;ByteArray&lt;/strong&gt;. we want to convert it to bitmap. so the trick is to use the loader class; &lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;loader.loadBytes()&lt;/strong&gt; method. The method converts the ByteArray to a loader image object. once it completes loading we can add the loader object to display list to display the image. so here we go;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Note: the example has been created in flash cs4 and targets flash player 10;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;settings:&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;1) create a blank flash document in flash cs4.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;2) create a folder named with “flexScript” and copy and paste the below code to a new actionscript file and save the file into “flexScript” folder with the name “uploadImage”.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;3) put a button component on the stage and put a instance name as “upload_Image”;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;4) set the document class as “flexScript.uploadImage”; and run the application and check the magic;&lt;/p&gt;&lt;div class="dp-highlighter" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; width: 99%; overflow-x: auto; overflow-y: hidden; direction: ltr !important; border-top-style: solid; border-right-style: none; border-bottom-style: solid; border-left-style: none; border-top-color: rgb(231, 229, 220); border-right-color: rgb(231, 229, 220); border-bottom-color: rgb(231, 229, 220); border-left-color: rgb(231, 229, 220); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; "&gt;&lt;div class="bar" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; direction: ltr !important; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; padding-left: 45px; background-image: url(http://s1.wordpress.com/wp-content/plugins/highlight/highlighter_bg.gif?a); background-repeat: repeat-y; background-attachment: scroll; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 255); background-position: 0% 50%; "&gt;&lt;div class="tools" style="direction: ltr !important; margin-top: 10px; margin-right: auto; margin-bottom: 10px; margin-left: auto; padding-top: 3px; padding-right: 8px; padding-left: 10px; font: normal normal normal 9px/normal Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; background-color: rgb(248, 248, 248); padding-bottom: 10px; "&gt;&lt;a href="http://flexscript.wordpress.com/2009/01/12/uploading-an-image-into-flash-without-server-side-script-using-flash-player-10/#" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;" style="direction: ltr !important; border-bottom-width: 1px; border-bottom-color: rgb(204, 204, 204); background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 9px; color: rgb(160, 160, 160); background-color: inherit; text-decoration: none; margin-right: 10px; background-position: initial initial; "&gt;view plain&lt;/a&gt;&lt;a href="http://flexscript.wordpress.com/2009/01/12/uploading-an-image-into-flash-without-server-side-script-using-flash-player-10/#" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;" style="direction: ltr !important; border-bottom-width: 1px; border-bottom-color: rgb(204, 204, 204); background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 9px; color: rgb(160, 160, 160); background-color: inherit; text-decoration: none; margin-right: 10px; background-position: initial initial; "&gt;copy to clipboard&lt;/a&gt;&lt;a href="http://flexscript.wordpress.com/2009/01/12/uploading-an-image-into-flash-without-server-side-script-using-flash-player-10/#" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;" style="direction: ltr !important; border-bottom-width: 1px; border-bottom-color: rgb(204, 204, 204); background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 9px; color: rgb(160, 160, 160); background-color: inherit; text-decoration: none; margin-right: 10px; background-position: initial initial; "&gt;print&lt;/a&gt;&lt;a href="http://flexscript.wordpress.com/2009/01/12/uploading-an-image-into-flash-without-server-side-script-using-flash-player-10/#" onclick="dp.sh.Toolbar.Command('About',this);return false;" style="direction: ltr !important; border-bottom-width: 1px; border-bottom-color: rgb(204, 204, 204); background-image: none; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 9px; color: rgb(160, 160, 160); background-color: inherit; text-decoration: none; margin-right: 10px; background-position: initial initial; "&gt;?&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;ol class="dp-c" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal; list-style-position: initial; list-style-image: initial; background-image: url(http://s1.wordpress.com/wp-content/plugins/highlight/highlighter_bg.gif?a); background-repeat: repeat-y; background-attachment: scroll; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: rgb(255, 255, 255); padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 8px !important; padding-left: 45px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 1px !important; margin-left: 0px !important; color: rgb(92, 92, 92); background-position: 0% 50%; "&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;package&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; flexScript {  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;import&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; flash.display.Sprite;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;import&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; flash.events.MouseEvent;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;import&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; flash.net.*;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;import&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; flash.display.*;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;import&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; flash.events.*;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;import&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; flash.utils.ByteArray;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;public&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;class&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; uploadImage &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;extends&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; Sprite {  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;private&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;var&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; jagFileRefSave:FileReference = &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;new&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; FileReference();  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;private&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;var&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; loader:Loader = &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;new&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; Loader();  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;private&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;var&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; imagesFilter:FileFilter = &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;new&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; FileFilter(&lt;/span&gt;&lt;span class="string" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: blue; background-color: inherit; "&gt;"Images"&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;, &lt;/span&gt;&lt;span class="string" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: blue; background-color: inherit; "&gt;"*.jpg;*.gif;*.png"&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;);  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;public&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;function&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; uploadImage(){  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;super&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;();  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        upload_Image.addEventListener(MouseEvent.CLICK,onClickSave);  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    }  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;private&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;function&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; onClickSave(e:MouseEvent):&lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;void&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;{      &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        jagFileRefSave.browse([imagesFilter]);  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        jagFileRefSave.addEventListener(Event.SELECT, selectedFile);  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    }          &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;private&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;function&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; selectedFile(e:Event):&lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;void&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;{  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        jagFileRefSave.load();  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        jagFileRefSave.addEventListener(Event.COMPLETE, loaded);  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    }  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;private&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;function&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; loaded(e:Event):&lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;void&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;{  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;var&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; rawBytes:ByteArray = jagFileRefSave.data;  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        loader.contentLoaderInfo.addEventListener(Event.COMPLETE, getBitmapData)  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        loader.loadBytes(rawBytes);  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    }  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    &lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;private&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; &lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;function&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt; getBitmapData(e:Event):&lt;/span&gt;&lt;span class="keyword" style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: rgb(0, 102, 153); font-weight: bold; background-color: inherit; "&gt;void&lt;/span&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;{  &lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;        addChild(loader);  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    }  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;  &lt;/span&gt;&lt;/li&gt;&lt;li class="" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; background-color: rgb(248, 248, 248); color: rgb(92, 92, 92); padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;    }  &lt;/span&gt;&lt;/li&gt;&lt;li class="alt" style="direction: ltr !important; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; list-style-type: decimal-leading-zero; list-style-image: initial; list-style-position: outside !important; padding-top: 0px !important; padding-right: 3px !important; padding-bottom: 0px !important; padding-left: 10px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 14px; white-space: nowrap; background-color: rgb(255, 255, 255); color: inherit; "&gt;&lt;span style="direction: ltr !important; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; color: black; background-color: inherit; "&gt;}  &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-5292777839535609400?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fwyNOpvSXHM:f4EOenGNg8U:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fwyNOpvSXHM:f4EOenGNg8U:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fwyNOpvSXHM:f4EOenGNg8U:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fwyNOpvSXHM:f4EOenGNg8U:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fwyNOpvSXHM:f4EOenGNg8U:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/fwyNOpvSXHM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/fwyNOpvSXHM/uploading-image-into-flash-without.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/07/uploading-image-into-flash-without.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-468790801624698542</guid><pubDate>Mon, 06 Jul 2009 11:23:00 +0000</pubDate><atom:updated>2009-07-06T04:23:53.578-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Data Services</category><category domain="http://www.blogger.com/atom/ns#">Flex with DataGrid</category><title>Using a Web Service to populate a DataGrid with XML data</title><description>&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana; font-size: 13px; line-height: 19px; "&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;In this example I will be using XML data that is returned from a remote site. This example retrieves data about web sites (Name and URL). The XML data will be consumed and displayed in a FlexDataGrid control. Make sure you see the next blog about customizing a DataGrid. Here is a sample of the data returned by the program:&lt;/span&gt;&lt;/span&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;&lt;code style=""&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;&lt;sites&gt;
&lt;br /&gt;  &lt;site&gt;
&lt;br /&gt;     &lt;name&gt;Google&lt;/name&gt;
&lt;br /&gt;     &lt;url&gt;http://google.com&lt;/url&gt;
&lt;br /&gt;  &lt;/site&gt;
&lt;br /&gt;  &lt;site&gt;
&lt;br /&gt;     &lt;name&gt;Yahoo&lt;/name&gt;
&lt;br /&gt;     &lt;url&gt;http://yahoo.com&lt;/url&gt;
&lt;br /&gt;  &lt;/site&gt;
&lt;br /&gt;&lt;/sites&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;In this example, the data returned will be parsed and stored in an ArrayCollection object. Using an ArrayCollection is a good idea because it used in a lot of Flex tags as a data provider. It also include many methods that will allow you to manipulate the data. The following are the steps taken in Flex to retrieve the data and populate the DataGrid.
&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;ol&gt;&lt;li style="font-weight: bold; list-style-type: none; list-style-position: initial; list-style-image: initial; padding-left: 14px; margin-bottom: 3px; background-image: url(http://www.blogblog.com/tictac_blue/tictac_blue.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 0% 6px; "&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;Create the &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;HttpService&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt; tag in Flex and link it to the XML source:&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;&lt;mx:HTTPService id="getSitesService" resultFormat="e4x"
&lt;br /&gt;url="http://some.examplewebsite.com/getSitesInXML.php"
&lt;br /&gt;result="handleSiteData(event)" /&gt;
&lt;br /&gt;
&lt;br /&gt;id -- The name assigned to the service
&lt;br /&gt;url -- is the source of the XML
&lt;br /&gt;result -- Specify the name of the function that will handle the results. This function is called automatically. Incidentally, you can also add a method that will be invoked on errors (fault="someMethod()").
&lt;br /&gt;resultFormat -- self explanatory.
&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;li style="list-style-type: none; list-style-position: initial; list-style-image: initial; padding-left: 14px; margin-bottom: 3px; background-image: url(http://www.blogblog.com/tictac_blue/tictac_blue.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 0% 6px; "&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold; "&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;Send service request&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;span style="font-size:85%;"&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;getSitesService.send();
&lt;br /&gt;This is usually done upon application loading. For example, in the application tag you can add the code:
&lt;br /&gt;applicationComplete="getSitesService.send();"
&lt;br /&gt;Remember the method "handleSiteData()" will be called automatically upon successful return of the web service. Now, let's look at the method that will handle the returned result.
&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;
&lt;br /&gt;&lt;/span&gt;&lt;li style="list-style-type: none; list-style-position: initial; list-style-image: initial; padding-left: 14px; margin-bottom: 3px; background-image: url(http://www.blogblog.com/tictac_blue/tictac_blue.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 0% 6px; "&gt;&lt;span style="font-weight: bold; "&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;Handle Site Data (Parse XML data)&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;
&lt;br /&gt;&lt;/span&gt;&lt;pre&gt;&lt;code style=""&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;
&lt;br /&gt;[Bindable]
&lt;br /&gt;private var siteList:ArrayCollection;
&lt;br /&gt;public function handleSiteData(event:ResultEvent):void {
&lt;br /&gt;  xmlData = XMLList(event.result);
&lt;br /&gt;  var siteArray:Array = new Array();
&lt;br /&gt;  for (var i:int = 0; i &lt; xmlData.site.length(); i++) {  
&lt;br /&gt;     //Create an object of type Site.
&lt;br /&gt;     //Site is a simple ActionScript class
&lt;br /&gt;     //that incldes a URL and a Name
&lt;br /&gt;     var s:Site = new Site(xmlData.site[i].URL,
&lt;br /&gt;       xmlData.site[i].Name);
&lt;br /&gt;     //Add the object to the array
&lt;br /&gt;     siteArray.push(s);
&lt;br /&gt;  }
&lt;br /&gt;  //Convert the array to an ArrayCollection
&lt;br /&gt;  siteList = new ArrayCollection(siteArray);
&lt;br /&gt;}
&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;
&lt;br /&gt;Now we have an &lt;/span&gt;&lt;span style="font-style: italic; "&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;ArrayCollection&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt; of sites. This collection will be used as the "dataProvider" for the DataGrid control.
&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;
&lt;br /&gt;&lt;/span&gt;&lt;li style="list-style-type: none; list-style-position: initial; list-style-image: initial; padding-left: 14px; margin-bottom: 3px; background-image: url(http://www.blogblog.com/tictac_blue/tictac_blue.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 0% 6px; "&gt;&lt;span style="font-weight: bold; "&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;Define the DataGrid Control to use the ArrayCollection "siteList" defined above.&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;
&lt;br /&gt;&lt;/span&gt;&lt;pre&gt;&lt;code style=""&gt;&lt;span class="Apple-style-span" style="color: rgb(255, 255, 255);"&gt;&lt;mx:datagrid dataprovider="{siteList}"&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-468790801624698542?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=Vh88oezJcDQ:4lvBoUON-E4:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=Vh88oezJcDQ:4lvBoUON-E4:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=Vh88oezJcDQ:4lvBoUON-E4:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=Vh88oezJcDQ:4lvBoUON-E4:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Vh88oezJcDQ:4lvBoUON-E4:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/Vh88oezJcDQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/Vh88oezJcDQ/using-web-service-to-populate-datagrid.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/07/using-web-service-to-populate-datagrid.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-4090025657753966745</guid><pubDate>Mon, 06 Jul 2009 11:22:00 +0000</pubDate><atom:updated>2009-07-06T04:22:45.574-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex with DataGrid</category><title>Customizing Flex DataGrid with ItemRenderer</title><description>&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana; font-size: 13px; line-height: 19px; "&gt;In this example I will be using an ArrayCollection as the data provider for the DataGrid. The ArrayCollection is of objects that represent web sites. Each object contains a &lt;span style="font-style: italic; "&gt;Name and a URL&lt;/span&gt;. The data will be displayed with some customization. The customization include color, decoration, and action. Each of the items displayed will be linkable to the appropriate web site.
&lt;br /&gt;&lt;ul style="list-style-type: none; list-style-position: initial; list-style-image: initial; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;li style="list-style-type: none; list-style-position: initial; list-style-image: initial; padding-left: 14px; margin-bottom: 3px; background-image: url(http://www.blogblog.com/tictac_blue/tictac_blue.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 0% 6px; "&gt;&lt;span style="font-weight: bold; "&gt;Define the DataGrid Control&lt;/span&gt;
&lt;br /&gt;&lt;pre&gt;&lt;code style="color: rgb(153, 102, 102); "&gt;&lt;mx:datagrid id="sitesDataGrid" dataprovider="{siteList}" usehandcursor="true"&gt;
&lt;br /&gt;&lt;mx:columns&gt;
&lt;br /&gt;&lt;mx:datagridcolumn headertext="Top Rated Sites" datafield="col1"&gt;
&lt;br /&gt;   &lt;mx:itemrenderer&gt;
&lt;br /&gt;     &lt;mx:component&gt;    
&lt;br /&gt;       &lt;mx:Label text="{data.Name}" color='#009ad4'
&lt;br /&gt;             rollOver="setStyle('textDecoration','underline')"
&lt;br /&gt;             rollOut="setStyle('textDecoration','none')"
&lt;br /&gt;             useHandCursor="true" buttonMode="true"
&lt;br /&gt;             mouseChildren="false"
&lt;br /&gt;             click='navigateToURL(new URLRequest(data.URL),"_mine")'
&lt;br /&gt;      &lt;/mx:Label&gt;
&lt;br /&gt;    &lt;/mx:Component&gt;
&lt;br /&gt;   &lt;/mx:itemRenderer&gt;
&lt;br /&gt; &lt;/mx:DataGridColumn&gt;
&lt;br /&gt;&lt;/mx:columns&gt;
&lt;br /&gt;&lt;/mx:DataGrid&gt;
&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;&lt;span style="font-style: italic; "&gt;data&lt;/span&gt; refers the object being rendered. So, &lt;span style="font-style: italic; "&gt;data.Name&lt;/span&gt; refers the the instance data &lt;span style="font-style: italic; "&gt;Name&lt;/span&gt; within the object. Here the item renderer defines each item from the site list as a label. The label is then styled as follows:
&lt;br /&gt;&lt;ul style="list-style-type: none; list-style-position: initial; list-style-image: initial; margin-left: 10px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;
&lt;br /&gt;&lt;li style="list-style-type: none; list-style-position: initial; list-style-image: initial; padding-left: 14px; margin-bottom: 3px; background-image: url(http://www.blogblog.com/tictac_blue/tictac_blue.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 0% 6px; "&gt;The text is assigned the color #009ad4&lt;/li&gt;
&lt;br /&gt;&lt;li style="list-style-type: none; list-style-position: initial; list-style-image: initial; padding-left: 14px; margin-bottom: 3px; background-image: url(http://www.blogblog.com/tictac_blue/tictac_blue.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 0% 6px; "&gt;Text is underlined when the cursor is placed on it and removed when rolled out.&lt;/li&gt;
&lt;br /&gt;&lt;li style="list-style-type: none; list-style-position: initial; list-style-image: initial; padding-left: 14px; margin-bottom: 3px; background-image: url(http://www.blogblog.com/tictac_blue/tictac_blue.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 0% 6px; "&gt;It uses the hand cursor for the mouse&lt;/li&gt;
&lt;br /&gt;&lt;li style="list-style-type: none; list-style-position: initial; list-style-image: initial; padding-left: 14px; margin-bottom: 3px; background-image: url(http://www.blogblog.com/tictac_blue/tictac_blue.gif); background-repeat: no-repeat; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: initial; background-position: 0% 6px; "&gt;When text is clicked it calls navigateToURL method to launch the web site. If &lt;span style="font-style: italic; "&gt;click&lt;/span&gt; event is calling a method defined in your file, you need to qualify the call with&lt;span style="font-style: italic; "&gt;outerDocument&lt;/span&gt; to bring the functions within scope. For example, 
&lt;br /&gt;&lt;pre&gt;&lt;code style="color: rgb(153, 102, 102); "&gt;click='outerDocument.myFunction(data.URL)'&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-4090025657753966745?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=oSoLQIEb-dA:NeAsvvOdEsU:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=oSoLQIEb-dA:NeAsvvOdEsU:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=oSoLQIEb-dA:NeAsvvOdEsU:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=oSoLQIEb-dA:NeAsvvOdEsU:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=oSoLQIEb-dA:NeAsvvOdEsU:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/oSoLQIEb-dA" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/oSoLQIEb-dA/customizing-flex-datagrid-with.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/07/customizing-flex-datagrid-with.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-926383204329138158</guid><pubDate>Mon, 06 Jul 2009 11:21:00 +0000</pubDate><atom:updated>2009-07-06T04:22:04.996-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Vs JAVA</category><title>Calling a JavaScript Function from A Flex Application</title><description>&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana; font-size: 13px; line-height: 19px; "&gt;Sometimes it might be necessary to call a Javascript function from your Flex application. The technique is quite simple. It involves sending the Javascript function name along with any parameters to the ExternalInterface class. For example, let's assume that a Javascript function called &lt;span style="font-style: italic; "&gt;changeMainContent&lt;/span&gt; was defined to take a tag name (id) and a url. Normally using Javascript the functions is called this way: changeMainContent(id, url). Let's define a Flex method that invokes this Javascript method:&lt;br /&gt;&lt;pre&gt;&lt;code style="color: rgb(153, 102, 102); "&gt;public function callWrapper(id:String, url:String):void {&lt;br /&gt;   var f:String = "changeMainContent";//Javascript function&lt;br /&gt;   ExternalInterface.call(f,id, url);&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Now a call this method when a button is clicked is as follows:&lt;br /&gt;&lt;pre&gt;&lt;code style="color: rgb(153, 102, 102); "&gt;&lt;mx:button click="'callWrapper(id,"&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-926383204329138158?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=ZauKF4gDvgM:pwrZkDzlHNs:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=ZauKF4gDvgM:pwrZkDzlHNs:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=ZauKF4gDvgM:pwrZkDzlHNs:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=ZauKF4gDvgM:pwrZkDzlHNs:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ZauKF4gDvgM:pwrZkDzlHNs:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/ZauKF4gDvgM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/ZauKF4gDvgM/calling-javascript-function-from-flex.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/07/calling-javascript-function-from-flex.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-1927128011773097917</guid><pubDate>Mon, 06 Jul 2009 11:18:00 +0000</pubDate><atom:updated>2009-07-06T04:21:32.757-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Examples</category><title>Flex Associative Arrays</title><description>&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana; font-size: 13px; line-height: 19px; "&gt;In this example I will be showing the use of associative array to change the content of a DataGrid control. Associative arrays work just like regular arrays except they use an Object (normally a string) as their index. For example, &lt;code style="color: rgb(153, 102, 102); "&gt;inventory['price'] = 12.99.&lt;/code&gt; I will be creating an associative array of ArrayCollections. Each of these ArrayCollections will be used to populate a DataGrid.&lt;br /&gt;&lt;br /&gt;First let's create the ComboBox and the DataGrid controls:&lt;br /&gt;&lt;pre&gt;&lt;code style="color: rgb(153, 102, 102); "&gt;&lt;br /&gt;&lt;mx:ComboBox id="cbCategory" x="10" y="37"&lt;br /&gt;   dataProvider="{categories}"&lt;br /&gt;   change="changeCBHandler()"&gt;&lt;/mx:ComboBox&gt;&lt;br /&gt;&lt;br /&gt;&lt;mx:DataGrid  id="dgSites" x="178" y="36"&lt;br /&gt;               dataProvider="{searchList}"&gt;&lt;br /&gt;   &lt;mx:columns&gt;&lt;br /&gt;   &lt;mx:datagridcolumn headertext="Site Name" datafield="name"&gt;&lt;br /&gt;   &lt;mx:datagridcolumn headertext="URL" datafield="url"&gt; &lt;br /&gt;   &lt;/mx:columns&gt;&lt;br /&gt;&lt;/mx:DataGrid&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now let's look at the code used in these examples. Comments are provided throughout the code.&lt;br /&gt;&lt;pre&gt;&lt;code style="color: rgb(153, 102, 102); "&gt;&lt;br /&gt;&lt;br /&gt;import mx.collections.ArrayCollection;&lt;br /&gt;&lt;br /&gt;//Array for the ComboBox control&lt;br /&gt;[Bindable]&lt;br /&gt;private var categories:ArrayCollection =&lt;br /&gt;new ArrayCollection(["Search", "News"]);&lt;br /&gt;&lt;br /&gt;//Array collections to be placed in the Associative Array&lt;br /&gt;[Bindable]&lt;br /&gt;private var searchList:ArrayCollection = new ArrayCollection([&lt;br /&gt;{name:'Yahoo',url:'http://yahoo.com'},&lt;br /&gt;{name:'Google',url:'http://google.com'},&lt;br /&gt;{name:'Ask', url:'http://ask.com'}]);&lt;br /&gt;&lt;br /&gt;[Bindable]&lt;br /&gt;private var newsList:ArrayCollection = new ArrayCollection([&lt;br /&gt;{name:'CNN', url:'http://cnn.com'},&lt;br /&gt;{name:'Yahoo News', url:'http://news.yahoo.com'},&lt;br /&gt;{name:'CNet', url:'http://cnet.com'}]);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;//Associative Array&lt;br /&gt;[Bindable]&lt;br /&gt;private var allLists:Array = new Array();&lt;br /&gt;&lt;br /&gt;//Intialization of the Associative array&lt;br /&gt;//to be called on applicationComplete event&lt;br /&gt;private function loadAllLists():void {&lt;br /&gt; &lt;br /&gt;allLists['Search'] = searchList;&lt;br /&gt;allLists['News'] = newsList;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;//Event handler for the change event&lt;br /&gt;private function changeCBHandler():void {&lt;br /&gt;var category:String = cbCategory.selectedLabel;&lt;br /&gt;dgSites.dataProvider = allLists[category];&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt;]]&gt;&lt;br /&gt;Here is the complete application. Right click to see the complete source code.&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span class="Apple-style-span" style="color: rgb(153, 102, 102);"&gt;&lt;span class="Apple-style-span" style="color: rgb(51, 51, 51); font-family: Verdana; white-space: normal; "&gt;&lt;br /&gt;&lt;embed src="http://nasseef.net/projects/aarrays/AssociativeArrays.swf" quality="high" bgcolor="#FFFFFF" width="400" height="460" align="" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-1927128011773097917?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=7j3migi6a08:IWafDTuXtd8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=7j3migi6a08:IWafDTuXtd8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=7j3migi6a08:IWafDTuXtd8:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=7j3migi6a08:IWafDTuXtd8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=7j3migi6a08:IWafDTuXtd8:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/7j3migi6a08" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/7j3migi6a08/flex-associative-arrays.html</link><author>noreply@blogger.com (Jon)</author><enclosure url="http://nasseef.net/projects/aarrays/AssociativeArrays.swf" length="275363" type="application/x-shockwave-flash" /><media:content url="http://nasseef.net/projects/aarrays/AssociativeArrays.swf" fileSize="275363" type="application/x-shockwave-flash" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>In this example I will be showing the use of associative array to change the content of a DataGrid control. Associative arrays work just like regular arrays except they use an Object (normally a string) as their index. For example, inventory['price'] = 12</itunes:subtitle><itunes:author>noreply@blogger.com (Jon)</itunes:author><itunes:summary>In this example I will be showing the use of associative array to change the content of a DataGrid control. Associative arrays work just like regular arrays except they use an Object (normally a string) as their index. For example, inventory['price'] = 12.99. I will be creating an associative array of ArrayCollections. Each of these ArrayCollections will be used to populate a DataGrid. First let's create the ComboBox and the DataGrid controls: Now let's look at the code used in these examples. Comments are provided throughout the code. import mx.collections.ArrayCollection; //Array for the ComboBox control [Bindable] private var categories:ArrayCollection = new ArrayCollection(["Search", "News"]); //Array collections to be placed in the Associative Array [Bindable] private var searchList:ArrayCollection = new ArrayCollection([ {name:'Yahoo',url:'http://yahoo.com'}, {name:'Google',url:'http://google.com'}, {name:'Ask', url:'http://ask.com'}]); [Bindable] private var newsList:ArrayCollection = new ArrayCollection([ {name:'CNN', url:'http://cnn.com'}, {name:'Yahoo News', url:'http://news.yahoo.com'}, {name:'CNet', url:'http://cnet.com'}]); //Associative Array [Bindable] private var allLists:Array = new Array(); //Intialization of the Associative array //to be called on applicationComplete event private function loadAllLists():void { allLists['Search'] = searchList; allLists['News'] = newsList; } //Event handler for the change event private function changeCBHandler():void { var category:String = cbCategory.selectedLabel; dgSites.dataProvider = allLists[category]; } ]] Here is the complete application. Right click to see the complete source code. </itunes:summary><itunes:keywords>Flex Examples</itunes:keywords><feedburner:origLink>http://flexexamples.blogspot.com/2009/07/flex-associative-arrays.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-5756818526111806107</guid><pubDate>Mon, 22 Jun 2009 08:57:00 +0000</pubDate><atom:updated>2009-06-22T01:58:25.709-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">flex vs flash</category><title>Importing Flash assets into Flex</title><description>Flex Component Kit for CS3&lt;br /&gt;The Flex Component Kit for Flash CS3 allows you to create interactive, animated content in Flash, and use it in Flex as a Flex component.&lt;br /&gt;Please download and install this component kit before proceeding to the next sections.&lt;br /&gt;URL for download:&lt;br /&gt;Flex Component Kit&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You typically import two types of assets&lt;br /&gt;Static assets: Assets used for simple artwork or skins that do not contain any ActionScript 3.0 code.&lt;br /&gt;Dynamic assets: Assets that correspond to Flex components and contain ActionScript 3.0 code. These components are designed to work with Flex features such as view states and transitions, skinning, and tool tips. To use dynamic assets in a Flex application, export the assets to a SWC file, and then link the SWC file to your Flex application.&lt;br /&gt;For importing assets in&lt;br /&gt;&lt;br /&gt;Static Assets&lt;br /&gt;Creating static assets in Flash CS3&lt;br /&gt;Few points to be considered while creating assets for using in Flex:&lt;br /&gt;Registration Point&lt;br /&gt;The registration point for the exported symbol must be the upper left corner. If you have Flash content that has a different registration point you can always wrap the content in a new symbol with an upper left registration point.&lt;br /&gt;Frame Rate&lt;br /&gt;In order for the timing to remain consistent, the Flash frame rate must match the Flex frame rate. The default Flex frame rate is 24fps, so it is recommended that the Flash content matches this. If needed, the Flex frame rate can be set to a different value, although this should only be done as a fallback. Setting the Flex frame rate to a value less than 24fps will cause sluggishness in the UI.&lt;br /&gt;Content Bounds&lt;br /&gt;By default, the measured size of the Flash content matches the actual size. Any changes to the content size will automatically be recognized by Flex, and the component will be layed out again in its new size. You can avoid the resizing done by Flex when the flash asset is resized using the Bounding Box, which is explained below.&lt;br /&gt;Symbol Type&lt;br /&gt;Only “Movie Clip” and “Button” symbols can be imported in Flex.&lt;br /&gt;Creating the asset&lt;br /&gt;After creating the shape using the drawing tools in Flash CS3, select the shape and press F8 (shortcut for converting to symbol). In the convert to symbol dialog box, do the following&lt;br /&gt;In the “Name” text box enter the name which you want use in Flex to refer to this symbol&lt;br /&gt;Under “Linkage” section, select the “Export to action script” check box. This will make sure the symbol is visible in Flex.&lt;br /&gt;Press OK to create the symbol.&lt;br /&gt;&lt;br /&gt;Importing static assets&lt;br /&gt;Use Flash CS3 to create static assets. You can either embed the entire SWF or selected objects from the library.&lt;br /&gt;Embed entire SWF&lt;br /&gt;&lt;mx:Script&gt;&lt;br /&gt;&lt;![CDATA[&lt;br /&gt;[Embed(source="../assets/sample.swf")]&lt;br /&gt;[Bindable]&lt;br /&gt;public var sampleSwf:Class;&lt;br /&gt;]]&gt;&lt;br /&gt;&lt;/mx:Script&gt;&lt;br /&gt;&lt;mx:Image source="{sampleSwf}"/&gt;&lt;br /&gt;Embed library symbols&lt;br /&gt;&lt;mx:Script&gt;&lt;br /&gt;&lt;![CDATA[&lt;br /&gt;[Embed(source="../assets/sample.swf", symbol="Normal")]&lt;br /&gt;[Bindable]&lt;br /&gt;public var logoNormal:Class;&lt;br /&gt;]]&gt;&lt;br /&gt;&lt;/mx:Script&gt;&lt;br /&gt;&lt;mx:Button upSkin="{logoNormal}" click="anim.currentState = 'LastOne'" overSkin="{logoMouseOver}" downSkin="{logoClicked}"/&gt;&lt;br /&gt;value to the “symbol” attribute should be the name of the symbol created in using Flash CS3.&lt;br /&gt;Dynamic Assets&lt;br /&gt;For importing dynamic assets into Flex application you need Flex component kit for Flash CS3.&lt;br /&gt;Please refer to http://blogs.adobe.com/flexdoc/pdf/swf9.pdf for more details on how to import dynamic assets in to your Flex application.&lt;br /&gt;References:&lt;br /&gt;Adobe wiki on component kit&lt;br /&gt;http://adobedev.adobe.acrobat.com/p75214263/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-5756818526111806107?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=b4mREmAQ03A:byS064w3u5g:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=b4mREmAQ03A:byS064w3u5g:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=b4mREmAQ03A:byS064w3u5g:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=b4mREmAQ03A:byS064w3u5g:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=b4mREmAQ03A:byS064w3u5g:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/b4mREmAQ03A" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/b4mREmAQ03A/importing-flash-assets-into-flex.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/06/importing-flash-assets-into-flex.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-8694548077011669093</guid><pubDate>Mon, 22 Jun 2009 08:54:00 +0000</pubDate><atom:updated>2009-06-22T01:57:46.403-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Vs JAVA</category><title>Handling Java Exceptions in Flex</title><description>&lt;span class="Apple-style-span" style="font-size: 13px; line-height: 19px; "&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;b style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Accessing the Throwable object in Flex&lt;/b&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;RemoteObject component invokes the &lt;i style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;fault&lt;/i&gt; event when an error occurs while remote method invocation. The fault event handler is provided with the FaultEvent object. This FaultEvent object has property named &lt;b style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;i style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;message&lt;/i&gt;&lt;/b&gt; of type mx.messaging.messages.ErrorMessage. The &lt;b style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;i style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;message&lt;/i&gt;&lt;/b&gt; property holds the Throwable object from the Java method in the &lt;b style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;i style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;rootCause&lt;/i&gt;&lt;/b&gt; property. We need to use this &lt;b style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;i style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;rootCause&lt;/i&gt;&lt;/b&gt;property to retrieve the properties which are set to the Throwable object in Java. All the public properties from the Throwable object are available.&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;We will see a sample application. In this application I am creating a custom Exception and adding a getter method to that, which will return my custom data. From the Flex application I will access both the error message and the custom data.&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;b style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;MyException.java&lt;/b&gt;&lt;/p&gt;&lt;blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-left: 1em; font-style: italic; "&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;public class MyException extends Exception {&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;public MyException(String message) {&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;super(message);&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;public String getMyName(){&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;return “Sujit Reddy G”;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;b style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Method throwing exception&lt;/b&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;This method will throw the custom exception created above, add this method to a Java class. Invoke the below method using RemoteObject component in Flex.&lt;/p&gt;&lt;blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-left: 1em; font-style: italic; "&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;public void throwCheckedException() throws Exception{&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;throw new MyException(”This is a checked exception”);&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;b style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Reading values in Flex application&lt;/b&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;We add the method below as the fault event handler to the RemoteObject component in the Flex application. You can see that we accessed the &lt;b style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;i style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;rootCause&lt;/i&gt;&lt;/b&gt; object to retrieve the properties of the custom Exception object returned from the Java method.&lt;/p&gt;&lt;blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-left: 1em; font-style: italic; "&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;private function handleException(event:FaultEvent):void{&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;var errorMessage:ErrorMessage = event.message as ErrorMessage;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;Alert.show(errorMessage.rootCause.message);&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;Alert.show(errorMessage.rootCause.myName);&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;}&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;We are adding the above method as fault event handler to the RemoteObject component.&lt;/p&gt;&lt;blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-left: 1em; font-style: italic; "&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;&lt;mx:remoteobject id="”exceptionObj”" destination="”CreatingRpc”" result="”handleRPC(event)”&lt;/font"&gt;&lt;/p&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;fault=”handleException(event)”/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;Invoking the method in the Java class on button click&lt;/p&gt;&lt;blockquote style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-left: 1em; font-style: italic; "&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color:#666699;"&gt;&lt;mx:button label="”Invoke" click="”exceptionObj.throwCheckedException()”/"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-left: 0px; padding-bottom: 10px; "&gt;You can also use the flex.messaging.MessageException. This class is packaged in the flex-messaging-core.jar. You should throw MessagException instead of MyException or any custom exception created. MessageException provides a property named extendedData, which is a HashMap. You can add any data to this property and access it from the Flex application using ErrorMessage(event.message).extendedData.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-8694548077011669093?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fmw4vjgLOm4:ssl4XNmcd4M:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fmw4vjgLOm4:ssl4XNmcd4M:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fmw4vjgLOm4:ssl4XNmcd4M:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=fmw4vjgLOm4:ssl4XNmcd4M:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=fmw4vjgLOm4:ssl4XNmcd4M:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/fmw4vjgLOm4" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/fmw4vjgLOm4/handling-java-exceptions-in-flex.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/06/handling-java-exceptions-in-flex.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-6909058356529028997</guid><pubDate>Mon, 22 Jun 2009 08:52:00 +0000</pubDate><atom:updated>2009-06-22T01:53:41.043-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Vs JAVA</category><title>Learn flex with java</title><description>&lt;span class="Apple-style-span" style="font-family: arial; font-size: 13px; "&gt;&lt;h3 class="r" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: medium; display: inline; "&gt;&lt;a href="http://www.adobe.com/devnet/flex/flex_java.html" class="l" onmousedown="return clk(this.href,'','','res','1','')" style="color: rgb(34, 0, 204); "&gt;Adobe - &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Flex&lt;/em&gt; Developer Center - Learn &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Flex&lt;/em&gt; and &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Java&lt;/em&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="s" style="max-width: 42em; "&gt;SpringSource and Adobe are collaborating to make it easy for &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Java&lt;/em&gt; developers to create enterprise-class rich Internet applications (RIAs) using Adobe &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Flex&lt;/em&gt; &lt;b style="text-decoration: inherit; "&gt;...&lt;/b&gt;&lt;br /&gt;&lt;cite style="color: green; font-style: normal; "&gt;www.adobe.com/devnet/&lt;b style="text-decoration: inherit; "&gt;flex&lt;/b&gt;/&lt;b style="text-decoration: inherit; "&gt;flex&lt;/b&gt;_&lt;b style="text-decoration: inherit; "&gt;java&lt;/b&gt;.html&lt;/cite&gt;&lt;/div&gt;&lt;div class="s" style="max-width: 42em; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 128, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="s" style="max-width: 42em; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 128, 0);"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); "&gt;&lt;h3 class="r" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: medium; display: inline; "&gt;&lt;a href="http://learn.adobe.com/wiki/display/Flex/Flex+and+Java" class="l" onmousedown="return clk(this.href,'','','res','2','')" style="color: rgb(34, 0, 204); "&gt;&lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Flex&lt;/em&gt; and &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Java&lt;/em&gt; - &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Flex&lt;/em&gt; 3 Getting Started - Adobe Learning Resources&lt;/a&gt;&lt;/h3&gt;&lt;div class="s" style="max-width: 42em; "&gt; &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Flex&lt;/em&gt; is a great solution for &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Java&lt;/em&gt; developers because it enables them to utilize the power of &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Java&lt;/em&gt; servers while creating expressive and &lt;b style="text-decoration: inherit; "&gt;...&lt;/b&gt;&lt;br /&gt;&lt;cite style="color: green; font-style: normal; "&gt;learn.adobe.com/wiki/display/&lt;b style="text-decoration: inherit; "&gt;Flex&lt;/b&gt;/&lt;b style="text-decoration: inherit; "&gt;Flex&lt;/b&gt;+and+&lt;b style="text-decoration: inherit; "&gt;Java&lt;/b&gt;&lt;/cite&gt;&lt;/div&gt;&lt;div class="s" style="max-width: 42em; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 128, 0); font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="s" style="max-width: 42em; "&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 128, 0); font-weight: bold;"&gt;&lt;span class="Apple-style-span" style="color: rgb(0, 0, 0); font-weight: normal; "&gt;&lt;h3 class="r" style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: medium; display: inline; "&gt;&lt;a href="http://www.manning.com/allmon/" class="l" onmousedown="return clk(this.href,'','','res','9','')" style="color: rgb(34, 0, 204); "&gt;Manning: &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Flex&lt;/em&gt; on &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Java&lt;/em&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class="s" style="max-width: 42em; "&gt;&lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Flex&lt;/em&gt; on &lt;em style="font-weight: bold; font-style: normal; text-decoration: inherit; "&gt;Java&lt;/em&gt; assumes you live in the real world—not the demo. This unique book shows you how to refactor an existing web application using the server-side &lt;b style="text-decoration: inherit; "&gt;...&lt;/b&gt;&lt;br /&gt;&lt;cite style="color: green; font-style: normal; "&gt;www.manning.com/allmon/&lt;/cite&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-6909058356529028997?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=rAcZQQ2dGZQ:SS3ausRad8Y:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=rAcZQQ2dGZQ:SS3ausRad8Y:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=rAcZQQ2dGZQ:SS3ausRad8Y:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=rAcZQQ2dGZQ:SS3ausRad8Y:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=rAcZQQ2dGZQ:SS3ausRad8Y:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/rAcZQQ2dGZQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/rAcZQQ2dGZQ/learn-flex-with-java.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/06/learn-flex-with-java.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-8899359919363490246</guid><pubDate>Wed, 10 Jun 2009 19:30:00 +0000</pubDate><atom:updated>2009-06-10T12:30:28.174-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Examples</category><title>Flex with Ajax</title><description>&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 11px; "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;The Flex Ajax Bridge (FABridge) is a small code library that you can insert into an Flex application, a Flex component, or an empty SWF file to expose it to scripting in the browser.&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Rather than having to define new, simplified APIs to expose a graph of ActionScript objects to JavaScript, with FABridge you can make your ActionScript classes available to JavaScript without any additional coding. After you insert the library, essentially anything you can do with ActionScript, you can do with JavaScript.&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Adobe Flash Player has the native ability, through the External API (the ExternalInterface class), to call JavaScript from ActionScript, and vice versa. But ExternalInterface has some limitations:&lt;/p&gt;&lt;ul style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 15px; margin-bottom: 0px; margin-left: 15px; "&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;The ExternalInterface class requires you, the developer, to write a library of extra code in both ActionScript and JavaScript, to expose the functionality of your Flex application to JavaScript, and vice versa.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;The ExternalInterface class also limits what you can pass across the gap - primitive types, arrays, and simple objects are legal, but user-defined classes, with associated properties and methods, are off-limits.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;The ExternalInterface class lets you define an interface so your JavaScript can call your ActionScript. FABridge lets you write JavaScript instead of ActionScript.&lt;/li&gt;&lt;/ul&gt;&lt;h2 class="h2nobreak" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; padding-top: 1em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; margin-top: 20px; margin-right: 0px; margin-bottom: 0px; margin-left: 0em; font-style: normal; "&gt;&lt;a name="193691" id="193691" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/a&gt;When to use the Flex Ajax Bridge&lt;/h2&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;The FABridge library is useful in the following situations:&lt;/p&gt;&lt;ul style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 15px; margin-bottom: 0px; margin-left: 15px; "&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;You want to use a rich Flex component in an Ajax application but do not want to write a lot of Flex code. If you wrap the component in a FABridge-enabled stub application, you can script it entirely from JavaScript, including using JavaScript generated remotely by the server.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;You have only one or two people on your team who know Flex. The FABridge library lets everyone on your team use the work produced by one or two Flex specialists.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;You are building an integrated rich Internet application (RIA) with Flex and Ajax portions.Although you could build the integration yourself using ExternalInterface, you might find it faster to start with the FABridge.&lt;/li&gt;&lt;/ul&gt;&lt;h2 class="h2nobreak" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; padding-top: 1em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; margin-top: 20px; margin-right: 0px; margin-bottom: 0px; margin-left: 0em; font-style: normal; "&gt;&lt;a name="193700" id="193700" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/a&gt;Requirements for using the Ajax Bridge&lt;/h2&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;To use the FABridge library and samples, you must have the following:&lt;/p&gt;&lt;ul style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 15px; margin-bottom: 0px; margin-left: 15px; "&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;Flex Ajax Bridge, which is included in the following directory of the Flex 3 SDK installation:&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 11px; "&gt;&lt;i style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;installation_dir&lt;/i&gt;\frameworks\javascript\fabridge&lt;/p&gt;&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;Adobe Flex SDK&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;Adobe® Flash® Player 9 or Adobe® AIR™&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;Microsoft Internet Explorer, Mozilla Firefox, or Opera with JavaScript enabled&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;Any HTTP server to run the samples&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;To run the samples:&lt;/p&gt;&lt;ol style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 23px; margin-bottom: 0px; margin-left: 23px; "&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; "&gt;Browse to the files found within the &lt;i style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;installation_dir&lt;/i&gt;\frameworks\javascript\fabridge&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; "&gt;Place the src and samples folders side by side on any HTTP server.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; "&gt;Open a web browser to http://&lt;i style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;yourwebserver&lt;/i&gt;/samples/FABridgeSample.html and samples/SimpleSample.html and follow the instructions there. Make sure you access the samples through http:// URLs and not file:// URLs. The Flash Player security sandbox prevents them from working correctly when they are accessed as local files.&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-8899359919363490246?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=Ngz6Ov0vhoM:9KM_bvcVbj8:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=Ngz6Ov0vhoM:9KM_bvcVbj8:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=Ngz6Ov0vhoM:9KM_bvcVbj8:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=Ngz6Ov0vhoM:9KM_bvcVbj8:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=Ngz6Ov0vhoM:9KM_bvcVbj8:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/Ngz6Ov0vhoM" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/Ngz6Ov0vhoM/flex-with-ajax.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/06/flex-with-ajax.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-8531637487496226270</guid><pubDate>Wed, 10 Jun 2009 19:22:00 +0000</pubDate><atom:updated>2009-06-10T12:23:57.127-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Examples</category><title>Top Flex Tips</title><description>&lt;span class="Apple-style-span" style="font-family: Verdana; color: rgb(51, 51, 51); font-size: 11px; line-height: 13px; "&gt;&lt;p style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; margin-top: 3px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;&lt;table class="sectionMacro" border="0" cellpadding="5" cellspacing="0" width="100%" style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; "&gt;&lt;tbody&gt;&lt;tr style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; "&gt;&lt;td class="confluenceTd" valign="top" width="80%" style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 3px; padding-right: 4px; padding-bottom: 3px; padding-left: 4px; vertical-align: top; border-width: initial; border-color: initial; "&gt;&lt;h2 style="font-size: 14px; line-height: normal; font-weight: bold; background-color: rgb(255, 255, 255); border-bottom-width: initial; border-bottom-style: none; border-bottom-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 13px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(51, 51, 51); "&gt;Top Things You Need to Know When Working With Flex&lt;/h2&gt;&lt;p style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; margin-top: 16px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Explore the key features of Flex with code examples and working sample applications. These step-by-step code-based tutorials are written in easy to digest 15 minute chunks. We suggest going through them (at least glancing at them) in order, but you can also pick and choose among the topics if you're already familiar with the concepts:&lt;/p&gt;&lt;/td&gt;&lt;td class="confluenceTd" valign="top" style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); padding-top: 3px; padding-right: 4px; padding-bottom: 3px; padding-left: 4px; vertical-align: top; border-width: initial; border-color: initial; "&gt; &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/p&gt;&lt;h2 style="font-size: 14px; line-height: normal; font-weight: bold; background-color: rgb(255, 255, 255); border-bottom-width: initial; border-bottom-style: none; border-bottom-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 13px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(51, 51, 51); "&gt;&lt;a name="PartIII.Topthingsyouneedtoknow-A.WorkingwithData3a.WorkingwithData" style="text-decoration: none; "&gt;&lt;/a&gt;&lt;a href="http://learn.adobe.com/wiki/display/Flex/3a.+Working+with+Data" title="3a. Working with Data" style="color: rgb(0, 51, 102); text-decoration: none; "&gt;A. Working with Data&lt;/a&gt;&lt;/h2&gt;&lt;p style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; margin-top: 16px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Use data modeling and data binding when working with data.&lt;/p&gt;&lt;h2 style="font-size: 14px; line-height: normal; font-weight: bold; background-color: rgb(255, 255, 255); border-bottom-width: initial; border-bottom-style: none; border-bottom-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 13px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(51, 51, 51); "&gt;&lt;a name="PartIII.Topthingsyouneedtoknow-B.HandlingEvents3b.HandlingEvents" style="text-decoration: none; "&gt;&lt;/a&gt;&lt;a href="http://learn.adobe.com/wiki/display/Flex/3b.+Handling+Events" title="3b. Handling Events" style="color: rgb(0, 51, 102); text-decoration: none; "&gt;B. Handling Events&lt;/a&gt;&lt;/h2&gt;&lt;p style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; margin-top: 16px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Use event handler functions to handle asynchronous network and UI events.&lt;/p&gt;&lt;h2 style="font-size: 14px; line-height: normal; font-weight: bold; background-color: rgb(255, 255, 255); border-bottom-width: initial; border-bottom-style: none; border-bottom-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 13px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(51, 51, 51); "&gt;&lt;a name="PartIII.Topthingsyouneedtoknow-C.DesigningaUI%3AUsingComponentsandContainers3c.DesigningaUILayout" style="text-decoration: none; "&gt;&lt;/a&gt;&lt;a href="http://learn.adobe.com/wiki/display/Flex/3c.+Designing+a+UI+-+Layout" title="3c. Designing a UI - Layout" style="color: rgb(0, 51, 102); text-decoration: none; "&gt;C. Designing a UI: Using Components and Containers&lt;/a&gt;&lt;/h2&gt;&lt;p style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; margin-top: 16px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Use Flex's built-in components and containers to lay out your Flex Application&lt;/p&gt;&lt;h2 style="font-size: 14px; line-height: normal; font-weight: bold; background-color: rgb(255, 255, 255); border-bottom-width: initial; border-bottom-style: none; border-bottom-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 13px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(51, 51, 51); "&gt;&lt;a name="PartIII.Topthingsyouneedtoknow-D.DesigningaUI%3ADisplayingListsofItems3d.Displayinglistsofitems" style="text-decoration: none; "&gt;&lt;/a&gt;&lt;a href="http://learn.adobe.com/wiki/display/Flex/3d.+Displaying+lists+of+items" title="3d. Displaying lists of items" style="color: rgb(0, 51, 102); text-decoration: none; "&gt;D. Designing a UI: Displaying Lists of Items&lt;/a&gt;&lt;/h2&gt;&lt;p style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; margin-top: 16px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Use the powerful List based components of Flex to display groups of related data items using either the built-in or custom item renderers and item editors.&lt;/p&gt;&lt;h2 style="font-size: 14px; line-height: normal; font-weight: bold; background-color: rgb(255, 255, 255); border-bottom-width: initial; border-bottom-style: none; border-bottom-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 13px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(51, 51, 51); "&gt;&lt;a name="PartIII.Topthingsyouneedtoknow-E.DesigningaUI%3ACreatingamultipageapplication3e.Multipageapplications" style="text-decoration: none; "&gt;&lt;/a&gt;&lt;a href="http://learn.adobe.com/wiki/display/Flex/3e.+Multi-page+applications" title="3e. Multi-page applications" style="color: rgb(0, 51, 102); text-decoration: none; "&gt;E. Designing a UI: Creating a multi-page application&lt;/a&gt;&lt;/h2&gt;&lt;p style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; margin-top: 16px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Use navigation controls such as ViewStack and TabNavigator to easily add a navigaton system to your applicaton.&lt;/p&gt;&lt;h2 style="font-size: 14px; line-height: normal; font-weight: bold; background-color: rgb(255, 255, 255); border-bottom-width: initial; border-bottom-style: none; border-bottom-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 13px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(51, 51, 51); "&gt;&lt;a name="PartIII.Topthingsyouneedtoknow-F.ExtendingandCustomizingComponents3f.Customizingcomponents" style="text-decoration: none; "&gt;&lt;/a&gt;&lt;a href="http://learn.adobe.com/wiki/display/Flex/3f.+Customizing+components" title="3f. Customizing components" style="color: rgb(0, 51, 102); text-decoration: none; "&gt;F. Extending and Customizing Components&lt;/a&gt;&lt;/h2&gt;&lt;p style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; margin-top: 16px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Create your own components from scratch or by extending existing classes in the Flex Class Library using Object Oriented Programming and Code Behind Techniques.&lt;/p&gt;&lt;h2 style="font-size: 14px; line-height: normal; font-weight: bold; background-color: rgb(255, 255, 255); border-bottom-width: initial; border-bottom-style: none; border-bottom-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 13px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(51, 51, 51); "&gt;&lt;a name="PartIII.Topthingsyouneedtoknow-G.DebugginganApplication3g.Debugyourapplication" style="text-decoration: none; "&gt;&lt;/a&gt;&lt;a href="http://learn.adobe.com/wiki/display/Flex/3g.+Debug+your+application" title="3g. Debug your application" style="color: rgb(0, 51, 102); text-decoration: none; "&gt;G. Debugging an Application&lt;/a&gt;&lt;/h2&gt;&lt;p style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; margin-top: 16px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Learn about Flex Builder's rich debugging capabilities.&lt;/p&gt;&lt;h2 style="font-size: 14px; line-height: normal; font-weight: bold; background-color: rgb(255, 255, 255); border-bottom-width: initial; border-bottom-style: none; border-bottom-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 13px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; color: rgb(51, 51, 51); "&gt;&lt;a name="PartIII.Topthingsyouneedtoknow-ImporttheseprojectsintoFlexBuilder" style="text-decoration: none; "&gt;&lt;/a&gt;Import these projects into Flex Builder&lt;/h2&gt;&lt;p style="font-family: Verdana, arial, sans-serif; font-size: 11px; line-height: 13px; color: rgb(51, 51, 51); font-weight: normal; margin-top: 16px; margin-right: 0px; margin-bottom: 16px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "&gt;Each of these modules is available on the &lt;a href="http://learn.adobe.com/wiki/display/Flex/Download+Projects" title="Download Projects" style="color: rgb(0, 51, 102); text-decoration: none; "&gt;Download Projects Page&lt;/a&gt; as exported ZIP files that you can import into Flex Builder.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-8531637487496226270?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=F6nK7RvqAtg:9pTaOH5vKjo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=F6nK7RvqAtg:9pTaOH5vKjo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=F6nK7RvqAtg:9pTaOH5vKjo:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=F6nK7RvqAtg:9pTaOH5vKjo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=F6nK7RvqAtg:9pTaOH5vKjo:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/F6nK7RvqAtg" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/F6nK7RvqAtg/top-flex-tips.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/06/top-flex-tips.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-6246999961762934527</guid><pubDate>Wed, 10 Jun 2009 19:19:00 +0000</pubDate><atom:updated>2009-06-10T12:21:38.752-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Examples</category><title>What is a rich Internet application?</title><description>&lt;span class="Apple-style-span" style="font-family: Arial; color: rgb(51, 51, 51); font-size: 12px; line-height: 12px; "&gt;&lt;h2 style="font-weight: normal; line-height: 1em; margin-top: 1em; margin-bottom: 0.5em; font-size: 1.835em; color: rgb(79, 79, 79); "&gt;Ingredients for RIAs&lt;/h2&gt;&lt;div class="columns-2-AB-A" style="margin-bottom: 0.5em; float: left; width: 452px; "&gt;&lt;p style="font-size: 1.083em; line-height: 1.462; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; "&gt;RIAs may look rather sophisticated, but you don't need to be an expert Flex, Flash, or Adobe AIR developer to build one. You can build RIAs using a variety of tools, techniques, and technologies.&lt;/p&gt;&lt;ul style="word-spacing: -2ex; letter-spacing: -2ex; line-height: 0; list-style-type: disc; margin-left: 1ex; padding-left: 2.5ex; margin-top: 1em; margin-bottom: 1.35em; "&gt;&lt;li style="word-spacing: normal; letter-spacing: normal; line-height: 1.25em; font-size: 1em; padding-bottom: 0.5em; "&gt;If you're a coder interested in building complex interactive web apps such as branded, multimedia-rich business productivity or e-commerce apps, you can use &lt;a href="http://www.adobe.com/devnet/flex/" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Adobe Flex&lt;/a&gt; and &lt;a href="http://www.adobe.com/devnet/coldfusion/" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Adobe ColdFusion&lt;/a&gt;.&lt;/li&gt;&lt;li style="word-spacing: normal; letter-spacing: normal; line-height: 1.25em; font-size: 1em; padding-bottom: 0.5em; "&gt;If you're more into creating animations, games, or branded interactive marketing content, you can use &lt;a href="http://www.adobe.com/devnet/flash/" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Adobe Flash&lt;/a&gt;. Alternatively, you can take advantage of &lt;a href="http://www.adobe.com/devnet/ajax/" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Ajax frameworks&lt;/a&gt;, including Ext and the &lt;a href="http://www.adobe.com/devnet/spry/" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Spry framework for Ajax&lt;/a&gt;, to build HTML-based RIAs, using tools such as &lt;a href="http://www.adobe.com/devnet/dreamweaver/" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Adobe Dreamweaver&lt;/a&gt; or &lt;a href="http://www.adobe.com/devnet/ajax/" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Aptana Studio&lt;/a&gt;.&lt;/li&gt;&lt;li style="word-spacing: normal; letter-spacing: normal; line-height: 1.25em; font-size: 1em; padding-bottom: 0.5em; "&gt;To extend your JavaScript- and Ajax-based web apps, you can use the &lt;a href="http://labs.adobe.com/wiki/index.php/Ajax_Data_Services" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Ajax Data Services&lt;/a&gt; library or the &lt;a href="http://labs.adobe.com/wiki/index.php/Flash-Ajax_Video_Component" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Flash Ajax video component&lt;/a&gt;. These libraries and technologies enable rich media support, data services and synchronization, and server technologies for rapid development and deployment of RIAs.&lt;/li&gt;&lt;li style="word-spacing: normal; letter-spacing: normal; line-height: 1.25em; font-size: 1em; padding-bottom: 0.5em; "&gt;To take your Ajax, HTML, Flex, or Flash apps to the desktop, you can use&lt;a href="http://www.adobe.com/devnet/air/" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Adobe AIR&lt;/a&gt;. With Adobe AIR, you can build and deploy your RIAs to the desktop using the tools, technologies, and development models you employ today when developing for the browser.&lt;/li&gt;&lt;li style="word-spacing: normal; letter-spacing: normal; line-height: 1.25em; font-size: 1em; padding-bottom: 0.5em; "&gt;And to create prototypes of your web or AIR apps that help communicate your ideas, you can use &lt;a href="http://www.adobe.com/devnet/fireworks/" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;Adobe Fireworks&lt;/a&gt;.&lt;span class="Apple-style-span" style="line-height: 12px; "&gt;&lt;embed type="application/x-shockwave-flash" src="http://www.adobe.com/swf/shared/video/aeon/videoplayer.swf" width="448" height="302" id="edgemovie" name="edgemovie" bgcolor="#ffffff" quality="high" scale="noscale" salign="tl" wmode="opaque" flashvars="configURL=/devnet/projects/ria/xml/video_config.xml&amp;amp;stageWidth=448&amp;amp;stageHeight=302"&gt;&lt;/embed&gt;&lt;/span&gt;&lt;/li&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="letter-spacing: normal; line-height: 12px; word-spacing: 0px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="columns-2-AB-B" style="margin-bottom: 0.5em; float: right; width: 452px; "&gt;&lt;h4 style="line-height: 1.31; font-size: 1.083em; color: rgb(17, 17, 17); margin-top: 0px; margin-bottom: 0px; "&gt;Ingredients&lt;/h4&gt;&lt;ul style="word-spacing: -2ex; letter-spacing: -2ex; line-height: 0; list-style-type: disc; margin-left: 1ex; padding-left: 2.5ex; margin-top: 1em; margin-bottom: 1.35em; "&gt;&lt;li style="word-spacing: normal; letter-spacing: normal; line-height: 1.25em; font-size: 1em; padding-bottom: 0.5em; "&gt;An integrated development environment (IDE) or authoring tool such as Flex Builder, Flash, Dreamweaver, Aptana Studio, Eclipse, or a simple text editor&lt;/li&gt;&lt;li style="word-spacing: normal; letter-spacing: normal; line-height: 1.25em; font-size: 1em; padding-bottom: 0.5em; "&gt;A software development kit (SDK) such as Flex SDK or Adobe AIR SDK&lt;/li&gt;&lt;li style="word-spacing: normal; letter-spacing: normal; line-height: 1.25em; font-size: 1em; padding-bottom: 0.5em; "&gt;Images, videos, or other rich assets such as Flash content&lt;/li&gt;&lt;li style="word-spacing: normal; letter-spacing: normal; line-height: 1.25em; font-size: 1em; padding-bottom: 0.5em; "&gt;A web host or server space&lt;span class="Apple-style-span" style="line-height: 12px; "&gt;&lt;h2 style="font-weight: normal; line-height: 1em; margin-top: 1em; margin-bottom: 0.5em; font-size: 1.835em; color: rgb(79, 79, 79); "&gt;See RIAs in action&lt;/h2&gt;&lt;div class="columns-3-ABC-A" style="margin-bottom: 0.5em; float: left; width: 282px; "&gt;&lt;a href="http://fotoflexer.com/demos.php" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;&lt;p style="font-size: 1.083em; line-height: 1.462; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; "&gt;&lt;img src="http://www.adobe.com/devnet/projects/ria/images/fotoflexer.jpg" alt="FotoFlexer" width="248" height="148" border="0" class="border" style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: initial; border-color: initial; vertical-align: middle; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: initial; border-top-color: rgb(153, 153, 153); border-right-color: rgb(153, 153, 153); border-bottom-color: rgb(153, 153, 153); border-left-color: rgb(153, 153, 153); " /&gt;&lt;/p&gt;&lt;/a&gt;&lt;h4 style="line-height: 1.31; font-size: 1.083em; color: rgb(17, 17, 17); margin-top: 0px; margin-bottom: 0px; "&gt;&lt;a href="http://fotoflexer.com/demos.php" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; font-size: 1.25em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; font-family: Georgia, 'Times New Roman', Times, serif; "&gt;FotoFlexer&lt;/a&gt;&lt;/h4&gt;&lt;p style="font-size: 1.083em; line-height: 1.462; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; "&gt;Edit your images online with the powerful RIA features in FotoFlexer, built with Adobe Flex.&lt;/p&gt;&lt;/div&gt;&lt;div class="columns-3-ABC-B" style="margin-bottom: 0.5em; float: left; width: 282px; margin-left: 47px; "&gt;&lt;p style="font-size: 1.083em; line-height: 1.462; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; "&gt;&lt;a href="http://www.bigspaceship.com/archive/nikeair/" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;&lt;img src="http://www.adobe.com/devnet/projects/ria/images/nike_air.jpg" alt="Nike Air" width="248" height="148" border="0" class="border" style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: initial; border-color: initial; vertical-align: middle; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: initial; border-top-color: rgb(153, 153, 153); border-right-color: rgb(153, 153, 153); border-bottom-color: rgb(153, 153, 153); border-left-color: rgb(153, 153, 153); " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;h4 style="line-height: 1.31; font-size: 1.083em; color: rgb(17, 17, 17); margin-top: 0px; margin-bottom: 0px; "&gt;&lt;a href="http://www.bigspaceship.com/archive/nikeair/" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; font-size: 1.25em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; font-family: Georgia, 'Times New Roman', Times, serif; "&gt;Nike Air&lt;/a&gt;&lt;/h4&gt;&lt;p style="font-size: 1.083em; line-height: 1.462; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; "&gt;Experience the feel of the Nike brand in this Adobe Flash site built by Big Spaceship.&lt;/p&gt;&lt;/div&gt;&lt;div class="columns-3-ABC-C" style="margin-bottom: 0.5em; float: right; width: 282px; "&gt;&lt;a href="http://www.adobe.com/devnet/flex/tourdeflex/" style="color: rgb(0, 102, 204); text-decoration: none; "&gt;&lt;p style="font-size: 1.083em; line-height: 1.462; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; "&gt;&lt;img src="http://www.adobe.com/devnet/images/248x148/tour_de_flex248x148.gif" alt="Tour de Flex" width="248" height="148" border="0" class="border" style="border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: initial; border-color: initial; vertical-align: middle; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-color: initial; border-top-color: rgb(153, 153, 153); border-right-color: rgb(153, 153, 153); border-bottom-color: rgb(153, 153, 153); border-left-color: rgb(153, 153, 153); " /&gt;&lt;/p&gt;&lt;/a&gt;&lt;h4 style="line-height: 1.31; font-size: 1.083em; color: rgb(17, 17, 17); margin-top: 0px; margin-bottom: 0px; "&gt;&lt;a href="http://www.adobe.com/devnet/flex/tourdeflex/" target="_blank" style="color: rgb(0, 102, 204); text-decoration: none; font-size: 1.25em; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; font-family: Georgia, 'Times New Roman', Times, serif; "&gt;Tour de Flex&lt;/a&gt;&lt;/h4&gt;&lt;p style="font-size: 1.083em; line-height: 1.462; margin-top: 0px; padding-bottom: 1px; margin-bottom: 1.2em; "&gt;Explore what you can do with Flex in this Adobe AIR application.&lt;/p&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:100%;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px; line-height: 18px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="line-height: 15px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style="word-spacing: -2ex; letter-spacing: -2ex; line-height: 0; list-style-type: disc; margin-left: 1ex; padding-left: 2.5ex; margin-top: 1em; margin-bottom: 1.35em; "&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="letter-spacing: normal; line-height: 15px; word-spacing: 0px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-6246999961762934527?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=qBKzthvy4zQ:gEZoTimYQfo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=qBKzthvy4zQ:gEZoTimYQfo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=qBKzthvy4zQ:gEZoTimYQfo:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=qBKzthvy4zQ:gEZoTimYQfo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=qBKzthvy4zQ:gEZoTimYQfo:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/qBKzthvy4zQ" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/qBKzthvy4zQ/what-is-rich-internet-application.html</link><author>noreply@blogger.com (Jon)</author><enclosure url="http://www.adobe.com/swf/shared/video/aeon/videoplayer.swf" length="34518" type="application/x-shockwave-flash" /><media:content url="http://www.adobe.com/swf/shared/video/aeon/videoplayer.swf" fileSize="34518" type="application/x-shockwave-flash" /><itunes:explicit>no</itunes:explicit><itunes:subtitle>Ingredients for RIAsRIAs may look rather sophisticated, but you don't need to be an expert Flex, Flash, or Adobe AIR developer to build one. You can build RIAs using a variety of tools, techniques, and technologies.If you're a coder interested in building</itunes:subtitle><itunes:author>noreply@blogger.com (Jon)</itunes:author><itunes:summary>Ingredients for RIAsRIAs may look rather sophisticated, but you don't need to be an expert Flex, Flash, or Adobe AIR developer to build one. You can build RIAs using a variety of tools, techniques, and technologies.If you're a coder interested in building complex interactive web apps such as branded, multimedia-rich business productivity or e-commerce apps, you can use Adobe Flex and Adobe ColdFusion.If you're more into creating animations, games, or branded interactive marketing content, you can use Adobe Flash. Alternatively, you can take advantage of Ajax frameworks, including Ext and the Spry framework for Ajax, to build HTML-based RIAs, using tools such as Adobe Dreamweaver or Aptana Studio.To extend your JavaScript- and Ajax-based web apps, you can use the Ajax Data Services library or the Flash Ajax video component. These libraries and technologies enable rich media support, data services and synchronization, and server technologies for rapid development and deployment of RIAs.To take your Ajax, HTML, Flex, or Flash apps to the desktop, you can useAdobe AIR. With Adobe AIR, you can build and deploy your RIAs to the desktop using the tools, technologies, and development models you employ today when developing for the browser.And to create prototypes of your web or AIR apps that help communicate your ideas, you can use Adobe Fireworks. IngredientsAn integrated development environment (IDE) or authoring tool such as Flex Builder, Flash, Dreamweaver, Aptana Studio, Eclipse, or a simple text editorA software development kit (SDK) such as Flex SDK or Adobe AIR SDKImages, videos, or other rich assets such as Flash contentA web host or server spaceSee RIAs in actionFotoFlexerEdit your images online with the powerful RIA features in FotoFlexer, built with Adobe Flex.Nike AirExperience the feel of the Nike brand in this Adobe Flash site built by Big Spaceship.Tour de FlexExplore what you can do with Flex in this Adobe AIR application. </itunes:summary><itunes:keywords>Flex Examples</itunes:keywords><feedburner:origLink>http://flexexamples.blogspot.com/2009/06/what-is-rich-internet-application.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-947675605795999524</guid><pubDate>Wed, 10 Jun 2009 19:13:00 +0000</pubDate><atom:updated>2009-06-10T12:14:30.854-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Examples</category><title>Flex Using Shared Objects</title><description>&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 11px; "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;&lt;span class="Apple-style-span" style="font-size: 16px; line-height: normal; "&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1 style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24px; font-weight: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 3px; margin-top: 14px; margin-right: 0px; margin-bottom: 25px; margin-left: 10px; "&gt;About shared objects&lt;/h1&gt;&lt;div id="content_wrapper" style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 15px; font-size: 11px; "&gt;&lt;div style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Shared objects function like browser cookies. You use the &lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/net/SharedObject.html" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;SharedObject&lt;/a&gt; class to store data on the user's local hard disk and call that data during the same session or in a later session. Applications can access only their own SharedObject data, and only if they are running on the same domain. The data is not sent to the server and is not accessible by other Adobe® Flex® applications running on other domains, but can be made accessible by applications from the same domain.&lt;/p&gt;&lt;h2 class="h2nobreak" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; padding-top: 1em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; margin-top: 20px; margin-right: 0px; margin-bottom: 0px; margin-left: 0em; font-style: normal; "&gt;&lt;a name="149651" id="149651" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/a&gt;Shared objects compared with cookies&lt;/h2&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Cookies and shared objects are very similar. Because most web programmers are familiar with how cookies work, it might be useful to compare cookies and local SharedObjects.&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Cookies that adhere to the RFC 2109 standard generally have the following properties:&lt;/p&gt;&lt;ul style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 15px; margin-bottom: 0px; margin-left: 15px; "&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;They can expire, and often do at the end of a session by default.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;They can be disabled by the client on a site-specific basis.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;There is a limit of 300 cookies total, and 20 cookies maximum per site.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;They are usually limited to a size of 4 KB each.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;They are sometimes perceived to be a security threat, and as a result, they are sometimes disabled on the client.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;They are stored in a location specified by the client browser.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;They are transmitted from client to server through HTTP.&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;In contrast, shared objects have the following properties:&lt;/p&gt;&lt;ul style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 15px; margin-bottom: 0px; margin-left: 15px; "&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;They do not expire by default.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;By default, they are limited to a size of 100 KB each.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;They can store simple data types (such as String, Array, and Date).&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;They are stored in a location specified by the application (within the user's home directory).&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;They are never transmitted between the client and server.&lt;/li&gt;&lt;/ul&gt;&lt;h2 class="h2nobreak" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; padding-top: 1em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; margin-top: 20px; margin-right: 0px; margin-bottom: 0px; margin-left: 0em; font-style: normal; "&gt;&lt;a name="149036" id="149036" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/a&gt;About the SharedObject class&lt;/h2&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Using the &lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/net/SharedObject.html" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;SharedObject&lt;/a&gt; class, you can create and delete shared objects, as well as detect the current size of a SharedObject object that you are using. The SharedObject class consists of the following methods.&lt;/p&gt;&lt;table border="0" cellpadding="0" cellspacing="0" style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 20px; margin-right: 15px; margin-bottom: 20px; margin-left: 15px; border-collapse: collapse; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; "&gt;&lt;tbody style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;tr style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;th nowrap="nowrap" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-style: normal; font-weight: bold; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Method&lt;/p&gt;&lt;/th&gt;&lt;th nowrap="nowrap" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-style: normal; font-weight: bold; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Description&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;&lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;clear()&lt;/samp&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Purges all of the data from the SharedObject object, and deletes the SharedObject file from the disk.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;&lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;flush()&lt;/samp&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Immediately writes the SharedObject file to a file on the client.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;&lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;getLocal()&lt;/samp&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Returns a reference to the client's domain-specific, local SharedObject object. If none exists, this method creates a new shared object on the client.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;&lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;getSize()&lt;/samp&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Gets the size of the SharedObject file, in bytes. The default size limit is 100 KB, although it can be larger if the client allows it.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;In addition to these methods, SharedObject objects have the following properties:&lt;/p&gt;&lt;table border="0" cellpadding="0" cellspacing="0" style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 20px; margin-right: 15px; margin-bottom: 20px; margin-left: 15px; border-collapse: collapse; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; font-size: 11px; "&gt;&lt;tbody style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;tr style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;th nowrap="nowrap" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-style: normal; font-weight: bold; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Property&lt;/p&gt;&lt;/th&gt;&lt;th nowrap="nowrap" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-style: normal; font-weight: bold; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; background-color: rgb(255, 255, 255); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Description&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;&lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;data&lt;/samp&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Read-only property that represents the collection of attributes the shared object stores.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="font-family: Verdana, Arial, Helvetica, sans-serif; "&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;&lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;onStatus&lt;/samp&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px; margin-left: 2px; vertical-align: top; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;The shared object's event handler that is invoked for every warning, error, or informational note.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;You use the SharedObject class to store small amounts of data on the client computer.&lt;/p&gt;&lt;ul class="navlinklist" style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; line-height: 16px; list-style-type: none; list-style-image: none; "&gt;&lt;a href="http://livedocs.adobe.com/flex/3/html/lsos_2.html#132694" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;About shared objects&lt;/a&gt;&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; line-height: 16px; list-style-type: none; list-style-image: none; "&gt;&lt;a href="http://livedocs.adobe.com/flex/3/html/lsos_3.html#149114" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;Creating a shared object&lt;/a&gt;&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; line-height: 16px; list-style-type: none; list-style-image: none; "&gt;&lt;a href="http://livedocs.adobe.com/flex/3/html/lsos_4.html#150379" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;Destroying shared objects&lt;/a&gt;&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; line-height: 16px; list-style-type: none; list-style-image: none; "&gt;&lt;a href="http://livedocs.adobe.com/flex/3/html/lsos_5.html#149298" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;SharedObject example&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-947675605795999524?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=QerVDuMyUf0:dvXokeTrhBo:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=QerVDuMyUf0:dvXokeTrhBo:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=QerVDuMyUf0:dvXokeTrhBo:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=QerVDuMyUf0:dvXokeTrhBo:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=QerVDuMyUf0:dvXokeTrhBo:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/QerVDuMyUf0" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/QerVDuMyUf0/flex-using-shared-objects.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/06/flex-using-shared-objects.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-2941853038762089160</guid><pubDate>Wed, 10 Jun 2009 19:09:00 +0000</pubDate><atom:updated>2009-06-10T12:10:52.050-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Examples</category><title>Optimizing Flex Applications</title><description>&lt;span class="Apple-style-span" style="font-family: Verdana; "&gt;&lt;h1 style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 24px; font-weight: normal; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 3px; margin-top: 14px; margin-right: 0px; margin-bottom: 25px; margin-left: 10px; "&gt;Improving client-side performance&lt;/h1&gt;&lt;div id="content_wrapper" style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 15px; font-size: 11px; "&gt;&lt;div style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 20px; margin-left: 0px; "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Tuning software to achieve maximum performance is not an easy task. You must commit to producing efficient implementations and monitor software performance continuously during the software development process.&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Employ the following general guidelines when you test applications for performance, such as using the &lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/utils/package.html#getTimer()" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;getTimer()&lt;/a&gt; method and checking initialization time.&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Before you begin actual testing, you should understand some of the influences that client settings can have on performance testing. For more information, see &lt;a href="http://livedocs.adobe.com/flex/3/html/performance_05.html#276613" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;Configuring the client environment&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-2941853038762089160?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=ldt264wEEtY:jxX9uc8bQIk:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=ldt264wEEtY:jxX9uc8bQIk:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=ldt264wEEtY:jxX9uc8bQIk:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=ldt264wEEtY:jxX9uc8bQIk:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=ldt264wEEtY:jxX9uc8bQIk:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/ldt264wEEtY" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/ldt264wEEtY/optimizing-flex-applications.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/06/optimizing-flex-applications.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-5034035843552348921</guid><pubDate>Wed, 10 Jun 2009 19:08:00 +0000</pubDate><atom:updated>2009-06-10T12:09:31.824-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Layout Management</category><title>Flex Using SSL</title><description>&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 11px; "&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;A SWF file playing in a browser has many of the same security concerns as an HTML page being displayed in a browser. This includes the security of the SWF file while it is being loaded into the browser, as well as the security of communication between Flash and the server after the SWF file has loaded and is playing in the browser. In particular, data communication between the browser and the server is susceptible to being intercepted by third parties. The solution to this issue in HTML is to encrypt the communication between the client and server to make any data captured by third parties undecipherable and thus unusable. This encryption is done by using an SSL-enabled browser and server.&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Because a SWF file running within a browser uses the browser for almost all of its communication with the server, it can take advantage of the browser's built-in SSL support. This lets communication between the SWF file and the server be encrypted. Furthermore, the actual bytes of the SWF file are encrypted while they are being loaded into the browser. Thus, by playing a SWF file within an SSL-enabled browser through an HTTPS connection with the server, you can ensure that the communication between Flash Player and the server is encrypted and secure.&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;The one exception to this security is the way Flash Player uses persistent sockets (through the ActionScript &lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/net/XMLSocket.html" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;XMLSocket&lt;/a&gt; object), which does not use the browser to communicate with the server. Because of this, SWF files that use sockets cannot take advantage of the built-in encryption capabilities of the browser. However, you can use one-way encryption algorithms written in ActionScript to encrypt the data being communicated.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/954112930831544755-5034035843552348921?l=flexexamples.blogspot.com'/&gt;&lt;/div&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:yIl2AUoC8zA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=yIl2AUoC8zA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:dnMXMwOfBR0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=dnMXMwOfBR0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:YwkR-u9nhCs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=YwkR-u9nhCs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:F7zBnMyn0Lo"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=NF8I64ipA6Y:4d9sKNmMDQc:F7zBnMyn0Lo" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:7Q72WNTAKBA"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=7Q72WNTAKBA" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:V_sGLiPBpWU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=NF8I64ipA6Y:4d9sKNmMDQc:V_sGLiPBpWU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:qj6IDK7rITs"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=qj6IDK7rITs" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:KwTdNBX3Jqk"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=NF8I64ipA6Y:4d9sKNmMDQc:KwTdNBX3Jqk" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:l6gmwiTKsz0"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=l6gmwiTKsz0" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:gIN9vFwOqvQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?i=NF8I64ipA6Y:4d9sKNmMDQc:gIN9vFwOqvQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:DN0H40_Ym5U"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=DN0H40_Ym5U" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:cGdyc7Q-1BI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=cGdyc7Q-1BI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:V-t1I-SPZMU"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=V-t1I-SPZMU" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:lvXyGxTQzqQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=lvXyGxTQzqQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:I9og5sOYxJI"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=I9og5sOYxJI" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/blogspot/PmCX?a=NF8I64ipA6Y:4d9sKNmMDQc:G79ilh31hkQ"&gt;&lt;img src="http://feeds.feedburner.com/~ff/blogspot/PmCX?d=G79ilh31hkQ" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/PmCX/~4/NF8I64ipA6Y" height="1" width="1"/&gt;</description><link>http://feedproxy.google.com/~r/blogspot/PmCX/~3/NF8I64ipA6Y/flex-using-ssl.html</link><author>noreply@blogger.com (Jon)</author><feedburner:origLink>http://flexexamples.blogspot.com/2009/06/flex-using-ssl.html</feedburner:origLink></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-954112930831544755.post-8840116023825361701</guid><pubDate>Wed, 10 Jun 2009 19:07:00 +0000</pubDate><atom:updated>2009-06-10T12:08:06.747-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Flex Control Samples</category><title>Flex Loading assets</title><description>&lt;span class="Apple-style-span"   style="  ;font-family:Verdana;font-size:11px;"&gt;&lt;h2 class="h2nobreak" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; padding-top: 1em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; margin-top: 20px; margin-right: 0px; margin-bottom: 0px; margin-left: 0em; font-style: normal; "&gt;Data compared to content&lt;/h2&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;The Flash Player security model makes a distinction between loading content and accessing or loading data. Content is defined as media: visual media that Flash Player can display, such as audio, video, or a SWF file that includes displayed media. Data is defined as something that you can manipulate only with ActionScript code.&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;You can load data in one of two ways: by extracting data from loaded media content, or by directly loading data from an external file (such as an XML file) or socket connection. You can extract data from loaded media by using the &lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;BitmapData.draw()&lt;/samp&gt; method, the &lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;Sound.id3&lt;/samp&gt; property, or the &lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;SoundMixer.computeSpectrum()&lt;/samp&gt; method. You can load data by using classes such as the &lt;a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/SWFLoader.html" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;SWFLoader&lt;/a&gt;, &lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/net/URLStream.html" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;URLStream&lt;/a&gt;, &lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/net/URLLoader.html" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;URLLoader&lt;/a&gt;, &lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/net/Socket.html" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;Socket&lt;/a&gt;, and &lt;a href="http://livedocs.adobe.com/flex/3/langref/flash/net/XMLSocket.html" target="_blank" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;XMLSocket&lt;/a&gt; classes.&lt;/p&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;The Flash Player security model defines different rules for loading content and accessing data. Loading content has fewer restrictions than accessing data. In general, content such as SWF files, bitmaps, MP3 files, and videos can be loaded from anywhere, but if the content is from a domain other than that of the loading SWF file, it will be partitioned in a separate security sandbox.&lt;/p&gt;&lt;h2 class="h2nobreak" style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold; padding-top: 1em; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; margin-top: 20px; margin-right: 0px; margin-bottom: 0px; margin-left: 0em; font-style: normal; "&gt;&lt;a name="138117" id="138117" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "&gt;&lt;/a&gt;Loading remote assets&lt;/h2&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Loading remote or network assets relies on three factors:&lt;/p&gt;&lt;ul style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 15px; margin-bottom: 0px; margin-left: 15px; "&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;Type of asset. If the target asset is a content asset, such as an image file, you do not need any specific permissions from the target domain to load its assets into your Flex application. If the target asset is a data asset, such as an XML file, you must have the target domain's permission to access this asset. For more information on the types of assets, see &lt;a href="http://livedocs.adobe.com/flex/3/html/security2_04.html#137891" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;Data compared to content&lt;/a&gt;.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;Target domain. If you are loading data assets from a different domain, the target domain must provide a crossdomain.xml policy file. This file contains a list of URLs and URL patterns that it allows access from. The calling domain must match one of the URLs or URL patterns in that list. For more information about the crossdomain.xml file, see &lt;a href="http://livedocs.adobe.com/flex/3/html/security2_04.html#139879" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;Using cross-domain policy files&lt;/a&gt;. If the target asset is a SWF file, you can also provide permissions by calling the &lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;loadPolicyFile()&lt;/samp&gt; method and loading an alternative policy file inside that target SWF file. For more information, see &lt;a href="http://livedocs.adobe.com/flex/3/html/security2_04.html#139879" style="font-family: Verdana, Arial, Helvetica, sans-serif; text-decoration: none; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 68, 119); "&gt;Using cross-domain policy files&lt;/a&gt;.&lt;/li&gt;&lt;li style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 2px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; line-height: 16px; list-style-type: square; "&gt;Loading SWF file's sandbox. To load an asset from a network address, you must ensure that your SWF file is in either the remote or local-with-networking sandbox. To ensure that a SWF file can load assets over the network, you must set the &lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;use-network&lt;/samp&gt; compiler option to&lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;true&lt;/samp&gt; when you compile the Flex application. This is the default. If the application was loaded from the local file system with &lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;use-network&lt;/samp&gt;set to &lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;false&lt;/samp&gt;, the application is put in the local-with-filesystem sandbox and it cannot load remote SWF files.&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; "&gt;Loading assets from a remote location that you do not control can potentially expose your users to risks. For example, the remote website B contains a SWF file that is loaded by your website A. This SWF file normally displays an advertisement. However, if website B is compromised and its SWF file is replaced with one that asks for a username and password, some users might disclose their login information. To prevent data submission, the loader has a property called &lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;allowNetworking&lt;/samp&gt; with a default value of &lt;samp class="codeph" style="font-family: 'Courier New', Courier, monospace; font-size: 11px; "&gt;never&lt;/samp&gt;.&lt;/p&gt;&lt;h3 class="h3nobreak" style="font-family: Verdana, Arial, Helvetica, sans-serif; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 20px; margin-right: 0px; margin-bott