<?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>Blowing Through Lines &#187; Flex 3</title>
	<atom:link href="http://blowingthroughlines.com/category/flex-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://blowingthroughlines.com</link>
	<description>Highly addictive code.</description>
	<lastBuildDate>Tue, 15 Jun 2010 18:14:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>External Interface Callbacks with Jquery</title>
		<link>http://blowingthroughlines.com/2009/09/28/bugs/external-interface-callbacks-with-jquery/</link>
		<comments>http://blowingthroughlines.com/2009/09/28/bugs/external-interface-callbacks-with-jquery/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 15:59:07 +0000</pubDate>
		<dc:creator>nilloc</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Flash AS 3.0]]></category>
		<category><![CDATA[Flex 3]]></category>

		<guid isPermaLink="false">http://blowingthroughlines.com/?p=141</guid>
		<description><![CDATA[So first off, NEVER use this most lazy of hacks to reference the flash object when calling a method in a flash file:

?View Code JAVASCRIPT1
2
3
4
// some code
function test&#40;&#41; &#123;
	flashID.ner&#40;&#34;hello&#34;&#41;; // BAAAAAAD!
&#125;

For some reason it works… Some of the time. On Safari when testing running from Flex. On my Mac.
I was being lazy and not really [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>So first off, <em><strong>NEVER</strong></em> use this most lazy of hacks to reference the flash object when calling a method in a flash file:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p141code4'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1414"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p141code4"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// some code</span>
<span style="color: #003366; font-weight: bold;">function</span> test<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	flashID.<span style="color: #660066;">ner</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hello&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// BAAAAAAD!</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>For some reason it works… Some of the time. On Safari when testing running from Flex. On my Mac.</p>
<p>I was being lazy and not really thinking back to how things work in Javascript at the time, then having recently started using Jquery, I tried:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p141code5'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1415"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p141code5"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// some code</span>
<span style="color: #003366; font-weight: bold;">function</span> test<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> flashMovie <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#flashID'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	flashMovie.<span style="color: #660066;">ner</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hello&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// ALSO BAAAAAAD!</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Also doesn&#8217;t work, for some reason Jquery removes the methods associated with the embed tag that is written, and replaces them with only the Jquery methods. So in order for this to work the code needs to be simply:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p141code6'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1416"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p141code6"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> test<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> flashMovie <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementByID</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;flashID&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	flashMovie.<span style="color: #660066;">ner</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hello&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// FINALLY! It worked.</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>



<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blowingthroughlines.com/2009/09/28/bugs/external-interface-callbacks-with-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SWFAddress, if You Aren&#8217;t Using it for All Your Flash, Start to</title>
		<link>http://blowingthroughlines.com/2009/04/03/javascript/swfaddress-if-you-arent-using-it-for-all-your-flash-start-to/</link>
		<comments>http://blowingthroughlines.com/2009/04/03/javascript/swfaddress-if-you-arent-using-it-for-all-your-flash-start-to/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 16:30:39 +0000</pubDate>
		<dc:creator>nilloc</dc:creator>
				<category><![CDATA[Flash AS 3.0]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://blowingthroughlines.com/?p=129</guid>
		<description><![CDATA[We&#8217;ve been using SWFAddress for a while now, and while I was cleaning old project files out of Flex I came across my first Flex Test using it. It&#8217;s simple, and in fact, SWFAddress has been improved a bunch since this test was made (mostly involving SEO, and fallback links + Google Analytics). Now we&#8217;re [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been using <a href="http://www.asual.com/swfaddress/" title="SWFAddress project homepage">SWFAddress</a> for a while now, and while I was cleaning old project files out of Flex I came across my first Flex Test using it. It&#8217;s simple, and in fact, SWFAddress has been improved a bunch since this test was made (mostly involving SEO, and fallback links + Google Analytics). Now we&#8217;re using it for running our entire navigation schemes for all Flash sites, mini-sites, components, and even in our pitches.</p>
<p>Check out my <a href="/examples/SWFAddressTester/" title="SWFAddress Example (click to set address to future X location of the black box">example (click anywhere to move the box, then use the back/forward buttons for undo/redo).</a></p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p129code8'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p1298"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
</pre></td><td class="code" id="p129code8"><pre class="actionscript" style="font-family:monospace;">package <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">asual</span>.<span style="color: #006600;">swfaddress</span>.<span style="color: #006600;">SWFAddress</span>;
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">asual</span>.<span style="color: #006600;">swfaddress</span>.<span style="color: #006600;">SWFAddressEvent</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Shape</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">MouseEvent</span>;
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SWFAddress_test <span style="color: #0066CC;">extends</span> Sprite
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> _square:Shape;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> SWFAddress_test<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			SWFAddress.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>SWFAddressEvent.<span style="color: #006600;">INIT</span>, init<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span>evt:SWFAddressEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			SWFAddress.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>SWFAddressEvent.<span style="color: #006600;">CHANGE</span>, handleSWFAddressChange<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">stage</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, gotoAddress<span style="color: #66cc66;">&#41;</span>;
&nbsp;
			_square = <span style="color: #000000; font-weight: bold;">new</span> Shape<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
			_square.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span>0x0<span style="color: #66cc66;">&#41;</span>;
			_square.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawRect</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">50</span>,<span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>_square<span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> handleSWFAddressChange<span style="color: #66cc66;">&#40;</span>evt:SWFAddressEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>evt.<span style="color: #006600;">path</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #000000; font-weight: bold;">var</span> address:<span style="color: #0066CC;">Array</span> = evt.<span style="color: #006600;">path</span>.<span style="color: #0066CC;">split</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/&quot;</span>, <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #000000; font-weight: bold;">var</span> xLoc:<span style="color: #0066CC;">Number</span> = <span style="color: #0066CC;">Number</span><span style="color: #66cc66;">&#40;</span>address<span style="color: #66cc66;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">!</span><span style="color: #0066CC;">isNaN</span><span style="color: #66cc66;">&#40;</span>xLoc<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> moveSquare<span style="color: #66cc66;">&#40;</span>xLoc<span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> gotoAddress<span style="color: #66cc66;">&#40;</span>evt:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			SWFAddress.<span style="color: #006600;">setValue</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>.<span style="color: #006600;">mouseX</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> moveSquare<span style="color: #66cc66;">&#40;</span>loc:<span style="color: #0066CC;">Number</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
		<span style="color: #66cc66;">&#123;</span>
			_square.<span style="color: #006600;">x</span> = loc;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>



<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blowingthroughlines.com/2009/04/03/javascript/swfaddress-if-you-arent-using-it-for-all-your-flash-start-to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex Custom Validator Email Confirmation</title>
		<link>http://blowingthroughlines.com/2009/02/18/uncategorized/flex-custom-validator-email-confirmation/</link>
		<comments>http://blowingthroughlines.com/2009/02/18/uncategorized/flex-custom-validator-email-confirmation/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 18:18:16 +0000</pubDate>
		<dc:creator>jeff</dc:creator>
				<category><![CDATA[Flash AS 3.0]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flex3]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://blowingthroughlines.com/?p=100</guid>
		<description><![CDATA[Pretty simple stuff.  This was driving me a bit crazy at the beginning of the day so I decided to just cut and paste my source code hoping this will help someone else out.  Basically I just want to create a custom validator that makes sure one field is equal to another in [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Pretty simple stuff.  This was driving me a bit crazy at the beginning of the day so I decided to just cut and paste my source code hoping this will help someone else out.  Basically I just want to create a custom validator that makes sure one field is equal to another in flex.  Pretty simple but if you are a noob you will find this task a bit sucky&#8230;.  Her is the code</p>
<p>Actionscript Custom Validator.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p100code11'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10011"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
</pre></td><td class="code" id="p100code11"><pre class="actionscript" style="font-family:monospace;">package com.<span style="color: #006600;">flextradeshow</span>.<span style="color: #006600;">classes</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> flash.<span style="color: #0066CC;">text</span>.<span style="color: #0066CC;">TextField</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">TextInput</span>;
	<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">validators</span>.<span style="color: #006600;">ValidationResult</span>;
	<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">validators</span>.<span style="color: #006600;">Validator</span>;
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> EqualValidator <span style="color: #0066CC;">extends</span> Validator
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> results:<span style="color: #0066CC;">Array</span>;
&nbsp;
		<span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> textbox:TextInput = <span style="color: #000000; font-weight: bold;">new</span> TextInput<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> EqualValidator<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #0066CC;">super</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
		<span style="color: #66cc66;">&#125;</span>
		override protected <span style="color: #000000; font-weight: bold;">function</span> doValidation<span style="color: #66cc66;">&#40;</span>value:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">Array</span>
		<span style="color: #66cc66;">&#123;</span>
			results = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;
			results = <span style="color: #0066CC;">super</span>.<span style="color: #006600;">doValidation</span><span style="color: #66cc66;">&#40;</span>value<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>results.<span style="color: #0066CC;">length</span> <span style="color: #66cc66;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #b1b100;">return</span> results;
			<span style="color: #66cc66;">&#125;</span>
			<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>value<span style="color: #66cc66;">!</span>=textbox.<span style="color: #0066CC;">text</span> <span style="color: #66cc66;">||</span> <span style="color: #66cc66;">!</span>value<span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				results.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> ValidationResult<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">true</span>,<span style="color: #000000; font-weight: bold;">null</span>,<span style="color: #ff0000;">&quot;NaN&quot;</span>,<span style="color: #ff0000;">&quot;Not a matching value sorry&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
				<span style="color: #b1b100;">return</span> results;
			<span style="color: #66cc66;">&#125;</span>
			<span style="color: #b1b100;">return</span> results;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>This is the code you need in your view to use the validator.</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p100code12'); return false;">View Code</a> XML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p10012"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
</pre></td><td class="code" id="p100code12"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Panel</span> <span style="color: #000066;">xmlns:mx</span>=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> <span style="color: #000066;">xmlns:tsclasses</span>=<span style="color: #ff0000;">&quot;com.flextradeshow.classes.*&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:StringValidator</span></span>
<span style="color: #009900;">		<span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;nameValidator&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">source</span>=<span style="color: #ff0000;">&quot;{_iname}&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;text&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">minLength</span>=<span style="color: #ff0000;">&quot;4&quot;</span></span>
<span style="color: #009900;">	<span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:EmailValidator</span></span>
<span style="color: #009900;">		<span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;emailValidator&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">source</span>=<span style="color: #ff0000;">&quot;{_iemail}&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;text&quot;</span></span>
<span style="color: #009900;">	<span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:EmailValidator</span></span>
<span style="color: #009900;">		<span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;emailConfirmationValidator&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">source</span>=<span style="color: #ff0000;">&quot;{_iconfirmemail}&quot;</span></span>
<span style="color: #009900;">		<span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;text&quot;</span></span>
<span style="color: #009900;">	<span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;tsclasses:EqualValidator</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;sameEmailValidator&quot;</span> <span style="color: #000066;">source</span>=<span style="color: #ff0000;">&quot;{_iconfirmemail}&quot;</span> <span style="color: #000066;">textbox</span>=<span style="color: #ff0000;">&quot;{_iemail}&quot;</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Form</span> <span style="color: #000066;">labelWidth</span>=<span style="color: #ff0000;">&quot;100&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;302&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #000066;">horizontalScrollPolicy</span>=<span style="color: #ff0000;">&quot;off&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:FormItem</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Full Name&quot;</span> <span style="color: #000066;">required</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:TextInput</span>  <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;_iname&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mx:FormItem<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:FormItem</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Email&quot;</span> <span style="color: #000066;">required</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:TextInput</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;_iemail&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mx:FormItem<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:FormItem</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Confirm Email&quot;</span> <span style="color: #000066;">required</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:TextInput</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;_iconfirmemail&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mx:FormItem<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:FormItem</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Birthday&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:DateField</span>  <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;_ibirthday&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mx:FormItem<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Spacer</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;15&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Label</span> <span style="color: #000066;">text</span>=<span style="color: #ff0000;">&quot;Free mimoDesk Sample (Choose One)&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/mx:Label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Box</span> <span style="color: #000066;">paddingLeft</span>=<span style="color: #ff0000;">&quot;110&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:RadioButtonGroup</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;freemimodesk&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Star Wars&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;freemimodesk&quot;</span> <span style="color: #000066;">selected</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Tokidoki&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;freemimodesk&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Original Core Series&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;freemimodesk&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Not Interested&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;freemimodesk&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mx:Box<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Spacer</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;15&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Label</span> <span style="color: #000066;">text</span>=<span style="color: #ff0000;">&quot;Subscribe to any of the following Newsletters&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/mx:Label<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Box</span> <span style="color: #000066;">paddingLeft</span>=<span style="color: #ff0000;">&quot;110&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:CheckBox</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Consumer&quot;</span> <span style="color: #000066;">selected</span>=<span style="color: #ff0000;">&quot;true&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:CheckBox</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Press&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:CheckBox</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Wholesale&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mx:Box<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Box</span> <span style="color: #000066;">horizontalAlign</span>=<span style="color: #ff0000;">&quot;right&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Button</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Subscribe&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mx:Box<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mx:Form<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mx:Panel<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></td></tr></table></div>



<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blowingthroughlines.com/2009/02/18/uncategorized/flex-custom-validator-email-confirmation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FIVe3D Rocks, but name is hard to type fast&#8230;</title>
		<link>http://blowingthroughlines.com/2008/08/03/flash-as-3/five3d-rocks/</link>
		<comments>http://blowingthroughlines.com/2008/08/03/flash-as-3/five3d-rocks/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 17:52:12 +0000</pubDate>
		<dc:creator>nilloc</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Flash AS 3.0]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://blowingthroughlines.com/?p=53</guid>
		<description><![CDATA[I don&#8217;t know where the capitalization came from, but it&#8217;s such a simple API for anyone who&#8217;s happy with AS3 (is there anyone who isn&#8217;t?) that FIVe3D worth the challenging finger-work. I made this demo in about 3 hours total, it draws bitmaps, and adds them to Sprite3Ds, and mimicks what we&#8217;ve been working on [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know where the capitalization came from, but it&#8217;s such a simple API for anyone who&#8217;s happy with AS3 (is there anyone who isn&#8217;t?) that <a href="http://five3d.mathieu-badimon.com/" target="_blank" title="Kick-assingly simple 3D in Flash">FIVe3D</a> worth the challenging finger-work. I made this demo in about 3 hours total, it draws bitmaps, and adds them to Sprite3Ds, and mimicks what we&#8217;ve been working on for 2 months in <a href="http://blog.papervision3d.org" target="_blank" title="Kick-assingly complicated 3D in Flash">Papervision3D</a> (I&#8217;ll definitly have a link to that when its fully launched).</p>
<p>For a great many simpler 3D applications, I think FIVe3D is the way-to-go, but Papervision3D still does have an edge in speed (when properly optimized that is) if dealing with more then 20 or so planes.</p>
<p>One quirk of FIVe3D that I initially didn&#8217;t get, was that the order of my addChild statements determines what shows up on top of what, <em>not</em> the Z value of the sprite, so included with this source is a handy depth sorter loop, that will work with any 53D setup.</p>
<p><object type="application/x-shockwave-flash" data="http://blowingthroughlines.com/wp-content/uploads/2008/08/five3dtest.swf" width="100%" height="500" class="embedflash"><param name="movie" value="http://blowingthroughlines.com/wp-content/uploads/2008/08/five3dtest.swf" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><small>(Please open the article to see the flash file or player.)</small></object><br />
<a href='http://blowingthroughlines.com/wp-content/uploads/2008/08/five3dtest.zip'>FIVe3D Test Source</a></p>
<p>Also modified it a little so that height and width could be stored in the sprite3D class, i know bad me, but until i get my head around Mathieu&#8217;s version of Matrix3D. That ugly blinking plane on the right side is actually a series of bitmapDatas, that are playing back (like cached animation) that I learned from <a href="http://www.rockonflash.com/blog/" target="_blank">John Grden</a> a few weeks ago. I&#8217;m working on my own version of a class to automatically create bmp animations from a timeline swf, unless his goes open source&hellip;</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blowingthroughlines.com/2008/08/03/flash-as-3/five3d-rocks/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fixed Opening FLAs in Flex 3 for OS X</title>
		<link>http://blowingthroughlines.com/2008/07/05/flex-3/opening-flas-in-flex/</link>
		<comments>http://blowingthroughlines.com/2008/07/05/flex-3/opening-flas-in-flex/#comments</comments>
		<pubDate>Sat, 05 Jul 2008 21:54:05 +0000</pubDate>
		<dc:creator>nilloc</dc:creator>
				<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://blowingthroughlines.com/?p=41</guid>
		<description><![CDATA[So we&#8217;ve been developing in Flex 3 for the last 3 months now, and I&#8217;m wondering why I didn&#8217;t switch earlier&#8230; Anyway a small annoyance that bothered me for the first couple weeks was the inability to double click any files that needed to be edited outside of Flex. It just throws this weird error:
Unable [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>So we&#8217;ve been developing in Flex 3 for the last 3 months now, and I&#8217;m wondering why I didn&#8217;t switch earlier&#8230; Anyway a small annoyance that bothered me for the first couple weeks was the inability to double click any files that needed to be edited outside of Flex. It just throws this weird error:<br />
Unable to open external editor&#8230;<br />
(com.adobe.flexbuilder.ui.osx_3.0.194161)<br />
<a href="http://bugs.adobe.com/jira/browse/FB-10670" target="_blank">Sort of more about the error hereâ€¦</a></p>
<p>With a little research it seems that this is a problem with the System Editor settings with Eclipse itself (which Flex Builder is based, for the noobs like I me).</p>
<p>So taking a bit of a shot in the dark I looked through com.adobe.flexbuilder.ui.osx_3.0.194161, and it didn&#8217;t seem to have anything other then commands to open system editable? files. So just deleted the package from the plugins folder (actually i moved it to a plugins-disabled folder in the main Flex directory), and holy crap it worked!</p>
<p>So far I and my co-developer Sean, and our intern Derek haven&#8217;t come across any other errors, or changes in performance, just the unfettered ability to double-click FLAs and watch them load in Flash.</p>
<p>Give it a try and lemme know if your results vary. Though I suppose you should be doing so at your own risk&#8230;</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://blowingthroughlines.com/2008/07/05/flex-3/opening-flas-in-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
