<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Flex Doc Team</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/" />
    <link rel="self" type="application/atom+xml" href="http://blogs.adobe.com/flexdoc/atom.xml" />
    <id>tag:blogs.adobe.com,2009-08-13:/flexdoc//99</id>
    <updated>2009-11-20T22:17:51Z</updated>
    <subtitle>Updates, new content, and other helpful information from the Flex Documentation Team.</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.261</generator>

<entry>
    <title>Any ColdFusion developers out there who are new to Flex?</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/11/any_coldfusion_developers_out.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.44187</id>

    <published>2009-11-20T22:14:22Z</published>
    <updated>2009-11-20T22:17:51Z</updated>

    <summary>Hi all, The documentation group is conducting a brief survey to learn more regarding how customers get information about using Flex. In particular, we&apos;re studying how ColdFusion developers get started learning Flex. So, if you&apos;re a ColdFusion developer who is...</summary>
    <author>
        <name>Randy Nielsen</name>
        
    </author>
    
        <category term="Flex 4" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex Builder" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Learning Resources" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>Hi all,<br />
The documentation group is conducting a brief survey to learn more regarding how customers get information about using Flex. In particular, we're studying how ColdFusion developers get started learning Flex. So, if you're a ColdFusion developer who is new to Flex, we'd like your feedback. Please click the link below to take a brief survey on the following topic:</p>

<p><a href="http://www.surveymonkey.com/s.aspx?sm=EhzzGEefKJlOch0jHxRf8w_3d_3d">Creating data-driven applications in Flash Builder 4</a></p>

<p>Thanks in advance,<br />
-Randy</p>]]>
        
    </content>
</entry>

<entry>
    <title>LiveCycle Data Services 3 and doc available</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/11/livecycle_data_services_es2_ve.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.44087</id>

    <published>2009-11-20T15:20:31Z</published>
    <updated>2009-11-20T14:27:43Z</updated>

    <summary>LiveCycle Data Services ES2 version 3 is now available. Download the free developer edition. LiveCycle Data Services documentation is available online: * Using LiveCycle Data Services HTML | PDF * Application Modeling Technology Reference HTML | PDF * ActionScript Language...</summary>
    <author>
        <name>Michael Peterson</name>
        
    </author>
    
        <category term="AIR" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="BlazeDS" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Data Services" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex 4" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex Builder" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Learning Resources" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="LiveCycle" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p><a href="http://www.adobe.com/products/livecycle/dataservices/">LiveCycle Data Services ES2 version 3</a> is now available. <a href="http://www.adobe.com/go/trylivecycle_dataservices">Download</a> the free developer edition.</p>

<p><br />
<a href="http://help.adobe.com/en_US/livecycle/9.0/lc_ds_list.html">LiveCycle Data Services documentation</a> is available online:</p>

<p>    * Using LiveCycle Data Services <a href="http://www.adobe.com/go/learn_lcds3_devguide_help_en">HTML </a>| <a href="http://www.adobe.com/go/learn_lcds3_devguide_en">PDF</a><br />
    * Application Modeling Technology Reference <a href="http://www.adobe.com/go/learn_lcds3_modeling_help_en">HTML </a>| <a href="http://www.adobe.com/go/learn_lcds3_modeling_en">PDF</a><br />
    * ActionScript Language Reference <a href="http://www.adobe.com/go/learn_lc_actionScript_9">HTML</a><br />
    * Installing LiveCycle Data Services <a href="http://www.adobe.com/go/learn_lcds3_install_en">HTML</a><br />
    * Javadoc <a href="http://www.adobe.com/go/learn_lc_JavaAPI_9">HTML</a><br />
    * Release Notes <a href="http://www.adobe.com/go/learn_lcds3_releasenotes_en">HTML</a><br />
    * Quick Starts <a href="http://www.adobe.com/go/learn_lcds3_modeling_howto">HTML</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Get involved!  Adobe Cookbook - Recipe Requests</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/11/get_involved_adobe_cookbook_-.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.44157</id>

    <published>2009-11-19T22:16:50Z</published>
    <updated>2009-11-19T22:29:51Z</updated>

    <summary><![CDATA[This is from our old friend, Ed Sullivan. The Adobe Cookbooks application is your one-stop shop for finding and sharing community generated code samples.&nbsp; One of the great new features of the recently re-designed Cookbooks application is the recipe request...]]></summary>
    <author>
        <name>Randy Nielsen</name>
        
    </author>
    
        <category term="General" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>This is from our old friend, Ed Sullivan. </p>

