<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ADOBE忍术</title>
	<atom:link href="http://www.mikewach.com/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikewach.com</link>
	<description>MIKE WACH</description>
	<lastBuildDate>Sat, 14 May 2011 04:53:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>SWF Scaling, Cropping, and Alignment</title>
		<link>http://www.mikewach.com/index.php/swf-scaling-cropping-and-alignment/</link>
		<comments>http://www.mikewach.com/index.php/swf-scaling-cropping-and-alignment/#comments</comments>
		<pubDate>Sat, 14 May 2011 04:53:13 +0000</pubDate>
		<dc:creator>Mike Wach</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikewach.com/?p=79</guid>
		<description><![CDATA[When embedding a SWF, there are a two parameters that control how it scales, crops, and aligns within the available width and height. scale: Specifies the scaling method and/or cropping of display objects drawn outside of the dimensions of the &#8230; <a href="http://www.mikewach.com/index.php/swf-scaling-cropping-and-alignment/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When embedding a SWF, there are a two parameters that control how it scales, crops, and aligns within the available width and height.</p>
<ul>
<li><strong>scale:</strong> Specifies the scaling method and/or cropping of display objects drawn outside of the dimensions of the object containing the SWF.</li>
</ul>
<table border="0">
<thead>
<tr>
<td style="text-align: center;"><span style="text-decoration: underline;"><strong>scale Parameter</strong></span></td>
<td style="text-align: center;"><span style="text-decoration: underline;"><strong>Scaling Effect</strong></span></td>
<td style="text-align: center;"><span style="text-decoration: underline;"><strong>Cropping Effect</strong></span></td>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;"><strong> showall</strong></td>
<td style="text-align: center;">Proportional</td>
<td style="text-align: center;">No</td>
</tr>
<tr>
<td style="text-align: center;"><strong> noborder</strong></td>
<td style="text-align: center;">Proportional</td>
<td style="text-align: center;">Possible</td>
</tr>
<tr>
<td style="text-align: center;"><strong> exactfit</strong></td>
<td style="text-align: center;">Stretch</td>
<td style="text-align: center;">No</td>
</tr>
<tr>
<td style="text-align: center;"><strong> noscale</strong></td>
<td style="text-align: center;">No</td>
<td style="text-align: center;">Possible</td>
</tr>
</tbody>
</table>
<ul>
<li><strong>salign:</strong> Specifies where the scaled SWF is positioned within the dimensions of the object that contains the SWF.</li>
</ul>
<table border="0">
<thead>
<tr>
<td style="text-align: center;"><span style="text-decoration: underline;"><strong> salign Parameter</strong></span></td>
<td style="text-align: center;"><span style="text-decoration: underline;"><strong>Horizontal Alignment</strong></span></td>
<td style="text-align: center;"><span style="text-decoration: underline;"><strong>Vertical Alignment</strong></span></td>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: center;"><strong>(None Specified)</strong></td>
<td style="text-align: center;">Center</td>
<td style="text-align: center;">Center</td>
</tr>
<tr>
<td style="text-align: center;"><strong>tl</strong></td>
<td style="text-align: center;">Left</td>
<td style="text-align: center;">Top</td>
</tr>
<tr>
<td style="text-align: center;"><strong>t</strong></td>
<td style="text-align: center;">Center</td>
<td style="text-align: center;">Top</td>
</tr>
<tr>
<td style="text-align: center;"><strong>tr</strong></td>
<td style="text-align: center;">Right</td>
<td style="text-align: center;">Top</td>
</tr>
<tr>
<td style="text-align: center;"><strong>r</strong></td>
<td style="text-align: center;">Right</td>
<td style="text-align: center;">Center</td>
</tr>
<tr>
<td style="text-align: center;"><strong>br</strong></td>
<td style="text-align: center;">Right</td>
<td style="text-align: center;">Bottom</td>
</tr>
<tr>
<td style="text-align: center;"><strong>b</strong></td>
<td style="text-align: center;">Center</td>
<td style="text-align: center;">Bottom</td>
</tr>
<tr>
<td style="text-align: center;"><strong>bl</strong></td>
<td style="text-align: center;">Left</td>
<td style="text-align: center;">Bottom</td>
</tr>
<tr>
<td style="text-align: center;"><strong>l</strong></td>
<td style="text-align: center;">Left</td>
<td style="text-align: center;">Center</td>
</tr>
</tbody>
</table>
<p>&#8220;salign&#8221; is often confused with the HTML object tag&#8217;s &#8220;align&#8221; attribute. However, &#8220;align&#8221; is actually the same <a title="&quot;align&quot; attribute specification by the W3C" href="http://www.w3.org/TR/html401/struct/objects.html#h-13.7.4" target="_blank">deprecated HTML attribute</a> applied to &lt;img&gt;, &lt;object&gt;, and &lt;applet&gt; tags.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikewach.com/index.php/swf-scaling-cropping-and-alignment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Instances with Dynamic Names</title>
		<link>http://www.mikewach.com/index.php/creating-instances-with-dynamic-names/</link>
		<comments>http://www.mikewach.com/index.php/creating-instances-with-dynamic-names/#comments</comments>
		<pubDate>Tue, 10 May 2011 00:28:08 +0000</pubDate>
		<dc:creator>Mike Wach</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikewach.com/?p=50</guid>
		<description><![CDATA[Creating instances of MovieClips set to &#8220;Export for Actionscript&#8221; in Flash Professional is really easy to do with the following AS3 code: var myClipClass:Class = getDefinitionByName("MyClip" + "01") as Class; var myClip:MovieClip = new myClipClass(); addChild(myClip); The magic occurs when &#8230; <a href="http://www.mikewach.com/index.php/creating-instances-with-dynamic-names/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Creating instances of MovieClips set to &#8220;Export for Actionscript&#8221; in Flash Professional is really easy to do with the following AS3 code:</p>
<pre>var myClipClass:Class = getDefinitionByName("MyClip" + "01") as Class;
var myClip:MovieClip = new myClipClass();
addChild(myClip);</pre>
<p>The magic occurs when you assign the returned Class to a separate variable. This enables you to construct instances of that Class, and assign them to other variables. Of course, you aren&#8217;t limited to only MovieClips, you could construct instances of any type of Class, as long as a definition exists for it.</p>
<p>This technique essentially allows you to do something like:</p>
<pre>var test:MovieClip = new ("MyClip" + variable)();</pre>
<p>Which is obviously <span style="color: #ff0000;">invalid code</span>.</p>
<p><strong>Note:</strong> You must assign the Class to a separate variable before you can construct instances of it. Unfortunately, I haven&#8217;t found any way to eliminate the need for a separate variable that stores the Class reference.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikewach.com/index.php/creating-instances-with-dynamic-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customizing TextFlow Hyperlinks Appearance</title>
		<link>http://www.mikewach.com/index.php/customizing-textflow-hyperlinks-appearance/</link>
		<comments>http://www.mikewach.com/index.php/customizing-textflow-hyperlinks-appearance/#comments</comments>
		<pubDate>Sun, 08 May 2011 06:27:39 +0000</pubDate>
		<dc:creator>Mike Wach</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikewach.com/?p=32</guid>
		<description><![CDATA[There are three states of TLF LinkElements (&#8220;hyperlinks&#8221; or &#8220;anchors&#8221;) that may be customized: Normal: When the LinkElement is in both its non-hover and non-active state (or when ROLL_OUT is dispatched) Hover: When the LinkElement dispatches a ROLL_OVER event and &#8230; <a href="http://www.mikewach.com/index.php/customizing-textflow-hyperlinks-appearance/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are three states of TLF <a title="LinkElement documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/LinkElement.html" target="_blank">LinkElements</a> (&#8220;hyperlinks&#8221; or &#8220;anchors&#8221;) that may be customized:</p>
<ul>
<li><strong>Normal:</strong> When the LinkElement is in both its non-hover and non-active state (or when <a title="FlowElementMouseEvent.ROLL_OUT on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/events/FlowElementMouseEvent.html#ROLL_OUT" target="_blank">ROLL_OUT</a> is dispatched)</li>
<li><strong>Hover</strong>: When the LinkElement dispatches a <a title="FlowElementMouseEvent.ROLL_OVER on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/events/FlowElementMouseEvent.html#ROLL_OVER" target="_blank">ROLL_OVER</a><a title="MouseEvent.MOUSE_OVER documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent.html#MOUSE_OVER" target="_blank"></a> event and the primary mouse button is not pressed.</li>
<li><strong>Active:</strong> When the LinkElement dispatches a <a title="FlowElementMouseEvent.MOUSE_DOWN on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/events/FlowElementMouseEvent.html#MOUSE_DOWN" target="_blank">MOUSE_DOWN</a>, <a title="FlowElementMouseEvent.CLICK on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/events/FlowElementMouseEvent.html#CLICK" target="_blank">MOUSE_CLICK</a>, or <a title="FlowElementMouseEvent.MOUSE_MOVE on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/events/FlowElementMouseEvent.html#MOUSE_MOVE" target="_blank">MOUSE_MOVE</a> and the primary mouse button is pressed (<a title="MouseEvent.buttonDown documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent.html#buttonDown" target="_blank">MouseEvent.buttonDown</a>).</li>
</ul>
<p><strong>LinkElements must be children of RichEditableText in order to function. If the &#8220;editable&#8221; property is set to &#8220;true&#8221; (which it is by default), the control key must be pressed concurrently with the LinkElement mouse activity.</strong> This is the special nature of <a title="FlowElementMouseEvents documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/events/FlowElementMouseEvent.html" target="_blank">FlowElementMouseEvent</a></p>
<p>Below is an MXML example using an inline TextFlow declaration which styles the LinkElement as so: <span style="text-decoration: underline; color: #ff0000;">normal</span>, <span style="color: #0066ff;"><em>hover</em></span>, &amp; <span style="color: #00ff00;"><strong>active</strong></span>. However, keep in mind <a title="TextLayoutFormat Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/formats/TextLayoutFormat.html" target="_blank">TextLayoutFormat</a> supports many other properties for styling.</p>
<pre>&lt;s:RichEditableText editable="false"&gt;
 &lt;s:textFlow&gt;
   &lt;s:TextFlow&gt;
     &lt;s:linkNormalFormat&gt;
          &lt;s:TextLayoutFormat color="#FF0000" textDecoration="underline"/&gt;
     &lt;/s:linkNormalFormat&gt;
     &lt;s:linkHoverFormat&gt;
          &lt;s:TextLayoutFormat color="#0066FF" fontStyle="italic"/&gt;
     &lt;/s:linkHoverFormat&gt;
     &lt;s:linkActiveFormat&gt;
          &lt;s:TextLayoutFormat color="#00FF00" fontWeight="bold"/&gt;
     &lt;/s:linkActiveFormat&gt;
     &lt;s:p&gt;Hello &lt;s:a href="http://www.adobe.com/"&gt;Adobe&lt;/s:a&gt;&lt;/s:p&gt;
   &lt;/s:TextFlow&gt;
 &lt;/s:textFlow&gt;
&lt;/s:RichEditableText&gt;</pre>
<p>A few things to note:</p>
<ul>
<li>The linkNormalFormat is <span style="color: #0000ff;">blue (#0000FF)</span> and <span style="text-decoration: underline;">underlined</span> by default.</li>
<li>Both linkHoverFormat and linkActiveFormat reference the linkNormalFormat unless specified otherwise.</li>
<li>LinkElements may contain any of the following elements:
<ul>
<li><a title="FlowElement.linkNormatFormat documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/FlowElement.html#linkNormalFormat" target="_blank">linkNormalFormat</a></li>
<li><a title="FlowElement.linkHoverFormat documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/FlowElement.html#linkHoverFormat" target="_blank">linkHoverFormat</a></li>
<li><a title="FlowElement.linkActiveFormat documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/FlowElement.html#linkActiveFormat" target="_blank">linkActiveFormat</a></li>
</ul>
<ul>
<li><a title="TCYElement documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/TCYElement.html" target="_blank">tcy</a></li>
<li><a title="InlineGraphicElement documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/InlineGraphicElement.html" target="_blank">img</a></li>
<li><a title="SpanElement documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/SpanElement.html" target="_blank">span</a></li>
<li><a title="BreakElement documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/BreakElement.html" target="_blank">br</a></li>
<li><a title="TabElement documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/elements/TabElement.html" target="_blank">tab</a></li>
</ul>
</li>
<li>Link format elements <strong>must contain only one </strong><a title="TextLayoutFormat on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/formats/TextLayoutFormat.html" target="_blank">&lt;TextLayoutFormat&gt;</a> child element which formats any LinkElement within the parent of that link format element</li>
<li>Link formats may be inherited from parent elements or you may override them in child elements.</li>
<li>Link <strong>format</strong> elements are not supported with <a title="TextConverter documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/conversion/TextConverter.html#TEXT_FIELD_HTML_FORMAT" target="_blank">TextConverter.TEXT_FIELD_HTML_FORMAT</a></li>
<li><a title="FlowElementMouseEvent documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flashx/textLayout/events/FlowElementMouseEvent.html" target="_blank">FlowElementMouseEvent</a> listeners may be added to LinkElements and the CLICK event handler may prevent the default <a title="navigateToURL documentation on Adobe LiveDocs" href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/package.html#navigateToURL()" target="_blank">navigateToURL</a> behavior:</li>
</ul>
<pre>private function mouseClickHandler(e:FlowElementMouseEvent):void
{
     e.stopImmediatePropagation();
     e.preventDefault();
     trace("LinkElement clicked");
}</pre>
<p><em>All of the preceding Text Layout Framework markup has been tested and proven functional with the following Flex SDKs:</em></p>
<ul>
<li>Flex 4.0.0.14159 with its included TLF 1.0</li>
<li>Flex 4.1.0.16076 with its included  TLF 1.1</li>
<li>Flex 4.5.0.20967 with its included TLF 2.0</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mikewach.com/index.php/customizing-textflow-hyperlinks-appearance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No More &#8220;Online Portfolio&#8221;</title>
		<link>http://www.mikewach.com/index.php/no-more-online-portfolio/</link>
		<comments>http://www.mikewach.com/index.php/no-more-online-portfolio/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 02:48:32 +0000</pubDate>
		<dc:creator>Mike Wach</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.mikewach.com/?p=5</guid>
		<description><![CDATA[If you&#8217;ve been to this domain before now, it&#8217;s obviously official- I took down my old &#8220;portfolio&#8221;. It was just another ill contrived homework assignment while I was at UAT. My degree was for &#8220;digital art &#38; design&#8221;, so having &#8230; <a href="http://www.mikewach.com/index.php/no-more-online-portfolio/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been to this domain before now, it&#8217;s obviously official- I took down my old &#8220;portfolio&#8221;. It was just another ill contrived homework assignment  while I was at <a title="University of Advancing Technology" href="http://uat.edu/" target="_blank">UAT</a>.  My degree was for  &#8220;digital art &amp; design&#8221;, so having a flash &amp; zend programming  portfolio was unacceptable to the professors assigned to judge this graduation requirement. The closest <em>sounding</em> degree UAT offered was  &#8220;web architecture&#8221;, but the classes available were still the same- irrelevant to the career I chased.</p>
<p><strong>Lesson:</strong> don&#8217;t waste time and  money at a tech school. The best tech teacher is the tech itself. Avoid obliging to a situation offering only impractical means of escape. There are better alternatives for mastering core classes. Always consider alternative possibilities.</p>
<p>Of course I do have a portfolio, however you need to contact me personally if you want to see it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikewach.com/index.php/no-more-online-portfolio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

