<?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>Research and Adobe lover &#187; FXG</title>
	<atom:link href="http://blog.fathihadi.net/tag/fxg/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fathihadi.net</link>
	<description>Ahmad Fathi Hadi &#124; RIA Developer Specializing in Adobe Technology</description>
	<lastBuildDate>Thu, 02 Feb 2012 16:47:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Flash XML Graphics (FXG), Apa itu ?</title>
		<link>http://blog.fathihadi.net/flash-xml-graphics-fxg/</link>
		<comments>http://blog.fathihadi.net/flash-xml-graphics-fxg/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 07:38:22 +0000</pubDate>
		<dc:creator>ahmadfathihadi</dc:creator>
				<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Article]]></category>
		<category><![CDATA[Code for Joy]]></category>
		<category><![CDATA[Flash XML Graphics]]></category>
		<category><![CDATA[Flex 4]]></category>
		<category><![CDATA[FXG]]></category>
		<category><![CDATA[MXML]]></category>

		<guid isPermaLink="false">http://blog.fathihadi.net/?p=51</guid>
		<description><![CDATA[Flash XML Graphics (FXG) adalah sintax untuk medefinisikan grafik dalam Flex. Mungkin bagi anda yang pernah membaca artikel saya mengenai degrafa yang berjudul &#8220;Degrafa untuk Pemula&#8221; di http://www.indonesianflexcommunity.org/tutorial-flex/41-design/91-degrafa-untuk-pemula , anda akan mudah dalam memahami FXG. Sebenarnya FXG dibuat agar para designer bisa bekerja terpisah dengan developer. Maksudnya ?, ya maksud saya adalah dengan menggunakan tools seperti Adobe Photoshop [...]]]></description>
			<content:encoded><![CDATA[<p>Flash XML Graphics (FXG) adalah sintax untuk medefinisikan grafik dalam Flex. Mungkin bagi anda yang pernah membaca artikel saya mengenai degrafa yang berjudul &#8220;Degrafa untuk Pemula&#8221; di <a href="http://www.indonesianflexcommunity.org/tutorial-flex/41-design/91-degrafa-untuk-pemula">http://www.indonesianflexcommunity.org/tutorial-flex/41-design/91-degrafa-untuk-pemula</a> , anda akan mudah dalam memahami FXG.</p>
<p>Sebenarnya FXG dibuat agar para designer bisa bekerja terpisah dengan developer. Maksudnya ?, ya maksud saya adalah dengan menggunakan tools seperti Adobe Photoshop CS4, Illustrator CS4 and Fireworks CS4, kita akan bisa merubahnya kedalah format FXG dan bisa dipakai dalam aplikasi Flex kita. Namun sayangnya format FXG bisa digunakan menggunakan Flex 4 SDK dan termasuk dalam bagian spark .  Maaf ya <img src='http://blog.fathihadi.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Anda bisa menggunakan FXG element langsung didalam sintax MXML ataupun berdiri sendiri sebagai Custom Component.</p>
<p>Contoh :</p>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; xmlns:mx=&quot;library://ns.adobe.com/flex/halo&quot; minWidth=&quot;1024&quot; minHeight=&quot;768&quot;&gt;
	&lt;mx:Panel title=&quot;Ellipse&quot; height=&quot;247&quot; width=&quot;279&quot; layout=&quot;horizontal&quot; paddingTop=&quot;10&quot; paddingBottom=&quot;10&quot; paddingLeft=&quot;10&quot; paddingRight=&quot;10&quot; x=&quot;259&quot; y=&quot;154&quot;&gt;
		&lt;s:Graphic x=&quot;0&quot; y=&quot;0&quot;&gt;
			&lt;s:Ellipse height=&quot;100&quot; width=&quot;250&quot;&gt;
				&lt;s:stroke&gt;
					&lt;s:SolidColorStroke color=&quot;0x000000&quot; weight=&quot;2&quot;/&gt;
				&lt;/s:stroke&gt;
				&lt;s:fill&gt;
					&lt;s:RadialGradient&gt;
						&lt;s:entries&gt;
							&lt;s:GradientEntry color=&quot;0x1c64a7&quot;/&gt;
							&lt;s:GradientEntry color=&quot;0x114371&quot;/&gt;
						&lt;/s:entries&gt;
					&lt;/s:RadialGradient&gt;
				&lt;/s:fill&gt;
				&lt;s:filters&gt;
					&lt;mx:DropShadowFilter/&gt;
				&lt;/s:filters&gt;
			&lt;/s:Ellipse&gt;
		&lt;/s:Graphic&gt;
	&lt;/mx:Panel&gt;
&lt;/s:Application&gt;</pre>
<div id="attachment_271" class="wp-caption aligncenter" style="width: 289px"><a href="http://blog.fathihadi.net/files/2009/06/ellipse-fxg.jpg"><img class="size-full wp-image-271 " title="Ellipse FXG" src="http://blog.fathihadi.net/files/2009/06/ellipse-fxg.jpg" alt="Ellipse FXG" width="279" height="247" /></a><p class="wp-caption-text">Ellipse FXG</p></div>
<p>FXG bisa berada dalam file *.mxml dan *.fxg dengan syarat berada didalam tag &lt;Graphic&gt;</p>
<p>Tidak hanya itu, kita juga bisa menggunakan tag &lt;Library&gt; dan &lt;Definition&gt;, yang berfungsi semacam deklarasi FXG yang nantinya bisa kita pakai dengan memanggil namanya.</p>
<p>Contoh :</p>
<pre class="brush: xml; title: ; notranslate">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!-- Ahmad Fathi Hadi/FXGLibraryExample.mxml --&gt;
&lt;s:Application xmlns:fx=&quot;http://ns.adobe.com/mxml/2009&quot; xmlns:mx=&quot;library://ns.adobe.com/flex/halo&quot; xmlns:s=&quot;library://ns.adobe.com/flex/spark&quot; &gt;
	&lt;fx:Library&gt;
		&lt;fx:Definition name=&quot;EllipseFathi&quot;&gt;
			&lt;s:Graphic x=&quot;0&quot; y=&quot;0&quot;&gt;
				&lt;s:Ellipse height=&quot;100&quot; width=&quot;250&quot;&gt;
					&lt;s:stroke&gt;
						&lt;s:SolidColorStroke color=&quot;0x000000&quot; weight=&quot;2&quot;/&gt;
					&lt;/s:stroke&gt;
					&lt;s:fill&gt;
						&lt;s:RadialGradient&gt;
							&lt;s:entries&gt;
								&lt;s:GradientEntry color=&quot;0x1c64a7&quot;/&gt;
								&lt;s:GradientEntry color=&quot;0x114371&quot;/&gt;
							&lt;/s:entries&gt;
						&lt;/s:RadialGradient&gt;
					&lt;/s:fill&gt;
					&lt;s:filters&gt;
						&lt;mx:DropShadowFilter/&gt;
					&lt;/s:filters&gt;
				&lt;/s:Ellipse&gt;
			&lt;/s:Graphic&gt;
		&lt;/fx:Definition&gt;
	&lt;/fx:Library&gt;
	&lt;mx:Panel title=&quot;Library Example&quot; height=&quot;314&quot; width=&quot;528&quot; layout=&quot;absolute&quot; paddingTop=&quot;10&quot; paddingBottom=&quot;10&quot; paddingLeft=&quot;10&quot; paddingRight=&quot;10&quot; x=&quot;93&quot; y=&quot;31&quot;&gt;
		&lt;fx:EllipseFathi x=&quot;0&quot; y=&quot;0&quot;/&gt;
		&lt;fx:EllipseFathi x=&quot;255&quot; y=&quot;105&quot;/&gt;
		&lt;fx:EllipseFathi x=&quot;0&quot; y=&quot;105&quot;/&gt;
		&lt;fx:EllipseFathi x=&quot;255&quot; y=&quot;0&quot;/&gt;
	&lt;/mx:Panel&gt;
&lt;/s:Application&gt;</pre>
<div id="attachment_272" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.fathihadi.net/files/2009/06/library-example.jpg"><img class="size-medium wp-image-272" title="FXG Library Example" src="http://blog.fathihadi.net/files/2009/06/library-example-300x178.jpg" alt="FXG Library Example" width="300" height="178" /></a><p class="wp-caption-text">FXG Library Example</p></div>
<p>Mungkin dengan anda melihat contoh kode yang saya berikan, anda bisa mengerti maksud saya. (^_^)</p>
<p>Well, mungkin sekian dari saya untuk penjelasan singkat mengenai FXG.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fathihadi.net/flash-xml-graphics-fxg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