<p>The <a href="http://cookbooks.adobe.com/home">Adobe Cookbooks</a> application is your one-stop shop for finding and sharing community generated code samples.&nbsp; One of the great new features of the recently re-designed Cookbooks application is the recipe request feature. This lets users who cannot locate their desired code sample put out a request to other community members. Additionally, fellow community members can vote for specific requests so you can determine at a glance which requests are the most popular.<br />
<p>You can see a list of recipe requests on the home page for each of the supported technologies, (Currently, the <a href="http://cookbooks.adobe.com/flex">Flex Cookbook</a> has the most unanswered recipe requests.) You can also easily stay current on the request queue by subscribing to the <a href="http://cookbooks.adobe.com/rss/recent/requests">uber RSS feed</a>, or you can be notified of requests for specific technologies like <a href="http://cookbooks.adobe.com/rss/recent/requests?technology=flex">Flex</a>.</p><br />
<p>And while answering a recipe request won't bring you fame and fortune, it will give you:<ul><li>The opportunity to have the request you addressed featured in the <a href="http://www.adobe.com/devnet/">Adobe Developer Connection</a></li><li>That warm fuzzy feeling you get from assisting your fellow developers</li><li>The potential to have your recipe included in an upcoming version of the <a href="http://oreilly.com/catalog/9780596529857">O'Reilly Flex Cookbook</a></li><li>Visibility on adobe.com via Adobe Cookbook contributor recognition features</li></ul></p><br />
<p>And, for a limited time only, every person who addresses a recipe request will be sent a free copy of the <a href="http://oreilly.com/catalog/9780596520649/">Getting Started with Flex 3 Pocket Guide</a>.&nbsp; Just email <a href="mailto:esulliva@adobe.com?subject=Flex%20recipe%20request">Ed Sullivan</a> with a link to the recipe request you plan on addressing and after you publish it, just sit back and wait for your book to arrive!</p><br />
<p>So if you know <a href="http://cookbooks.adobe.com/post_How_do_I_create_a_simple_Shopping_Cart_with_Flex_-16318.html">how to create a simple shopping cart with Flex 3</a>, what are you waiting for?!</p></p>]]>
        
    </content>
</entry>

<entry>
    <title>Spark skinning doc updated</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/11/spark_skinning_doc_updated.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.44066</id>

    <published>2009-11-13T15:42:59Z</published>
    <updated>2009-11-13T15:51:30Z</updated>

    <summary>The Spark skinning docs have been updated. They include sections on the skinning contract between Spark components and their skins, how to skin Spark components and containers, and how to package your custom skins as a library for distribution. Please...</summary>
    <author>
        <name>Matthew J. Horn</name>
        
    </author>
    
        <category term="Flex 4" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Gumbo" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Skinning" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>The Spark skinning docs have been updated. They include sections on the skinning contract between Spark components and their skins, how to skin Spark components and containers, and how to package your custom skins as a library for distribution.</p>

<p>Please check out the new docs below and <a href="mailto:mhorn@adobe.com">send feedback to me:</a></p>

<p><a href="http://blogs.adobe.com/flexdoc/spark_skinning.pdf">spark_skinning.pdf</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Stupid Flex tricks: undocumented fcsh commands</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/10/stupid_flex_tricks_undocumente.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.43833</id>

    <published>2009-10-29T19:26:17Z</published>
    <updated>2009-10-29T19:32:51Z</updated>

    <summary>I just recently discovered that there are several undocumented commands for fcsh, the command line compiler shell. If you don&apos;t know what fcsh is... it&apos;s a simple shell environment for compiling Flex apps and libraries from the command line. Basically,...</summary>
    <author>
        <name>Matthew J. Horn</name>
        
    </author>
    
        <category term="Command line tools" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex 3" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>I just recently discovered that there are several undocumented commands for fcsh, the command line compiler shell.</p>

<p>If you don't know what fcsh is... it's a simple shell environment for compiling Flex apps and libraries from the command line. Basically, it speeds up the compilation significantly. You can read more about it here:</p>

<p><a href="http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_32.html">http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_32.html</a></p>

<p>The undocumented commands (and by "undocumented", I mean they aren't in the help system's doc on fcsh or listed in the fcsh online "help" command output) are:</p>

<ul>
	<li><code>cp</code> (copy)</li>
	<li><code>mv</code> (move)</li>
	<li><code>touch</code> (change timestamp)</li>
	<li><code>rm</code> (delete/remove)</li>
