<?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>SIAMFLEX</title>
	<atom:link href="http://www.siamflex.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.siamflex.com</link>
	<description>My flex project</description>
	<lastBuildDate>Sat, 06 Aug 2011 11:04:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>การ split และ replace</title>
		<link>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3-split-%e0%b9%81%e0%b8%a5%e0%b8%b0-replace.html</link>
		<comments>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3-split-%e0%b9%81%e0%b8%a5%e0%b8%b0-replace.html#comments</comments>
		<pubDate>Sat, 06 Aug 2011 11:04:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex Builder]]></category>
		<category><![CDATA[replace]]></category>
		<category><![CDATA[split]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://www.siamflex.com/?p=38</guid>
		<description><![CDATA[import mx.utils.StringUtil; &#160; var news:String = l_deposit_allbalance.text; var a:Array = news.split(&#8220;.&#8221;); var myPattern:RegExp = /,/; news = a[0].replace(myPattern, &#8220;&#8221;); &#160; &#160; &#160;]]></description>
			<content:encoded><![CDATA[<p>import mx.utils.StringUtil;</p>
<p>&nbsp;</p>
<blockquote><p>var news:String = l_deposit_allbalance.text;<br />
var a:Array = news.<span style="color: #ff0000;">split</span>(&#8220;.&#8221;);<br />
var myPattern:RegExp = /,/;<br />
news = a[0].<span style="color: #ff0000;">replace</span>(myPattern, &#8220;&#8221;);</p></blockquote>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3-split-%e0%b9%81%e0%b8%a5%e0%b8%b0-replace.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การ set ค่าเริ่มต้นเป็นวันที่ปัจจุบันให้กับ dateField</title>
		<link>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3-set-%e0%b8%84%e0%b9%88%e0%b8%b2%e0%b9%80%e0%b8%a3%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%99%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%a7%e0%b8%b1%e0%b8%99.html</link>
		<comments>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3-set-%e0%b8%84%e0%b9%88%e0%b8%b2%e0%b9%80%e0%b8%a3%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%99%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%a7%e0%b8%b1%e0%b8%99.html#comments</comments>
		<pubDate>Mon, 01 Aug 2011 06:11:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex Builder]]></category>
		<category><![CDATA[dateField]]></category>

		<guid isPermaLink="false">http://www.siamflex.com/?p=35</guid>
		<description><![CDATA[d_date.selectedDate = new Date(new Date().getTime()); &#160; *d_date = dateField แค่นี้ก็ได้ dateField ที่มีค่าวันนี้ปัจจุบันแล้ว]]></description>
			<content:encoded><![CDATA[<blockquote><p><strong>d_date.selectedDate = new Date(new Date().getTime());</strong></p></blockquote>
<p>&nbsp;</p>
<p>*d_date = dateField</p>
<p>แค่นี้ก็ได้ dateField ที่มีค่าวันนี้ปัจจุบันแล้ว</p>
]]></content:encoded>
			<wfw:commentRss>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3-set-%e0%b8%84%e0%b9%88%e0%b8%b2%e0%b9%80%e0%b8%a3%e0%b8%b4%e0%b9%88%e0%b8%a1%e0%b8%95%e0%b9%89%e0%b8%99%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%a7%e0%b8%b1%e0%b8%99.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การใส่ปุ่มลงไปใน Datagrid</title>
		<link>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b8%9b%e0%b8%b8%e0%b9%88%e0%b8%a1%e0%b8%a5%e0%b8%87%e0%b9%84%e0%b8%9b%e0%b9%83%e0%b8%99-datagrid.html</link>
		<comments>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b8%9b%e0%b8%b8%e0%b9%88%e0%b8%a1%e0%b8%a5%e0%b8%87%e0%b9%84%e0%b8%9b%e0%b9%83%e0%b8%99-datagrid.html#comments</comments>
		<pubDate>Wed, 29 Jun 2011 04:13:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex Builder]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[datagrid]]></category>

		<guid isPermaLink="false">http://www.siamflex.com/?p=31</guid>
		<description><![CDATA[&#60;mx:DataGrid id=&#8221;data_member&#8221; width=&#8221;100%&#8221; height=&#8221;100%&#8221; updateComplete=&#8221;handleUpdateComplete(event)&#8221; editable=&#8221;false&#8221; dataProvider=&#8221;{member_list}&#8221; fontFamily=&#8221;Arial&#8221; fontSize=&#8221;12&#8243;&#62; &#60;mx:columns&#62; &#60;mx:DataGridColumn headerText=&#8221;#&#8221; dataField=&#8221;id&#8221; width=&#8221;35&#8243;/&#62; &#60;mx:DataGridColumn headerText=&#8221;รหัส&#8221; dataField=&#8221;no&#8221; width=&#8221;75&#8243;/&#62; &#60;mx:DataGridColumn headerText=&#8221;A&#8221; dataField=&#8221;agent&#8221; width=&#8221;35&#8243; /&#62; &#60;mx:DataGridColumn headerText=&#8221;ชื่อผู้ใช้&#8221; dataField=&#8221;username&#8221; width=&#8221;100&#8243;/&#62; &#60;mx:DataGridColumn headerText=&#8221;ชื่อ&#8221; dataField=&#8221;fullname&#8221; width=&#8221;150&#8243; /&#62; &#60;mx:DataGridColumn headerText=&#8221;e-mail&#8221; dataField=&#8221;email&#8221;/&#62; &#60;mx:DataGridColumn headerText=&#8221;โทร&#8221; dataField=&#8221;phone&#8221;/&#62; &#60;mx:DataGridColumn headerText=&#8221;ธนาคาร&#8221; dataField=&#8221;bank&#8221;/&#62; &#60;mx:DataGridColumn headerText=&#8221;เลขที่บัญชี&#8221; dataField=&#8221;number&#8221;/&#62; &#60;mx:DataGridColumn headerText=&#8221;" width=&#8221;200&#8243;&#62; &#60;mx:itemRenderer&#62; &#60;mx:Component&#62; &#60;mx:HBox horizontalAlign=&#8221;center&#8221;&#62; &#60;/mx:HBox&#62; &#60;/mx:Component&#62; &#60;/mx:itemRenderer&#62; &#60;/mx:DataGridColumn&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>&lt;mx:DataGrid id=&#8221;data_member&#8221; width=&#8221;100%&#8221; height=&#8221;100%&#8221; updateComplete=&#8221;handleUpdateComplete(event)&#8221; editable=&#8221;false&#8221; dataProvider=&#8221;{member_list}&#8221; fontFamily=&#8221;Arial&#8221; fontSize=&#8221;12&#8243;&gt;<br />
&lt;mx:columns&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;#&#8221; dataField=&#8221;id&#8221; width=&#8221;35&#8243;/&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;รหัส&#8221; dataField=&#8221;no&#8221; width=&#8221;75&#8243;/&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;A&#8221; dataField=&#8221;agent&#8221; width=&#8221;35&#8243; /&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;ชื่อผู้ใช้&#8221; dataField=&#8221;username&#8221; width=&#8221;100&#8243;/&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;ชื่อ&#8221; dataField=&#8221;fullname&#8221; width=&#8221;150&#8243; /&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;e-mail&#8221; dataField=&#8221;email&#8221;/&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;โทร&#8221; dataField=&#8221;phone&#8221;/&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;ธนาคาร&#8221; dataField=&#8221;bank&#8221;/&gt;<br />
&lt;mx:DataGridColumn headerText=&#8221;เลขที่บัญชี&#8221; dataField=&#8221;number&#8221;/&gt;<br />
<span style="color: #ff0000;">&lt;mx:DataGridColumn headerText=&#8221;" width=&#8221;200&#8243;&gt;</span><br />
<span style="color: #ff0000;"> &lt;mx:itemRenderer&gt;</span><br />
<span style="color: #ff0000;"> &lt;mx:Component&gt;</span><br />
<span style="color: #ff0000;"> &lt;mx:HBox horizontalAlign=&#8221;center&#8221;&gt;</span></p>
<p><span style="color: #ff0000;"> &lt;/mx:HBox&gt;</span><br />
<span style="color: #ff0000;"> &lt;/mx:Component&gt;</span><br />
<span style="color: #ff0000;"> &lt;/mx:itemRenderer&gt;</span><br />
<span style="color: #ff0000;"> &lt;/mx:DataGridColumn&gt;</span><br />
&lt;/mx:columns&gt;<br />
&lt;/mx:DataGrid&gt;</p>
<p><a href="http://www.siamflex.com/wp-content/uploads/2011/06/datagrid-with-button.jpg"><img class="alignnone size-full wp-image-32" title="datagrid-with-button" src="http://www.siamflex.com/wp-content/uploads/2011/06/datagrid-with-button.jpg" alt="" width="862" height="451" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b8%9b%e0%b8%b8%e0%b9%88%e0%b8%a1%e0%b8%a5%e0%b8%87%e0%b9%84%e0%b8%9b%e0%b9%83%e0%b8%99-datagrid.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การเรียกใช้ function ใน swf ที่เรียกมาโดย swfLoader</title>
		<link>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%81%e0%b9%83%e0%b8%8a%e0%b9%89-function-%e0%b9%83%e0%b8%99-swf-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2.html</link>
		<comments>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%81%e0%b9%83%e0%b8%8a%e0%b9%89-function-%e0%b9%83%e0%b8%99-swf-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2.html#comments</comments>
		<pubDate>Thu, 23 Jun 2011 12:22:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex Builder]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[swfLoader]]></category>

		<guid isPermaLink="false">http://www.siamflex.com/?p=29</guid>
		<description><![CDATA[การเรียกใช้ function ใน swf ที่เรียกมาโดย swfLoader ต้อง import mx.managers.SystemManager; ประกาศตัวแปร [Bindable] public var loadedSM:SystemManager; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; main.mxml import mx.managers.SystemManager; public var loadedSM:SystemManager; private function init_myswf():void { loadedSM = SystemManager(myswf.content); } public function update_child():void { loadedSM.application["get_update"](); // get_update คือชื่อฟังก์ชั่น get_update() ที่อยู่ใน game.swf } &#160; &#60;mx:SWFLoader id=&#8221;myswf&#8221; source=&#8221;game.swf&#8221; creationComplete=&#8221;init_myswf()&#8221; width=&#8221;100%&#8221; height=&#8221;100%&#8221;/&#62; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; เพียงเท่านี้ก็เรียกใช้ฟังก์ชั่นที่อยู่ใน swf นั้นได้แล้ว]]></description>
			<content:encoded><![CDATA[<p>การเรียกใช้ function ใน swf ที่เรียกมาโดย swfLoader</p>
<p>ต้อง <span style="color: #ff0000;">import mx.managers.SystemManager;</span></p>
<p>ประกาศตัวแปร <span style="color: #ff0000;">[Bindable] public var loadedSM:SystemManager;</span></p>
<p><span style="color: #ff0000;"><span style="color: #333333;">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; main.mxml</span><br />
</span></p>
<blockquote><p><span style="color: #008000;">import mx.managers.SystemManager;</span><br />
<span style="color: #008000;">public var loadedSM:SystemManager;</span></p>
<p><span style="color: #008000;">private function init_myswf():void {</span><br />
<span style="color: #008000;"> loadedSM = SystemManager(<span style="color: #ff00ff;">myswf</span>.content);</span><br />
<span style="color: #008000;"> }</span><br />
<span style="color: #008000;"> public function update_child():void {</span><br />
<span style="color: #008000;"> loadedSM.application["<span style="color: #ff0000;">get_update</span>"](); </span>// get_update คือชื่อฟังก์ชั่น get_update() ที่อยู่ใน game.swf<br />
<span style="color: #008000;"> }</span></p>
<p>&nbsp;</p>
<p>&lt;mx:SWFLoader id=&#8221;<span style="color: #ff00ff;">myswf</span>&#8221; source=&#8221;<span style="color: #ff0000;">game.swf</span>&#8221; creationComplete=&#8221;init_myswf()&#8221; width=&#8221;100%&#8221; height=&#8221;100%&#8221;/&gt;</p></blockquote>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>เพียงเท่านี้ก็เรียกใช้ฟังก์ชั่นที่อยู่ใน swf นั้นได้แล้ว</p>
]]></content:encoded>
			<wfw:commentRss>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%81%e0%b9%83%e0%b8%8a%e0%b9%89-function-%e0%b9%83%e0%b8%99-swf-%e0%b8%97%e0%b8%b5%e0%b9%88%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การดึง xml มาแสดงใน menubar แล้วใส่ไว้ใน ApplicationControlBar</title>
		<link>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%94%e0%b8%b6%e0%b8%87-xml-%e0%b8%a1%e0%b8%b2%e0%b9%81%e0%b8%aa%e0%b8%94%e0%b8%87%e0%b9%83%e0%b8%99-menubar-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b9%83%e0%b8%aa.html</link>
		<comments>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%94%e0%b8%b6%e0%b8%87-xml-%e0%b8%a1%e0%b8%b2%e0%b9%81%e0%b8%aa%e0%b8%94%e0%b8%87%e0%b9%83%e0%b8%99-menubar-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b9%83%e0%b8%aa.html#comments</comments>
		<pubDate>Thu, 23 Jun 2011 08:51:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex Builder]]></category>
		<category><![CDATA[applicationControlBar]]></category>
		<category><![CDATA[menubar]]></category>

		<guid isPermaLink="false">http://www.siamflex.com/?p=26</guid>
		<description><![CDATA[mymxml.mxml &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62; &#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; creationComplete=&#8221;cargaMenu.send();&#8221;&#62; &#60;mx:Script&#62; &#60;![CDATA[ import mx.rpc.events.ResultEvent; import mx.collections.XMLListCollection; import mx.collections.ArrayCollection; [Bindable] public var datos:XMLList private function httpResult(event:ResultEvent):void{ var miXML:XML; miXML = event.result as XML; datos = new XMLList(miXML.menuitem); } ]]&#62; &#60;/mx:Script&#62; &#60;mx:HTTPService id=&#8221;cargaMenu&#8221; showBusyCursor=&#8221;true&#8221; method=&#8221;POST&#8221; url=&#8221;menu_process.xml&#8221; result=&#8221;httpResult(event)&#8221; resultFormat=&#8221;e4x&#8221;/&#62; &#60;mx:ApplicationControlBar dock=&#8221;true&#8221; verticalAlign=&#8221;bottom&#8221; paddingRight=&#8221;10&#8243; fillAlphas=&#8221;[1.0, 1.0]&#8221; fillColors=&#8221;[#FFFFFF, #F2F2F2]&#8220;&#62; &#60;mx:Label text=&#8221;เมนูหลัก&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: underline;"><strong>mymxml.mxml</strong></span></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; creationComplete=&#8221;cargaMenu.send();&#8221;&gt;<br />
&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
import mx.rpc.events.ResultEvent;<br />
import mx.collections.XMLListCollection;<br />
import mx.collections.ArrayCollection;<br />
[Bindable]<br />
public var datos:XMLList</p>
<p>private function httpResult(event:ResultEvent):void{<br />
var miXML:XML;<br />
miXML = event.result as XML;<br />
datos = new XMLList(miXML.menuitem);<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;<br />
&lt;mx:HTTPService id=&#8221;cargaMenu&#8221; showBusyCursor=&#8221;true&#8221; method=&#8221;POST&#8221; url=&#8221;<span style="color: #ff0000;">menu_process.xml</span>&#8221; result=&#8221;httpResult(event)&#8221; resultFormat=&#8221;e4x&#8221;/&gt;<br />
&lt;mx:ApplicationControlBar dock=&#8221;true&#8221; verticalAlign=&#8221;bottom&#8221; paddingRight=&#8221;10&#8243; fillAlphas=&#8221;[1.0, 1.0]&#8221; fillColors=&#8221;[#FFFFFF, #F2F2F2]&#8220;&gt;<br />
&lt;mx:Label text=&#8221;เมนูหลัก&#8221; fontSize=&#8221;12&#8243;/&gt;<br />
<span style="color: #ff0000;">&lt;mx:MenuBar x=&#8221;10&#8243; y=&#8221;10&#8243; id=&#8221;menuA&#8221; dataProvider=&#8221;{datos}&#8221; labelField=&#8221;@label&#8221; cornerRadius=&#8221;5&#8243; fontSize=&#8221;12&#8243; buttonMode=&#8221;true&#8221;/&gt;</span><br />
&lt;mx:HBox width=&#8221;100%&#8221; horizontalAlign=&#8221;right&#8221;&gt;<br />
&lt;mx:Image source=&#8221;../images/logo-150.gif&#8221;/&gt;<br />
&lt;/mx:HBox&gt;<br />
&lt;/mx:ApplicationControlBar&gt;<br />
&lt;/mx:Application&gt;</p>
<p>&nbsp;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><span style="text-decoration: underline;"><strong>menu_process.xml</strong></span></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>&lt;menuitem&gt;<br />
&lt;menuitem label=&#8221;หน้าหลัก&#8221;/&gt;<br />
&lt;menuitem label=&#8221;สมาชิก&#8221; enabled=&#8221;False&#8221;/&gt;<br />
&lt;menuitem label=&#8221;เจ้าหน้าที่&#8221;/&gt;<br />
&lt;menuitem label=&#8221;กลุ่มเจ้าหน้าที่&#8221;/&gt;<br />
&lt;menuitem label=&#8221;เว็บไซต์&#8221;/&gt;<br />
&lt;menuitem label=&#8221;เกมส์&#8221;/&gt;<br />
&lt;menuitem label=&#8221;ธนาคาร&#8221; /&gt;<br />
&lt;menuitem label=&#8221;การเงิน&#8221;&gt;<br />
&lt;menuitem label=&#8221;เติมเงิน&#8221;/&gt;<br />
&lt;menuitem label=&#8221;ถอนเงิน&#8221;/&gt;<br />
&lt;/menuitem&gt;<br />
&lt;/menuitem&gt;</p>
<p>&nbsp;</p>
<p>ผลลัพท์</p>
<p><a href="http://www.siamflex.com/wp-content/uploads/2011/06/flex-menu-bar.gif"><img class="alignnone size-full wp-image-27" title="flex-menu-bar" src="http://www.siamflex.com/wp-content/uploads/2011/06/flex-menu-bar.gif" alt="" width="672" height="452" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%94%e0%b8%b6%e0%b8%87-xml-%e0%b8%a1%e0%b8%b2%e0%b9%81%e0%b8%aa%e0%b8%94%e0%b8%87%e0%b9%83%e0%b8%99-menubar-%e0%b9%81%e0%b8%a5%e0%b9%89%e0%b8%a7%e0%b9%83%e0%b8%aa.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>date format ใน Datefeild</title>
		<link>http://www.siamflex.com/adobe-flex-builder/date-format-datefeild.html</link>
		<comments>http://www.siamflex.com/adobe-flex-builder/date-format-datefeild.html#comments</comments>
		<pubDate>Wed, 22 Jun 2011 07:28:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex Builder]]></category>
		<category><![CDATA[Datefeild]]></category>

		<guid isPermaLink="false">http://www.siamflex.com/?p=24</guid>
		<description><![CDATA[เมื่อเราใช้  &#60;mx:DateField id=&#8221;mydate&#8221;  /&#62; นั้น ค่าปกติของมันจะเป็น DD/MM/YYYY เมื่อเรานำไปใช้กับ mysql มันจะใส่ข้อมูลวันที่ลงไปใน mysql ตรง ๆ ไม่ได้ เพราะ Format ของ mysql คือ YYYY-MM-DD ฉะนั้นเราจึงต้องเปลี่ยน format ของ datefeild ด้วย &#60;mx:DateField id=&#8221;mydate&#8221;  formatString=&#8221;YYYY-MM-DD&#8221;/&#62; เพียงเท่านี้เราก็จะได้ข้อมูลแบบ 2011-05-21 เพื่อไปใช้กับ MySql ได้โดยง่ายแล้ว &#160;]]></description>
			<content:encoded><![CDATA[<p>เมื่อเราใช้  &lt;mx:DateField id=&#8221;mydate&#8221;  /&gt; นั้น ค่าปกติของมันจะเป็น DD/MM/YYYY</p>
<p>เมื่อเรานำไปใช้กับ mysql มันจะใส่ข้อมูลวันที่ลงไปใน mysql ตรง ๆ ไม่ได้ เพราะ Format ของ mysql คือ YYYY-MM-DD</p>
<p>ฉะนั้นเราจึงต้องเปลี่ยน format ของ datefeild ด้วย</p>
<p>&lt;mx:DateField id=&#8221;mydate&#8221;  <span style="color: #ff0000;">formatString=&#8221;YYYY-MM-DD&#8221;</span>/&gt;</p>
<p>เพียงเท่านี้เราก็จะได้ข้อมูลแบบ 2011-05-21 เพื่อไปใช้กับ MySql ได้โดยง่ายแล้ว</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.siamflex.com/adobe-flex-builder/date-format-datefeild.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การเรียกค่าจาก NumericStepper</title>
		<link>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%81%e0%b8%84%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b2%e0%b8%81-numericstepper.html</link>
		<comments>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%81%e0%b8%84%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b2%e0%b8%81-numericstepper.html#comments</comments>
		<pubDate>Wed, 22 Jun 2011 06:19:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex Builder]]></category>
		<category><![CDATA[NumericStepper]]></category>

		<guid isPermaLink="false">http://www.siamflex.com/?p=21</guid>
		<description><![CDATA[การเรียกค่าจาก NumericStepper เราจะใช้ .text เหมือน TextInput ไม่ได้ เราต้องใช้เป็น NumericStepper.value แทน &#160;]]></description>
			<content:encoded><![CDATA[<p>การเรียกค่าจาก NumericStepper เราจะใช้ .text เหมือน TextInput ไม่ได้</p>
<p>เราต้องใช้เป็น NumericStepper<span style="color: #ff0000;">.value</span> แทน</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%80%e0%b8%a3%e0%b8%b5%e0%b8%a2%e0%b8%81%e0%b8%84%e0%b9%88%e0%b8%b2%e0%b8%88%e0%b8%b2%e0%b8%81-numericstepper.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Textinput ใส่แต่ตัวเลขเท่านั้น</title>
		<link>http://www.siamflex.com/adobe-flex-builder/textinput-%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b9%80%e0%b8%a5%e0%b8%82%e0%b9%80%e0%b8%97%e0%b9%88%e0%b8%b2%e0%b8%99%e0%b8%b1%e0%b9%89%e0%b8%99.html</link>
		<comments>http://www.siamflex.com/adobe-flex-builder/textinput-%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b9%80%e0%b8%a5%e0%b8%82%e0%b9%80%e0%b8%97%e0%b9%88%e0%b8%b2%e0%b8%99%e0%b8%b1%e0%b9%89%e0%b8%99.html#comments</comments>
		<pubDate>Wed, 22 Jun 2011 06:02:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex Builder]]></category>
		<category><![CDATA[restrict]]></category>
		<category><![CDATA[textinput]]></category>

		<guid isPermaLink="false">http://www.siamflex.com/?p=19</guid>
		<description><![CDATA[การทำให้ Textinput ใส่ได้แต่ตัวเลขเท่านั้น ให้เติม &#60;mx:TextInput id="mytxt" maxChars="10" restrict="0-9"/&#62; แค่นี้เราก็จะได้ TextInput ที่กรอกได้เฉพาะเลข 0-9 แล้ว]]></description>
			<content:encoded><![CDATA[<p>การทำให้ Textinput ใส่ได้แต่ตัวเลขเท่านั้น ให้เติม</p>
<pre>&lt;mx:TextInput id="mytxt" maxChars="10"<span style="color: #ff0000;"> restrict="0-9"</span>/&gt;</pre>
<p>แค่นี้เราก็จะได้ TextInput ที่กรอกได้เฉพาะเลข 0-9 แล้ว</p>
]]></content:encoded>
			<wfw:commentRss>http://www.siamflex.com/adobe-flex-builder/textinput-%e0%b9%83%e0%b8%aa%e0%b9%88%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%95%e0%b8%b1%e0%b8%a7%e0%b9%80%e0%b8%a5%e0%b8%82%e0%b9%80%e0%b8%97%e0%b9%88%e0%b8%b2%e0%b8%99%e0%b8%b1%e0%b9%89%e0%b8%99.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>เช็คก่อนว่าเป็น Array หรือ ArrayCollection</title>
		<link>http://www.siamflex.com/adobe-flex-builder/%e0%b9%80%e0%b8%8a%e0%b9%87%e0%b8%84%e0%b8%81%e0%b9%88%e0%b8%ad%e0%b8%99%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99-array-%e0%b8%ab%e0%b8%a3%e0%b8%b7%e0%b8%ad-arraycollection.html</link>
		<comments>http://www.siamflex.com/adobe-flex-builder/%e0%b9%80%e0%b8%8a%e0%b9%87%e0%b8%84%e0%b8%81%e0%b9%88%e0%b8%ad%e0%b8%99%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99-array-%e0%b8%ab%e0%b8%a3%e0%b8%b7%e0%b8%ad-arraycollection.html#comments</comments>
		<pubDate>Mon, 20 Jun 2011 12:02:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex Builder]]></category>

		<guid isPermaLink="false">http://www.siamflex.com/?p=15</guid>
		<description><![CDATA[ในการเรียกข้อมูลนั้น ถ้าเราดึงข้อมูลมาแล้วมีเพียงแถวเดียว มันก็จะเป็น Array เราก็จะเรียกโดย myarray.id แต่ถ้ามีมากกว่านั้น จะกลายเป็น ArrayCollection เราก็ต้องเรียกโดย myarray[i].id ทำให้เกิด Error ขึ้นได้ วิธีแก้คือเช็คก่อนแล้วเปลี่ยนมันให้เป็น ArrayCollection ให้หมด if(event.result.allwebsite.website is ArrayCollection){ website_list_selected = event.result.allwebsite.website; }else{ website_list_selected = new ArrayCollection([event.result.allwebsite.website]); } &#160;]]></description>
			<content:encoded><![CDATA[<p>ในการเรียกข้อมูลนั้น ถ้าเราดึงข้อมูลมาแล้วมีเพียงแถวเดียว มันก็จะเป็น Array เราก็จะเรียกโดย <span style="color: #0000ff;">myarray.id</span></p>
<p>แต่ถ้ามีมากกว่านั้น จะกลายเป็น ArrayCollection เราก็ต้องเรียกโดย <span style="color: #0000ff;">myarray[i].id</span></p>
<p>ทำให้เกิด Error ขึ้นได้</p>
<p>วิธีแก้คือเช็คก่อนแล้วเปลี่ยนมันให้เป็น ArrayCollection ให้หมด</p>
<blockquote><p><em><span style="color: #0000ff;">if(event.result.allwebsite.website is ArrayCollection){</span></em><br />
<em><span style="color: #0000ff;"> website_list_selected = event.result.allwebsite.website;</span></em><br />
<em><span style="color: #0000ff;"> }else{</span></em><br />
<em><span style="color: #0000ff;"> website_list_selected = new ArrayCollection([event.result.allwebsite.website]);</span></em><br />
<em><span style="color: #0000ff;"> }</span></em></p></blockquote>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.siamflex.com/adobe-flex-builder/%e0%b9%80%e0%b8%8a%e0%b9%87%e0%b8%84%e0%b8%81%e0%b9%88%e0%b8%ad%e0%b8%99%e0%b8%a7%e0%b9%88%e0%b8%b2%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99-array-%e0%b8%ab%e0%b8%a3%e0%b8%b7%e0%b8%ad-arraycollection.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การทำปุ่มให้ Mouse Over เป็นรูปมือ</title>
		<link>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3%e0%b8%9b%e0%b8%b8%e0%b9%88%e0%b8%a1%e0%b9%83%e0%b8%ab%e0%b9%89-mouse-over-%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a1.html</link>
		<comments>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3%e0%b8%9b%e0%b8%b8%e0%b9%88%e0%b8%a1%e0%b9%83%e0%b8%ab%e0%b9%89-mouse-over-%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a1.html#comments</comments>
		<pubDate>Mon, 20 Jun 2011 06:49:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Adobe Flex Builder]]></category>

		<guid isPermaLink="false">http://www.siamflex.com/?p=10</guid>
		<description><![CDATA[การทำปุ่ม (button) ให้ Mouse Over เป็นรูปมือเหมือน Link ให้ใช้ buttonMode=&#8221;true&#8221; &#160; &#60;mx:Button label=&#8221;Delete&#8221; click=&#8221;delete_item(event)&#8221; buttonMode=&#8221;true&#8221; /&#62; แต่กรณีถ้าเป็น label เราต้องเพิ่ม useHandCursor=&#8221;true&#8221;  mouseChildren=&#8221;false&#8221; เข้าไปด้วย &#60;mx:Button label=&#8221;Delete&#8221; click=&#8221;delete_item(event)&#8221; buttonMode=&#8221;true&#8221; useHandCursor=&#8221;true&#8221;  mouseChildren=&#8221;false&#8221; /&#62; &#160;]]></description>
			<content:encoded><![CDATA[<p>การทำปุ่ม (<strong>button</strong>) ให้ Mouse Over เป็นรูปมือเหมือน Link ให้ใช้ <em>buttonMode=&#8221;true&#8221;</em></p>
<p>&nbsp;</p>
<blockquote><p>&lt;mx:Button label=&#8221;Delete&#8221; click=&#8221;delete_item(event)&#8221; <span style="color: #ff0000;">buttonMode=&#8221;true&#8221;</span> /&gt;</p></blockquote>
<p>แต่กรณีถ้าเป็น <strong>label </strong>เราต้องเพิ่ม <em>useHandCursor=&#8221;true&#8221;  mouseChildren=&#8221;false&#8221; </em>เข้าไปด้วย</p>
<blockquote><p>&lt;mx:Button label=&#8221;Delete&#8221; click=&#8221;delete_item(event)&#8221; <span style="color: #ff0000;">buttonMode=&#8221;true&#8221; useHandCursor=&#8221;true&#8221;  mouseChildren=&#8221;false&#8221;</span> /&gt;</p>
<p>&nbsp;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.siamflex.com/adobe-flex-builder/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%97%e0%b8%b3%e0%b8%9b%e0%b8%b8%e0%b9%88%e0%b8%a1%e0%b9%83%e0%b8%ab%e0%b9%89-mouse-over-%e0%b9%80%e0%b8%9b%e0%b9%87%e0%b8%99%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%a1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

