<?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>Andrews Roberson &#187; flexMDI</title>
	<atom:link href="http://andrewsroberson.com.br/blog/tag/flexmdi/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewsroberson.com.br/blog</link>
	<description></description>
	<lastBuildDate>Tue, 22 Jun 2010 02:06:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>Chamando um Component baseado em FlexMDI</title>
		<link>http://andrewsroberson.com.br/blog/2008/12/30/chamando-um-component-baseado-em-flexmdi/</link>
		<comments>http://andrewsroberson.com.br/blog/2008/12/30/chamando-um-component-baseado-em-flexmdi/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 14:27:27 +0000</pubDate>
		<dc:creator>Andrews</dc:creator>
				<category><![CDATA[dicas]]></category>
		<category><![CDATA[labs]]></category>
		<category><![CDATA[ria]]></category>
		<category><![CDATA[adobe flex]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[flexMDI]]></category>

		<guid isPermaLink="false">http://andrewsroberson.com.br/blog/?p=76</guid>
		<description><![CDATA[Uma dica rápida de como chamar components baseados em FlexMDI via actionscript (Entendo que ja saiba trabalhar com Components no Adobe Flex). Deve-se definir um container no arquivo principal para que este possa acondicionar os components baseado em FlexMDI, onde, também teremos um Button para executar a function. &#60;mx:Button label=&#34;Add Window&#34; click=&#34;addWindow()&#34;/&#62; &#60;flexmdi:MDICanvas id=&#34;myMDI&#34; width=&#34;100%&#34; [...]]]></description>
			<content:encoded><![CDATA[<p>Uma dica rápida de como chamar components baseados em <a title="Flex Multiple Document Interface" href="http://flexmdi.googlecode.com" target="_self">FlexMDI</a> via actionscript (Entendo que ja saiba trabalhar com Components no <a title="Adobe Flex" href="http://www.adobe.com/products/flex/" target="_self">Adobe Flex</a>).</p>
<p>Deve-se definir um container no arquivo principal para que este possa acondicionar os components baseado em <a title="Flex Multiple Document Interface" href="http://flexmdi.googlecode.com" target="_self">FlexMDI</a>, onde, também teremos um Button para executar a function.</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Button</span> label=<span style="color: #ff0000;">&quot;Add Window&quot;</span> click=<span style="color: #ff0000;">&quot;addWindow()&quot;</span><span style="color: #7400FF;">/&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;flexmdi:MDICanvas</span> id=<span style="color: #ff0000;">&quot;myMDI&quot;</span> width=<span style="color: #ff0000;">&quot;100%&quot;</span> height=<span style="color: #ff0000;">&quot;100%&quot;</span><span style="color: #7400FF;">/&gt;</span></span></pre></div></div>

<p>Também devemos criar o component lógico <img src='http://andrewsroberson.com.br/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> , então definimos que nosso component será do tipo MDIWindow e seu nome será <strong>window</strong>.<br />
Após ter criado o component, escreveremos a function que o chamará.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> addWindow<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
     <span style="color: #000000; font-weight: bold;">var</span> myWindow:window = <span style="color: #000000; font-weight: bold;">new</span> window<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
     myMDI.<span style="color: #006600;">windowManager</span>.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span>myWindow<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Pronto! mais simples que isto impossível.<br />
<a title="Chamando um Component baseado em FlexMDI" href="http://www.andrewsroberson.com.br/labs/adobe-flex/flexMDI-component/bin-release/FlexMdi.html" target="_self"> Veja como ficou nosso component, bem como o source</a></p>
<!-- boo-widget start -->
          <script type="text/javascript">
            bb_keywords = "component";
            bb_bid  = "5362";
            bb_lang = "pt-BR";
            bb_name = "custom";bb_width = "500";bb_limit = "5";
          </script>
          <script type="text/javascript" src="http://widgets.boo-box.com/javascripts/embed.js"></script>
          <!-- boo-widget end -->]]></content:encoded>
			<wfw:commentRss>http://andrewsroberson.com.br/blog/2008/12/30/chamando-um-component-baseado-em-flexmdi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