</ul>

<p>The syntax is pretty straightforward, but if you want to spend a few minutes documenting them, we'll happily add a link to your blog or web site from the Adobe help.</p>

<p>matt</p>]]>
        
    </content>
</entry>

<entry>
    <title>New doc: Text controls</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/10/new_doc_text_controls.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.43793</id>

    <published>2009-10-26T19:39:03Z</published>
    <updated>2009-10-26T19:50:21Z</updated>

    <summary>Below is the latest documentation on using text controls in Flex 4. This PDF includes information on creating and maniupating TextFlows, a powerful new class for working with text in the TLF-based text controls. The topic also includes documentation on...</summary>
    <author>
        <name>Matthew J. Horn</name>
        
    </author>
    
        <category term="Flex 4" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex Gumbo" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>Below is the latest documentation on using text controls in Flex 4. </p>

<p>This PDF includes information on creating and maniupating TextFlows, a powerful new class for working with text in the TLF-based text controls. </p>

<p>The topic also includes documentation on using the following new Spark text controls:<br />
<ul><br />
	<li>Spark Label, TextInput, and TextArea</li><br />
	<li>RichText</li><br />
	<li>RichEditableText</li><br />
</ul></p>

<p>Please <a href="mailto:mhorn@adobe.com">let me know</a> if you have any questions, comments, or updates.</p>

<p>Here's the new documentation: <a href="http://blogs.adobe.com/flexdoc/textcontrols.pdf">Text controls</a></p>]]>
        
    </content>
</entry>

<entry>
    <title>Scaling Label text size to fit available area</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/10/scaling_label_text_size_to_fit.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.43451</id>

    <published>2009-10-08T17:23:14Z</published>
    <updated>2009-10-08T17:31:42Z</updated>

    <summary>Working with text in Flex 3 can be difficult. Especially if you want to scale text to fit an area (a task I recently discovered was not intuitive at all). Should you scale the text control? Convert the contents to...</summary>
    <author>
        <name>Matthew J. Horn</name>
        
    </author>
    
        <category term="Flex 3" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Fonts" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>Working with text in Flex 3 can be difficult. Especially if you want to scale text to fit an area (a task I recently discovered was not intuitive at all). Should you scale the text control? Convert the contents to a bitmap and resize it? Set the <code>fontSize</code> and test it's width against the parent container?</p>

<p>The cleanest solution I found was to use was to compare the <code>textWidth</code> property of the Label against the parent container's width (the available area), and then scale the Label component based on that comparison.</p>

<p>Here's the running example (the default font size is 36 pts, but you can see that the second and third labels are scaled according to how much text is in the Label):</p>

<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="LabelScaleExample" width="500" height="450" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"><param name="movie" value="http://blogs.adobe.com/flexdoc/MainApp.swf" /><param name="quality" value="high" /><param name="allowScriptAccess" value="sameDomain" /><embed src="http://blogs.adobe.com/flexdoc/MainApp.swf" quality="high" width="500" height="450" name="DateSelectionExample" align="middle" play="true" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></p>

<p>There's a bit of a caveat to this, which is that in general, this will not be a "UI best practice". A list of text items, where the text varies in size for each item in the list, is not the most readable or user friendly way to present information. </p>

<p>The main app and custom component files are below, but here's a few lines to show you how it's done.</p>

<p>In the Label tag, trigger a function on the <code>creationComplete</code> event:</p>

<pre>
    &lt;mx:Label id="myLabel"
        x="101" y="22"
        fontSize="36" 
        text="{title}"
        width="100%" truncateToFit="false"
        creationComplete="scaleLabelToFit()"
    /&gt;
</pre>

<p>You should also set <code>truncateToFit</code> to <code>false</code> so that a Label whose text comes close to the edge does not get truncated.</p>

<p>The <code>scaleLabelToFit()</code> function calculates the ratio of the main component's width to the width of the Label's text (textWidth):</p>

<pre>
    var ratio:Number = ((this.width - myImage.width) - 10) / myLabel.textWidth; 
</pre>

<p>This line subtracts the width of the image and an additional 10 pixels to account for padding.<br />
                <br />
Then, if the ratio is less than 1, scale the text control. If the ratio were greater than 1, you would not want to scale the text up, so just ignore that case.</p>

<pre>
    if (ratio &lt; 1) {
        myLabel.scaleX = ratio;
        myLabel.scaleY = ratio;                 
    }
</pre>

<p>That's it. Here's a ZIP of the entire app, including images:</p>

<p><span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://blogs.adobe.com/flexdoc/ScaleLabelSizes.zip">ScaleLabelSizes.zip</a></span><br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>More about Flex 4 Beta 2 documentation and learning resources</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/10/more_about_flex_4_beta_2_docum.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.43329</id>

    <published>2009-10-04T02:25:25Z</published>
    <updated>2009-10-06T02:11:58Z</updated>

    <summary>Hi everyone, Today we shipped public beta 2 of Flex 4 and Flash Builder 4 on Adobe Labs. Even though it&apos;s kind of been a moving target, we have a pretty full set of learning resources and I&apos;d like to...</summary>
    <author>
        <name>Randy Nielsen</name>
        
    </author>
    
        <category term="ASDocs" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex 4" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex Builder" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex Gumbo" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Gumbo" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Learning Resources" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>Hi everyone,<br />
Today we shipped public beta 2 of <a href="http://labs.adobe.com/technologies/flex4sdk/" target="_new">Flex 4</a> and <a href="http://labs.adobe.com/technologies/flashbuilder4/"  target="_new">Flash Builder 4</a> on Adobe Labs. Even though it's kind of been a moving target, we have a pretty full set of learning resources and I'd like to take a minute to lay them out for you.</p>

<p>As before, you should start by reading the introductions from our Product Managers:<br />
<ul><li><a href="http://www.adobe.com/devnet/flex/articles/flex4sdk_whatsnew.html" target="_new">Matt Chotin's intro to Flex 4</a></li><br />
<li><a href="http://www.adobe.com/devnet/flex/articles/flex4builder_whatsnew.html" target="_new">Tim Buntel's intro to Flash Builder 4</a></li></ul></p>

<p>Also, if you are a Flex 3 customer, you should read Joan Lafferty's <a href="http://www.adobe.com/devnet/flex/articles/flex3and4_differences.html" target="_new">Differences between Flex 3 SDK and Flex 4 SDK beta</a> article, which (as of today) has more information than the Features and Migration guide.</p>

<p>Although we still have a lot of work to do, we've provided a fairly rich set of beta documentation.<br />
<ul><li><a href="http://help.adobe.com/en_US/Flex/4.0/UsingSDK/index.html " target="_new">Using Adobe Flex 4</a> <a href="http://help.adobe.com/en_US/Flex/4.0/UsingSDK/flex_4_help.pdf" target="_new">(PDF)</a> - Flex SDK and Framework usage content. This book combines the Flex Developer's Guide, Creating and Extending Flex Components, and Building and Deploying Flex Applications.</li><br />
<li><a href="http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/index.html" target="_new">Using Adobe Flash Builder 4</a> (<a href="http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/flashbuilder_4_help.pdf" target="_new">(PDF)</a>) - Flash Builder usage content</li><br />
<li><a href="http://help.stage.adobe.com/en_US/Flex/4.0/FlexTutorials/index.html" target="_new">Adobe Flex 4 Tutorials</a> <a href="http://help.adobe.com/en_US/Flex/4.0/FlexTutorials/flex_4_tutorials.pdf" target="_new">(PDF)</a> - Tutorials to help you get started with new Flex 4 and Flash Builder 4 features.</li><br />
<li><a href="http://help.adobe.com/en_US/Flex/4.0/AccessingData/index.html" target="_new">Accessing Data with Flex</a> <a href="http://help.adobe.com/en_US/Flex/4.0/AccessingData/flex_4_accessingdata.pdf" target="_new">(PDF)</a>- Usage content for data access in Flex. Includes information on new Flash Builder data service features. (Formerly Creating Data-Driven Applications with Adobe Flex 4.)</li><br />
<li><a href="http://help.adobe.com/en_US/Flex/4.0/FeaturesAndMigration/flex_4_features.pdf" target="_new">Adobe Flex 4 Feature and Migration</a> (PDF-only)</li><br />
<li><a href="http://help.stage.adobe.com/en_US/Flex/4.0/langref" target="_new">Flex 4 ActionScript Language Reference</a></li></ul></p>

<p>Also, we have a few new things in Beta 2:<br />
<ul><br />
<li><a href="http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/index.html" target="_new">ActionScript 3.0 Reference for the Adobe Flash Platform (Beta)</a> - Contains all ActionScript 3.0 APIs for all Adobe products. I'm very excited by this and will blog more about it in a few days.</li><br />
<li><a href="" target="_new">Flex 4 in a Week (Beta)</a> - A Flex 4 version of the popular Flex in a Week video series.</li><br />
<li><a href="http://labs.adobe.com/technologies/communityhelp/" target="_new">Adobe Community Help beta</a> on Adobe Labs - A preview of Adobe's next-generation help experience. This beta release is configured to work with Flash Builder and Flash Catalyst content. I strongly encourage you to try this out.</li></ul></p>

<p>And, as always, I need to acknowledge and thank the Flex Learning Resources team: Erich Champion, Janice Campbell, Linda Adler, Matt Horn, Pam Araki, Shimi Rahim, Stephen Gilson, and Vince Genovese. I also need to thank Akshay Madan, Mark Nichoson, Laura Kersell, Helen Whelan, and Tanya Knoop for all the work they put into the Adobe Community Help client and the Labs Beta release.</p>

<p>Regards,<br />
Randy Nielsen</p>]]>
        
    </content>
</entry>

<entry>
    <title>Flex 4 Beta 2 documentation live</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/10/flex_4_beta_2_documentation_li.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.43293</id>

    <published>2009-10-01T20:24:45Z</published>
    <updated>2009-10-01T20:28:34Z</updated>

    <summary>The documentation for Flex 4 Beta 2 is now live. Check it out: ActionScript 3.0 Reference Using Flash Builder 4 Using Flex 4 Accessing Data with Flex...</summary>
    <author>
        <name>Matthew J. Horn</name>
        
    </author>
    
        <category term="Flex 4" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Learning Resources" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>The documentation for Flex 4 Beta 2 is now live. Check it out:</p>

<ul>
	<li><a href="http://help.adobe.com/en_US/AS3LCR/Flex_4.0/">ActionScript 3.0 Reference</a></li>
        <li><a href="http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/">Using Flash Builder 4</a></li>
        <li><a href="http://help.adobe.com/en_US/Flex/4.0/UsingSDK/">Using Flex 4</a></li>
        <li><a href="http://help.adobe.com/en_US/Flex/AccessingData/">Accessing Data with Flex</a></li>
</ul>
]]>
        
    </content>
</entry>

<entry>
    <title>Using Fonts in Flex 4</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/09/using_fonts_in_flex_4.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.43259</id>

    <published>2009-09-30T14:28:41Z</published>
    <updated>2009-09-30T14:30:25Z</updated>

    <summary>The chapter on using fonts in Flex 4 has been updated. This chapter discusses embedding fonts, setting character ranges, and troubleshooting among other things. While there aren&apos;t any new features for fonts in Flex 4, there are some significant changes...</summary>
    <author>
        <name>Matthew J. Horn</name>
        
    </author>
    
        <category term="Flex 4" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Fonts" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>The chapter on using fonts in Flex 4 has been updated. This chapter discusses embedding fonts, setting character ranges, and troubleshooting among other things.</p>

<p>While there aren't any new features for fonts in Flex 4, there are some significant changes you should be aware of. For example: <br />
<ul><br />
    <li>Support for TLF is on by default (all Spark components use this new library of text manipulation)</li><br />
        <li>Using embedded fonts with Halo/MX controls might require you to set some style properties to ensure that the right font is used</li><br />
    <li>Font fallback substitutes a character from a device font that might not be available in an embedded font</li><br />
</ul></p>

<p>One of the biggest changes you'll notice is that all the examples now specify a property when embedding fonts: <code>embedAsCFF</code>. This property determines how a font is embedded: with DefineFont4 or DefineFont3. When embedded with DefineFont4, an embedded font can use the features of TLF. All Spark controls support DefineFont4. Some Halo controls support it, if you set their text renderers to use the new TLFTextField and TLFTextInput classes. This is all described in the doc.</p>

<p>One further note: For Beta 2, this document is accurate. However, for the final release, the following class names will be changed:</p>

<ul>
    <li>TLFTextField will become FTETextField</li>
    <li>UITLFTextField will become UIFTETextField</li>
    <li>TLFTextInput will become FTETextInput</li>
</ul>

<p>Click here to download the latest Fonts documentation:</p>

<p><span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://blogs.adobe.com/flexdoc/fonts.pdf">fonts.pdf</a></span></p>]]>
        
    </content>
</entry>

<entry>
    <title> Are you going to MAX 2009 in Los Angeles?  </title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/09/are_you_going_to_max_2009_in_l.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.42802</id>

    <published>2009-09-08T19:50:54Z</published>
    <updated>2009-09-08T19:58:24Z</updated>

    <summary>Hi everyone. Are you going to MAX this year? The Adobe Learning Resources group is putting together some sessions (with snacks and drinks, of course) to get feedback on the new version of Community Help with an all new AIR...</summary>
    <author>
        <name>Randy Nielsen</name>
        
    </author>
    
        <category term="Learning Resources" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="max" label="MAX" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>Hi everyone. Are you going to MAX this year?  </p>

<p>The  Adobe Learning Resources group is putting together some sessions (with snacks and drinks, of course) to get feedback on the new version of Community Help with an all new AIR interface and some exciting new features.  </p>

<p>The sessions will be held at these times:<br />
<ul><li>Monday 10/5/09 11:30 am - 1 pm</li><br />
<li>Tuesday 10/6/09 4:30 pm - 6 pm</li><br />
</ul></p>

<p>Please contact tknoop@adobe.com  if you think you can make either of these sessions at MAX and she'll send you more details.</p>

<p>Thanks!<br />
-Randy</p>

<p>PS: Once again, I'll be working as a TA in the Flex, ColdFusion, and LCDS lab-based courses, so please stop by and introduce yourself.<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>The Flex 3.4 ActionScript Language Reference is live</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/08/the_flex_34_actionscript_langu.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.42405</id>

    <published>2009-08-18T20:15:36Z</published>
    <updated>2009-08-19T17:39:00Z</updated>

    <summary>Today, the Flex SDK team pushed the 3.4 milestone build live and you can get it from the Flex 3 SDK Downloads page. Simultaneously, we pushed the Flex 3.4 Language Reference live, overwriting the 3.3 version. Did you know... DataGrid...</summary>
    <author>
        <name>Randy Nielsen</name>
        
    </author>
    
        <category term="ASDocs" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex 3" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Learning Resources" scheme="http://www.sixapart.com/ns/types#category" />
    
    <category term="flex34" label="Flex 3.4" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>Today, the Flex SDK team pushed the 3.4 milestone build live and you can get it from the <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3" target="_new">Flex 3 SDK Downloads</a> page. Simultaneously, we pushed the <a href="http://livedocs.adobe.com/flex/3/langref/index.html" target="_new">Flex 3.4 Language Reference</a> live, overwriting the 3.3 version.</p>

<p>Did you know...<br />
<ul><br />
<li><a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/DataGrid.html" target="_new">DataGrid</a> is the most popular search term.</li><br />
<li><a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ArrayCollection.html" target="_new">ArrayCollection</a> is the second most popular Flex search term, although <a href="http://livedocs.adobe.com/flex/3/langref/Array.html" target="_new">Array</a> and <a href="http://livedocs.adobe.com/flex/3/langref/XML.html" target="_new">XML</a> are  second and third, respectively.</li><br />
<li><a href="http://livedocs.adobe.com/flex/3/langref/mx/core/UIComponent.html" target="_new">UIComponent</a> is the most viewed page.</li><br />
<li><a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/DataGrid.html" target="_new">DataGrid</a>, <a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/AdvancedDataGrid.html" target="_new">AdvancedDataGrid</a>, and <a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/ComboBox.html" target="_new">ComboBox</a> are the second, third, and fourth most viewed pages, respectively.</li><br />
<li>If you happen to land on a language reference page for an old version, you can use the version pod to navigate to the correct version. The version pod displays towards the top right of each page and you can hide it by clicking the right arrow icon.</li></ul></p>

<p>In the weeks to come, I hope to write a series of posts that cover the kinds of things our group is doing to improve the overall experience with Adobe learning content.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Date range selection for Flex charts</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/07/date_range_selection_for_flex.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.41826</id>

    <published>2009-07-27T19:25:18Z</published>
    <updated>2009-07-27T19:28:27Z</updated>

    <summary>Charting applications that have user interaction are great. They can take advantage of the built-in charting effects, and also take advantage of users&apos; needs to look at data differently, and drill down into data. One of the most interesting ways...</summary>
    <author>
        <name>Matthew J. Horn</name>
        
    </author>
    
        <category term="Charts" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>Charting applications that have user interaction are great. They can take advantage of the built-in charting effects, and also take advantage of users' needs to look at data differently, and drill down into data. One of the most interesting ways to experience time-based data is by using a date range selector.</p>

<p>There are some examples of date range selectors out there, such as the fantastic one used by <A HREF="http://www.google.com/finance?q=NASDAQ:ADBE">Google finance</A>. I wanted to do something simpler so I wrote this example, which is loosely based on Ely's <A HREF="http://demo.quietlyscheming.com/ChartSampler/app.html">Custom Annotation example</A> in his Chart Sampler.</p>

<p>Try it out. Just click and drag a range for the chart:</p>

<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="DateSelectionExample" width="424" height="603" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"><param name="movie" value="http://blogs.adobe.com/flexdoc/DateSelectionExample.swf" /><param name="quality" value="high" /><param name="allowScriptAccess" value="sameDomain" /><embed src="http://blogs.adobe.com/flexdoc/DateSelectionExample.swf" quality="high" width="424" height="603" name="DateSelectionExample" align="middle" play="true" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></p>

<p>This app consists of a main application file (DateSelectionExample.mxml) and a single ActionScript class file, RangeSelector.as.</p>

<p>The RangeSelector extends the ChartElement class. As a result, you add it to your chart as an annotationElement:</p>
<pre>
    &lt;mx:annotationElements&gt;
        &lt;custom:RangeSelector/&gt;                 
    &lt;/mx:annotationElements&gt;
</pre>

<p>The meat of the RangeSelector class is in the <code>updateDisplayList()</code> method. Here, it does several things:
<ol>
    <li>Draws a transparent rectangle over the entire chart. This rectangle allows the mouse events to be handled in the RangeSelector rather than be passed to the chart.</li>
    <li>Draws the selected region if the mouse is being held down and dragged over the chart.</li>
    <li>Transforms the screen coordinates of the selected region into data coordinates that the chart "understands".</li>
    <li>Positions the region's labels as it expands and contracts due to mouse movement.</li>
    <li>Resets the selection region and hide the labels when the mouse is not drawing a new area.</li>
</ol>
</p>

<p>In the constructor, the RangeSelector added labels that show the current date as you drag a selection out and in:</p>
<pre>
    _labelLeft = new Label();
    _labelRight = new Label();
    addChild(_labelLeft);
    addChild(_labelRight);
</pre>

<p>The <code>startTracking()</code> and <code>endTracking()</code> methods keep track of the mouse when it is clicked and dragged. This rectangular region is what defines the new dates to show on the chart.</p>

<p>I used the <code>parentApplication</code> property to access objects and properties on the main application. It's not the cleanest or most portable code, but it works, and you could easily write a class that handles the access methods.</p>

<p>The width of the selection area is determined by where the user drags the mouse. But to get the height, I wanted to use the entire height of the chart. To do this, I use the <code>parentApplication</code> property to reach up to the parent app and get the height of the chart itself:</p>
<pre>
    g.drawRect(c[0].x,0,rectWidth, parentApplication.myChart.height);
</pre>

<p>Later, in the commitProperties() method, the RangeSelector extracts the date information (day, date, and year) to build the label's text:</p>
<pre>
    leftDate = new Date(dLeft);
    rightDate = new Date(dRight);
    _labelLeft.text = (leftDate.getMonth()+1) + "/" + leftDate.getDate() + "/" + leftDate.getFullYear();
    _labelRight.text = (rightDate.getMonth()+1) + "/" + rightDate.getDate() + "/" + rightDate.getFullYear(); 
</pre>

<p>Note that the Date class's <code>month</code> property is zero-based, so I added 1 to make sure I had the right month in the label.</p>

<p>Finally, when you finish dragging, the RangeSelector modifies the chart's data in the parent application:</p>
<pre>
    parentApplication.minDate = new Date(dLeft);
    parentApplication.maxDate = new Date(dRight);
</pre>
                
<p>The <code>minDate</code> and <code>maxDate</code> properties in the parent application are bound to the chart's DateTimeAxis. By changing these values, the chart's axis changes. As a result, the data shown on the chart changes.</p>           
<pre>
    &lt;mx:horizontalAxis&gt;
        &lt;mx:DateTimeAxis id="hAxis"
            dataUnits="days"
            minimum="{minDate}"
            maximum="{maxDate}"/&gt;
    &lt;/mx:horizontalAxis&gt;
</pre>

<p>When the chart data changes, the RangeSelector also adjusts the size of the plot points. In this case, I adjust the size of the plot points at the same ratio as the size of the selection is to the chart area. For example, if you drew a selection area half the size of the chart, the plot points increase 50% in size. The smaller the selection, the greater the increase in size of the plot points.</p>
<pre>
    var plotPointRatio:Number = rectWidth/parentApplication.myChart.width;
    var curRadius:int = parentApplication.series1.getStyle("radius");
    parentApplication.series1.setStyle("radius", curRadius *(1 - plotPointRatio + 1));
    parentApplication.series2.setStyle("radius", curRadius *(1 - plotPointRatio + 1));
    parentApplication.series3.setStyle("radius", curRadius *(1 - plotPointRatio + 1));
</pre>
                                
<p>In the main app, when you hit reset, the radii of the plot points are reset to their defaults, and the <code>minDate</code> and <code>maxDate</code> properties are reset. The chart's axis returns to its original range:</p>
<pre>
    minDate = null;
    maxDate = null;
    ...                
    series1.setStyle("radius", 5);          
    series2.setStyle("radius", 5);          
    series3.setStyle("radius", 5);          
</pre>

<p>You can download the source here:</p>

<p><span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://blogs.adobe.com/flexdoc/DateSelectionExample.mxml">DateSelectionExample.mxml</a></span><br />
<span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://blogs.adobe.com/flexdoc/RangeSelector.as">RangeSelector.as</a></span></p>]]>
        
    </content>
</entry>

<entry>
    <title>We need help with a Flex and AIR documentation usability study</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/07/we_need_help_with_a_flex_and_a.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.11391</id>

    <published>2009-07-14T16:56:04Z</published>
    <updated>2009-07-14T16:59:00Z</updated>

    <summary>Hi all, Our friends on the Flash Platform documentation team are looking for usability study participants in a Flex/AIR study. They are offering Amazon gift certificates as an incentive. For more information, see http://blogs.adobe.com/actionscriptdocs/ Regards, -Randy...</summary>
    <author>
        <name>Randy Nielsen</name>
        
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p>Hi all,<br />
Our friends on the Flash Platform documentation team are looking for usability study participants in a Flex/AIR study. They are offering Amazon gift certificates as an incentive.</p>

<p>For more information, see http://blogs.adobe.com/actionscriptdocs/</p>

<p>Regards,<br />
-Randy<br />
</p>]]>
        
    </content>
</entry>

<entry>
    <title>LiveCycle Data Services 3 Beta Available</title>
    <link rel="alternate" type="text/html" href="http://blogs.adobe.com/flexdoc/2009/06/livecycle_data_services_3_beta.html" />
    <id>tag:blogs.adobe.com,2009:/flexdoc//99.11189</id>

    <published>2009-06-22T14:57:21Z</published>
    <updated>2009-06-22T16:20:55Z</updated>

    <summary>LiveCycle Data Service 3 Beta 1 is now available on Adobe Labs. The new model-driven development features in LiveCycle Data Services 3 offer a huge leap in productivity and ease-of-use for end-to-end applications. You start an application by creating a...</summary>
    <author>
        <name>Michael Peterson</name>
        
    </author>
    
        <category term="BlazeDS" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Data Services" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex 4" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex Builder" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Flex Gumbo" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="LiveCycle" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://blogs.adobe.com/flexdoc/">
        <![CDATA[<p><a href="http://labs.adobe.com/technologies/livecycle_dataservices3/">LiveCycle Data Service 3 Beta 1 </a>is now available on Adobe Labs.</p>

<p>The new model-driven development features in LiveCycle Data Services 3 offer a huge leap in productivity and ease-of-use for end-to-end applications. You start an application by creating a data model (a simple XML file) in the new "Modeler" editor that plugs into Flash Builder. From that model, you automatically generate data access logic on the server and Flex client code for working with the server code. </p>

<p>You can even generate much of a model by dragging existing SQL database tables into the Modeler editor. When you save the model, client code is automatically generated. When you deploy the model to the server, a fully functional Data Management Service destination is automatically generated on the LiveCycle Data Services server. You can support even the most advanced Data Management Service features just by creating and deploying a model.</p>

<p>Using Flash Builder with LiveCycle Data Services, you can now build simple or complex data-driven applications without writing any server-side code or configuration files. You can also take full advantage of the new Flash Builder 4 features for building the client side of data-driven applications.</p>

<p>We would love to get your feedback on this release and the documentation. To learn more:<br />
<UL><br />
<li><a href="http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_livecycle_dataservices3">Get the software</a></li><br />
<li><a href="http://labs.adobe.com/technologies/livecycle_dataservices3/videos/">Check out the videos</a></li><br />
<li><a href="http://labs.adobe.com/technologies/livecycle_dataservices3?tabID=details#tabTop">Read the documentation</a></li><br />
</p>]]>
        
    </content>
</entry>

</feed>
