<?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>Flash/Flex Developer &#187; Flash Builder</title>
	<atom:link href="http://blog.ismailsimsek.com/category/flash-builder/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.ismailsimsek.com</link>
	<description></description>
	<lastBuildDate>Thu, 22 Dec 2011 14:58:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Flash Player Hata Penceresinin Açılmaması</title>
		<link>http://blog.ismailsimsek.com/adobe-2/flex/flash-player-hata-penceresinin-acilmamasi.html</link>
		<comments>http://blog.ismailsimsek.com/adobe-2/flex/flash-player-hata-penceresinin-acilmamasi.html#comments</comments>
		<pubDate>Mon, 15 Aug 2011 11:37:41 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[flash player debugger]]></category>
		<category><![CDATA[mm.cfg]]></category>
		<category><![CDATA[preload.swf]]></category>
		<category><![CDATA[runtime error dialog]]></category>
		<category><![CDATA[SuppressDebuggerExceptionDialogs]]></category>

		<guid isPermaLink="false">http://blog.ismailsimsek.com/?p=552</guid>
		<description><![CDATA[Merhabalar. Uzun bir zamandır bu saçma hata ile uğraşıyordum. Başlangıçta flash player’da bir sorun olduğunu düşünüp kaldırıp tekrar kurmuştum. Flash Builder içinden yapmadığın ayar kalmadı ama nafile. Çalıştırdığım dosyada hata var ama hata diyalog penceresi açılmıyordu. Uygulamayı debug edersem görebiliyordum hataları sadece. Araştırırken sonunda buldum buna neden olan naneyi. “mm.cfg” ismindeki dosya flash player’daki pek çok özelliği değiştirebilmenizi sağlayan adeta gizli kalmış bir hazine. Yeri ise şu şekilde • Windows; C:\Documents and Settings\username\mm.cfg &#124;&#124; c:\users\yourname [...]]]></description>
			<content:encoded><![CDATA[<p>Merhabalar.</p>
<p>Uzun bir zamandır bu saçma hata ile uğraşıyordum. Başlangıçta flash player’da bir sorun olduğunu düşünüp kaldırıp tekrar kurmuştum. Flash Builder içinden yapmadığın ayar kalmadı ama nafile. Çalıştırdığım dosyada hata var ama hata diyalog penceresi açılmıyordu. Uygulamayı debug edersem görebiliyordum hataları sadece.</p>
<p>Araştırırken sonunda buldum buna neden olan naneyi.<br />
“mm.cfg” ismindeki dosya flash player’daki pek çok özelliği değiştirebilmenizi sağlayan adeta gizli kalmış bir hazine.</p>
<p>Yeri ise şu şekilde<br />
• Windows; C:\Documents and Settings\username\mm.cfg || c:\users\yourname<br />
• OSX; /Library/Application Support/Macromedia/mm.cfg<br />
• Linux; home/username/mm.cfg</p>
<p>Bizim problemimize neden olan satır ise PreloadSwf ile başlayan satır. Zamanında ben firefox’a fireflash eklentisini kurmuştum. Eğer flash uygulamada bir hata çıkarsa ya da trace ile outputa bir şey yazdırırsanız Firebug panelinde görebiliyordunuz. Yükledim sonra kaldırdım. Pek kullanışlı gelmemişti. PreloadSwf nin karşısında hala fireflash tan kalma parametreleri görünce her şeyi anladım. Her seferinde debug etmek için fireflash arıyor ve dolayısıyla bulamıyor hata paneli de açılmıyor böylelikle. Bu satırı tamamen sildim ve yeni bir satıra şunu ekledim:<br />
SuppressDebuggerExceptionDialogs=0</p>
<p>Şimdi hata olduğunda gayet güzel şekilde hata penceresi açılıyor ve ben hatanın nerede olduğunu anında görebiliyorum. mm.cfg dosyası ile ilgili detaylı bilgiye kaynaklarda vermiş olduğum ilk adresten ulaşabilirsiniz.</p>
<p>Kaynaklar:<br />
<a title="mmcfg treasure" href="http://jpauclair.net/2010/02/10/mmcfg-treasure/" target="_blank">http://jpauclair.net/2010/02/10/mmcfg-treasure/</a><br />
<a title="superuser questions" href="http://superuser.com/questions/303807/flash-player-general-runtime-error-dialog-will-not-pop-up" target="_blank">http://superuser.com/questions/303807/flash-player-general-runtime-error-dialog-will-not-pop-up</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/adobe-2/flex/flash-player-hata-penceresinin-acilmamasi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Builder Burrito İle Daha Hızlı Kod Yazımı</title>
		<link>http://blog.ismailsimsek.com/adobe-2/flash-builder/flash-builder-burrito-ile-daha-hizli-kod-yazimi.html</link>
		<comments>http://blog.ismailsimsek.com/adobe-2/flash-builder/flash-builder-burrito-ile-daha-hizli-kod-yazimi.html#comments</comments>
		<pubDate>Tue, 23 Nov 2010 08:26:44 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Burrito]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[mxml]]></category>

		<guid isPermaLink="false">http://blog.ismailsimsek.com/?p=302</guid>
		<description><![CDATA[Tam ekran izlemekte fayda var. Coding productivity enhancements in Flash Builder Burrito from michael chaize on Vimeo.]]></description>
			<content:encoded><![CDATA[<p>Tam ekran izlemekte fayda var.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="250" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=16766230&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" /><embed type="application/x-shockwave-flash" width="400" height="250" src="http://vimeo.com/moogaloop.swf?clip_id=16766230&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=&amp;fullscreen=1&amp;autoplay=0&amp;loop=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/16766230">Coding productivity enhancements in Flash Builder Burrito</a> from <a href="http://vimeo.com/user880002">michael chaize</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/adobe-2/flash-builder/flash-builder-burrito-ile-daha-hizli-kod-yazimi.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Flash Builder için External Debugger – De MonsterDebugger</title>
		<link>http://blog.ismailsimsek.com/adobe-2/flex/flash-builder-icin-external-debugger-de-monsterdebugger.html</link>
		<comments>http://blog.ismailsimsek.com/adobe-2/flex/flash-builder-icin-external-debugger-de-monsterdebugger.html#comments</comments>
		<pubDate>Thu, 30 Sep 2010 07:48:34 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript 3.0]]></category>
		<category><![CDATA[de monsterdebugger]]></category>
		<category><![CDATA[debugger]]></category>
		<category><![CDATA[external debugger]]></category>
		<category><![CDATA[flash builer]]></category>

		<guid isPermaLink="false">http://blog.ismailsimsek.com/?p=230</guid>
		<description><![CDATA[Flex Builder ile ne yaptıysam debug panelini çalışır hale getirememiştim flex ile çalışmaya başladığım ilk günlerde. Bunun yerine ne yapabilirim diye araştırdım ve air ile hazırlanmış süper bir debugger ile karşılaştım. De MonsterDebugger.(DMD) Öncelikle biraz özeilliklerinden bahsedelim. Uygulamanızı çalıştırdınız ve bir yeri değiştirip denemeniz gerekiyor. Tekrar çalıştırma zahmeti ile uğraşmanıza gerek yok. DMD ile kolayca değiştirebilir ve etkiyi o anda görebilirsiniz. Bütün özellikleri bir ağaç menü ile görüntüleyebilirsiniz. Fonksiyonlarınızı panel üzerinden test edebilirsiniz. Çalışmanızın fps'sinin, [...]]]></description>
			<content:encoded><![CDATA[<p>Flex Builder ile ne yaptıysam debug panelini çalışır hale getirememiştim flex ile çalışmaya başladığım ilk günlerde. Bunun yerine ne yapabilirim diye araştırdım ve air ile hazırlanmış süper bir debugger ile karşılaştım. <a href="http://demonsterdebugger.com/" target="_blank">De MonsterDebugger</a>.(DMD)</p>
<p>Öncelikle biraz özeilliklerinden bahsedelim. Uygulamanızı çalıştırdınız ve bir yeri değiştirip denemeniz gerekiyor. Tekrar çalıştırma zahmeti ile uğraşmanıza gerek yok. DMD ile kolayca değiştirebilir ve etkiyi o anda görebilirsiniz. Bütün özellikleri bir ağaç menü ile görüntüleyebilirsiniz. Fonksiyonlarınızı panel üzerinden test edebilirsiniz. Çalışmanızın fps'sinin, memory kullanımının zamana bağlı olarak değişimini gösteren bir panelide mevcut.</p>
<p>Flex ile kullanabileceğiniz gibi flash ile de kullanabilirsiniz. Yapmanız gereken şeyler aşağıda.</p>
<p>Kurlumu çok basit. <a href="http://monsterdebugger.googlecode.com/files/MonsterDebuggerV2_51.air">Şuradan</a> kendisini indirip yüklüyoruz bilgisayarımıza. Daha sonra çalıştırın programı. File menüsü altında Export Client Class seçeneğine tıklayın. Size nereye çıkartayım diye soracak. Herhangi bir yere çıkartsın şimdilik. Bu classı projelerimize import edip bunun üzerinden debuging işlemlerimizi yapacağız. Yani projelerimize yakın bir yerde olması kendi menfaatimize :)</p>
<p>Buraya kadar herşey tamamsa gelelim projelerimiz içinde nasıl kullanacağımıza. Öncelikle sınıfı import etmeli ve bir değişken tanımlamalıyız. Gerisinide aşağıdaki kodlardan takip edelim.</p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-2">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=&amp;quot;<span style="color: #cc66cc;color:#800000;">1</span>.<span style="color: #cc66cc;color:#800000;">0</span>&amp;quot; encoding=&amp;quot;utf-<span style="color: #cc66cc;color:#800000;">8</span>&amp;quot;?&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;s:Application xmlns:fx=&amp;quot;http:<span style="color: #808080; font-style: italic;">//ns.adobe.com/mxml/2009&amp;quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">xmlns:s=&amp;quot;library:<span style="color: #808080; font-style: italic;">//ns.adobe.com/flex/spark&amp;quot;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">xmlns:mx=&amp;quot;library:<span style="color: #808080; font-style: italic;">//ns.adobe.com/flex/mx&amp;quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">creationComplete=&amp;quot;init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>&amp;quot;&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;fx:Script&amp;gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">import</span> nl.<span style="color: #006600;">demonsters</span>.<span style="color: #006600;">debugger</span>.<span style="color: #006600;">MonsterDebugger</span>;<span style="color: #808080; font-style: italic;">//Sınıfımızı import ettik.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> debugger:MonsterDebugger;<span style="color: #808080; font-style: italic;">//Sınıfın bir referansını oluşturduk.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; debugger = <span style="color: #000000; font-weight: bold;">new</span> MonsterDebugger<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">/*</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">Bu fonksiyona gerek yok aslında ama ben her seferinde MonsterDebugger.trace(this, e);</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">Yazmak yerine direkt olarak debug(her_hangi_bir_movie_clip); deyip işi bitiriyorum.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">Üşengeçlik zaman kazandırır</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> debug<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:*<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; MonsterDebugger.<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, <span style="color: #0066CC;">e</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;/fx:Script&amp;gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;/s:Application&amp;gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Tüm bunlarıda yaptıysanız eğer artık kullanmaya başlayabilirsiniz. İstediğiniz herhangi bir değişkeni, nesneyi debug edebilirsiniz. Şimdi DMD’ı açın uygulamanızı çalıştırın. Otomatik olarak DMD çalışıp belirttiğiniz satıra geldiğinizde de işlemi yapıcaktır.</p>
<p>Herkese kolay gelsin.﻿</p>
<p>İsmail ŞİMŞEK<br />
Flash/Flex Developer</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/adobe-2/flex/flash-builder-icin-external-debugger-de-monsterdebugger.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AmfPHP – Flash – Error #2044 hatası ve çözümü</title>
		<link>http://blog.ismailsimsek.com/php/amfphp/amfphp-flash-error-2044-hatasi-ve-cozumu.html</link>
		<comments>http://blog.ismailsimsek.com/php/amfphp/amfphp-flash-error-2044-hatasi-ve-cozumu.html#comments</comments>
		<pubDate>Wed, 29 Sep 2010 07:10:13 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Amfphp]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flash builder 4]]></category>
		<category><![CDATA[flash player]]></category>

		<guid isPermaLink="false">http://blog.ismailsimsek.com/?p=222</guid>
		<description><![CDATA[Merhabalar. Database bağlantılı tüm flash projelerimde amfphp kullanıyorum. Çokta memnunum. Çünkü hızlı çalışıyor, kolay yönetilebiliyor, alıştıkça bırakamıyorsunuz. Genelde hep flex projelerimde kullandım amfphp yi. Benim ısrarlarım sonucunda yeni başladığı projesinde amfphp kullanmaya başlayan arkadaşım her şeyi düzgünce yazmış olmasına rağmen flashın hata verdiğinden yakınıyordu. Kodlarını gönderdi bana: PLAIN TEXT Actionscript: var baglanti:NetConnection = new NetConnection&#40;&#41;; baglanti.connect&#40;"http://localhost/amfphp/gateway.php"&#41;; var responderFnk:Responder = new Responder&#40;responderFunction&#41;; baglanti.call&#40;"osman.osmanClass.denemeFunction", responderFnk, &#123;sayi:256&#125;&#41;; function responderFunction&#40;e:Object&#41;:void &#123; // &#125; Bu kısımda bir sorun yok göründüğü [...]]]></description>
			<content:encoded><![CDATA[<p>Merhabalar.</p>
<p>Database bağlantılı tüm flash projelerimde amfphp kullanıyorum. Çokta memnunum. Çünkü hızlı çalışıyor, kolay yönetilebiliyor, alıştıkça bırakamıyorsunuz. Genelde hep flex projelerimde kullandım amfphp yi. Benim ısrarlarım sonucunda yeni başladığı projesinde amfphp kullanmaya başlayan <a href="http://www.ardaogulcan.com/" target="_blank">arkadaşım</a> her şeyi düzgünce yazmış olmasına rağmen flashın hata verdiğinden yakınıyordu.</p>
<p>Kodlarını gönderdi bana:</p>
<div class="igBar"><span id="lactionscript-6"><a href="#" onclick="javascript:showPlainTxt('actionscript-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-6">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> baglanti:<span style="color: #0066CC;">NetConnection</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">NetConnection</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">baglanti.<span style="color: #0066CC;">connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"http://localhost/amfphp/gateway.php"</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> responderFnk:Responder = <span style="color: #000000; font-weight: bold;">new</span> Responder<span style="color: #66cc66;">&#40;</span>responderFunction<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">baglanti.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"osman.osmanClass.denemeFunction"</span>, responderFnk, <span style="color: #66cc66;">&#123;</span>sayi:<span style="color: #cc66cc;color:#800000;">256</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">function</span> responderFunction<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Bu kısımda bir sorun yok göründüğü kadarıyla. Bu defa php kodlarını istedim.</p>
<p>osman isimli klasör içinde osmanClass isimli php dosyasını gönderdi. İçeriğide aşağıdaki gibi.</p>
<div class="igBar"><span id="lphp-7"><a href="#" onclick="javascript:showPlainTxt('php-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-7">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;?php</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> osmanClass</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> osmanClass <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> denemeFunction <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$gelenVeri</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">return</span> <span style="color:#0000FF;">$gelenVeri</span>*<span style="color:#CC66CC;color:#800000;">5</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Burada da bir sorun yok görüldüğü üzre. (?&gt; özellikle konmamıştır. Konulmaması daha hayırlıdır. Evet onu koyupta denedik gene aynı sonucu aldık)</p>
<p>İşin garibi hazırladığımız php dosyası amfphp nin browser ekranında süper bi şekilde çalışmaktaydı. Kafayı yememek elde değil.</p>
<p>Biz ayrı ayrı üzerinde çalışmaya devam ettik. 1 saat sonra Arda buldum diye yazdı msnden. Nasıl dedim anlatmaya başladı.</p>
<p>Kullandığı serverdan kaynaklanabileceğini düşünüp xampp'ı kaldırmış. Wamp kurmuş. Sonuç değişmemiş. Sonra nerden aklına geldiyse wampserver ın errorlog dosyasına bakmış. Orada gateway.php dosyasının güncellenmesinin gerektiğini söyleyen bir satır bulmuş. Daha sonra açmış gateway.php dosyasını kontrol etmeye başlamış ve görmüş.</p>
<p>gateway.php dosyası 106. satırdaki şu kodu:</p>
<div class="igBar"><span id="lphp-8"><a href="#" onclick="javascript:showPlainTxt('php-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-8">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//You can set this constant appropriately to disable traces and debugging headers</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//You will also have the constant available in your classes, for changing</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//the mysql server info for example</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/define"><span style="color:#000066;">define</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"PRODUCTION_SERVER"</span>, <span style="color:#000000; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Buradaki true değerini false yapın sadece.</p>
<p>Böyle yapınca herşey güllük gülistanlık oldu. Bu amfphp nin bir güvenlik önlemiymiş. Direkt flash ide ile amfphpye erişilemiyor. Bir html içerisinden çalışması lazım illaki. Browser ekranının çalışmasıda bunu açıklıyor. Şimdi diyeceksiniz flexte nasıl çalışıyor peki? Ben projeyi run ettiğimde bana html sayfa açıp orada gösteriyor çünkü. Bu nedenle hiç sorun olmuyordu.</p>
<p>İyi çalışmalar herkese.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/php/amfphp/amfphp-flash-error-2044-hatasi-ve-cozumu.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Flash Builder Run Project Shortcut Key</title>
		<link>http://blog.ismailsimsek.com/adobe-2/flash-builder/flash-builder-run-project-shortcut-key.html</link>
		<comments>http://blog.ismailsimsek.com/adobe-2/flash-builder/flash-builder-run-project-shortcut-key.html#comments</comments>
		<pubDate>Tue, 03 Aug 2010 11:08:06 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[kısayol]]></category>
		<category><![CDATA[run project kısayol]]></category>
		<category><![CDATA[run project shortcut]]></category>
		<category><![CDATA[shortcut]]></category>

		<guid isPermaLink="false">http://blog.ismailsimsek.com/?p=198</guid>
		<description><![CDATA[Merhaba arkadaşlar. Flash Builder ile çalışırken sürekli uygulamayı run etmek zorunda kalıyoruz. Ve her seferinde mouse ile oku yukarı taşıyıp o küçük ikona tıklamak angarya olmaya başlamıştı. Bu run olayının bir kısayolu yokmu diye internette araştırdım bulamadım. Belki de vardır ben becerememişimdir. Neyse sonunda buldum. :) Kısayol tuşu şu şekilde: Eğer Web Application oluşturuyorsanız Alt + Shift + X daha sonra da W Eğer Desktop Application oluşturuyorsanız : Alt + Shift + X daha sonra [...]]]></description>
			<content:encoded><![CDATA[<p>Merhaba arkadaşlar.</p>
<p>Flash Builder ile çalışırken sürekli uygulamayı run etmek zorunda kalıyoruz. Ve her seferinde mouse ile oku yukarı taşıyıp o küçük ikona tıklamak angarya olmaya başlamıştı. Bu run olayının bir kısayolu yokmu diye internette araştırdım bulamadım. Belki de vardır ben becerememişimdir.</p>
<p>Neyse sonunda buldum. :) Kısayol tuşu şu şekilde:</p>
<p>Eğer Web Application oluşturuyorsanız Alt + Shift + X daha sonra da W</p>
<p>Eğer Desktop Application oluşturuyorsanız : Alt + Shift + X daha sonra da D</p>
<p>Umarım yararlı olur. İyi çalışmalar.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/adobe-2/flash-builder/flash-builder-run-project-shortcut-key.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Builder &#8211; AmfPHP &#8211; ezSQL &#8211; Bölüm 1 &#8211; Veri Kaydı</title>
		<link>http://blog.ismailsimsek.com/php/amfphp/flash-builder-amfphp-ezsql-bolum-1-veri-kaydi.html</link>
		<comments>http://blog.ismailsimsek.com/php/amfphp/flash-builder-amfphp-ezsql-bolum-1-veri-kaydi.html#comments</comments>
		<pubDate>Sat, 24 Jul 2010 11:37:57 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Amfphp]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[extends]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[ezSQL]]></category>
		<category><![CDATA[flash builder 4]]></category>

		<guid isPermaLink="false">http://blog.ismailsimsek.com/?p=187</guid>
		<description><![CDATA[Merhabalar. Bu yazımda AmfPHP ve ezSQL ile Flash Builder kullanarak nasıl daha rahat veri kaydedebileceğimizi göstereceğim. Öncelikle gerekli dosyaları edinelim. ezSQL’i şu adresten indirelim. Bu benim Türkçe karakterler için düzeltme uyguladığım dosya. Bir önceki yazımda bahsetmiştim. Daha sonra amfphp yi şu adresten indirelim. Son olarak amfphp bağlantısını her seferinde yeniden yazmak beni sıktığı için kendi hazırladığım çok basit amfphp sınıfını indiriyoruz. Şimdide Flash Builderda yeni bir proje açıp email ve şifre girişi yapılan bir form [...]]]></description>
			<content:encoded><![CDATA[<p>Merhabalar.</p>
<p>Bu yazımda AmfPHP ve ezSQL ile Flash Builder kullanarak nasıl daha rahat veri kaydedebileceğimizi göstereceğim.<br />
Öncelikle gerekli dosyaları edinelim. ezSQL’i <a href="http://www.ismailsimsek.com/dosya/ezSQL.rar">şu adresten</a> indirelim. Bu benim Türkçe karakterler için düzeltme uyguladığım dosya. <a href="http://blog.ismailsimsek.com/php/ezsql-ile-turkce-karakter-sorunu-nasil-asilir.html" target="_blank">Bir önceki yazımda</a> bahsetmiştim. Daha sonra amfphp yi <a href="http://sourceforge.net/projects/amfphp/files/amfphp/amfphp%201.9.zip/download" target="_blank">şu adresten</a> indirelim. Son olarak amfphp bağlantısını her seferinde yeniden yazmak beni sıktığı için <a href="http://www.ismailsimsek.com/dosya/AmfPHP_Connect.rar">kendi hazırladığım çok basit amfphp sınıfını</a> indiriyoruz.</p>
<p>Şimdide Flash Builderda yeni bir proje açıp email ve şifre girişi yapılan bir form oluşturuyoruz.</p>
<div class="igBar"><span id="lhtml-12"><a href="#" onclick="javascript:showPlainTxt('html-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-12">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>mx:Form<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #ddbb00;">&amp;lt;</span>mx:FormHeading label=<span style="color: #ddbb00;">&amp;quot;</span>Kullanıcı Girişi<span style="color: #ddbb00;">&amp;quot;</span>/<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #ddbb00;">&amp;lt;</span>mx:FormItem label=<span style="color: #ddbb00;">&amp;quot;</span>E-Mail<span style="color: #ddbb00;">&amp;quot;</span><span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ddbb00;">&amp;lt;</span>s:TextInput id=<span style="color: #ddbb00;">&amp;quot;</span>email<span style="color: #ddbb00;">&amp;quot;</span>/<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #ddbb00;">&amp;lt;</span>/mx:FormItem<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #ddbb00;">&amp;lt;</span>mx:FormItem label=<span style="color: #ddbb00;">&amp;quot;</span>Şifre<span style="color: #ddbb00;">&amp;quot;</span><span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ddbb00;">&amp;lt;</span>s:TextInput id=<span style="color: #ddbb00;">&amp;quot;</span>sifre<span style="color: #ddbb00;">&amp;quot;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;displayAsPassword=<span style="color: #ddbb00;">&amp;quot;</span>true<span style="color: #ddbb00;">&amp;quot;</span>/<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #ddbb00;">&amp;lt;</span>/mx:FormItem<span style="color: #ddbb00;">&amp;lt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #ddbb00;">&amp;lt;</span>mx:FormItem<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ddbb00;">&amp;lt;</span>s:Button click=<span style="color: #ddbb00;">&amp;quot;</span>onClick()<span style="color: #ddbb00;">&amp;quot;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; label=<span style="color: #ddbb00;">&amp;quot;</span>Giriş Yap<span style="color: #ddbb00;">&amp;quot;</span>/<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #ddbb00;">&amp;lt;</span>/mx:FormItem<span style="color: #ddbb00;">&amp;gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ddbb00;">&amp;lt;</span>/mx:Form<span style="color: #ddbb00;">&amp;gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Sınıfımızı import edip gerekli verileri gönderelim.</p>
<div class="igBar"><span id="lactionscript-13"><a href="#" onclick="javascript:showPlainTxt('actionscript-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-13">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">ismail</span>.<span style="color: #006600;">amfphp</span>.<span style="color: #0066CC;">Connect</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> amf:<span style="color: #0066CC;">Connect</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; amf = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; amf.<span style="color: #006600;">setPaths</span><span style="color: #66cc66;">&#40;</span>&amp;quot;denemeClass.<span style="color: #006600;">MainDenemeClass</span>&amp;quot;,&amp;quot;http:<span style="color: #808080; font-style: italic;">//localhost/amfphp/gateway.php&amp;quot;);</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> onClick<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> obj:<span style="color: #0066CC;">Object</span> =  <span style="color: #66cc66;">&#123;</span>email:email.<span style="color: #0066CC;">text</span>,sifre:sifre.<span style="color: #0066CC;">text</span><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; amf.<span style="color: #006600;">amfphp</span><span style="color: #66cc66;">&#40;</span>&amp;quot;kayitEkle&amp;quot;,obj,kayitSonucu<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> kayitSonucu <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> == &amp;quot;<span style="color: #cc66cc;color:#800000;">1</span>&amp;quot;<span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span>&amp;quot;Kayit Başarılı.&amp;quot;<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #b1b100;">else</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span>&amp;quot;Başarısız.&amp;quot;<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
amf.setPaths() fonksiyonu bizden iki tane veri bekliyor. Birinci veri amfphp nin gateway.php dosyasının yolu. Çünkü bunun üzerinden iletişim kuracak. Diğer veri ise bizim işlemleri yapacak olan php dosyamızın yolu. Bu şekilde yazmamın nedeni şu. Bu adres her veri isteğinde yazılmak zorunda. Biz bir kere verip kurtuluyoruz :D "denemeClass" services klasörü içindeki benim sınıfımın bulunduğu klasör "MainDenemeClass" ise php dosyamın adı.<br />
Gelelim php dosyamıza. Onunda içeriği şu şekilde</p>
<div class="igBar"><span id="lphp-14"><a href="#" onclick="javascript:showPlainTxt('php-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-14">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;?php</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">include_once</span> <span style="color:#FF0000;">'ez_sql_core.php'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">include_once</span> <span style="color:#FF0000;">'ez_sql_mysql.php'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> MainDenemeClass extends ezSQL_mysql</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> MainDenemeClass<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">include_once</span> <span style="color:#FF0000;">'db.php'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&amp;gt;ezSQL_mysql <span style="color:#006600; font-weight:bold;">&#40;</span> DB_USER, DB_PASS, DB_NAME, DB_HOST <span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> kayitEkle<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$gelenVeri</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/extract"><span style="color:#000066;">extract</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$gelenVeri</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$qq</span> = <span style="color:#0000FF;">$this</span>-&amp;gt;query<span style="color:#006600; font-weight:bold;">&#40;</span>&amp;quot;insert into uyeler values<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">''</span>,<span style="color:#FF0000;">'$email'</span>,<span style="color:#FF0000;">'$sifre'</span><span style="color:#006600; font-weight:bold;">&#41;</span>&amp;quot;<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$qq</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#CC66CC;color:#800000;">1</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">else</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#CC66CC;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p>
Sonunda ?> yok farkettiyseniz. Gerekte yok. Bazen sorun çıkartabiliyor o yüzden koymuyorum. Burada yine aynı sırayla dosyalarımızı import ediyoruz ve sınıfımızı ezSQL_mysql ile <a href="http://php.net/manual/en/keyword.extends.php" target="_blank">extend</a> ediyoruz.<br />
Flash Builder içinden çağırdığımız kayitEkle fonksiyonu bir adet veri kabul ediyor. Bunu fonksiyon içinde <a href="http://php.net/manual/en/function.extract.php" target="_blank">extract()</a> ile parçalıyoruz. Bu sayede her gelen veri düzgün bir şekilde ayrıştırılmış oluyor.<br />
İşlemleri yapıp geriye istediğimiz veriyi döndürüyoruz.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/php/amfphp/flash-builder-amfphp-ezsql-bolum-1-veri-kaydi.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Builder 4 ve Amfphp</title>
		<link>http://blog.ismailsimsek.com/php/amfphp/flash-builder-4-ve-amfphp.html</link>
		<comments>http://blog.ismailsimsek.com/php/amfphp/flash-builder-4-ve-amfphp.html#comments</comments>
		<pubDate>Sun, 11 Apr 2010 15:04:07 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Amfphp]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[actionscript 3.0]]></category>
		<category><![CDATA[ezSQL]]></category>
		<category><![CDATA[flash builder 4]]></category>
		<category><![CDATA[flex builder]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://blog.ismailsimsek.com/?p=157</guid>
		<description><![CDATA[Merhaba arkadaşlar. Bu yazımda size geçtiğimiz günlerde çıkan Flash Builder 4 ile AmfPHP ilişkisini anlatacağım. Daha önce Flex Builder ile anlatmıştım aynı konuyu ama şimdi ona bakınca ne kadar çok uğraşmışım diye kendime gülüyorum. Öncelikle basit bir veritabanı yapısı oluşturalım. Veritabanımın adı “denemeler” buraya adı “fb_ilkDeneme” isimli bir tablo oluşturuyoruz. Ve “id,isim,aciklama” alanlarını ekliyoruz. İçerisine birkaç bilgi girelim boş kalmasın. Şimdi gelelim kodlamaya. Öncelikle amfphp yi şu adresten indirip localhostumuzda uygun bir yere çıkartıyoruz. Services [...]]]></description>
			<content:encoded><![CDATA[<p>Merhaba arkadaşlar. Bu yazımda size geçtiğimiz günlerde çıkan Flash Builder 4 ile AmfPHP ilişkisini anlatacağım. <a href="http://blog.ismailsimsek.com/amfphp/flex-ile-amfphp-kullanmak.html">Daha önce Flex Builder</a> ile anlatmıştım aynı konuyu ama şimdi ona bakınca ne kadar çok uğraşmışım diye kendime gülüyorum.<span id="more-157"></span></p>
<p>Öncelikle basit bir veritabanı yapısı oluşturalım. Veritabanımın adı “denemeler” buraya adı “fb_ilkDeneme” isimli bir tablo oluşturuyoruz. Ve “id,isim,aciklama” alanlarını ekliyoruz. İçerisine birkaç bilgi girelim boş kalmasın.</p>
<p>Şimdi gelelim kodlamaya. Öncelikle amfphp yi <a href="http://www.ismailsimsek.com/projects/amfphp.rar" target="_blank">şu adresten</a> indirip localhostumuzda uygun bir yere çıkartıyoruz. Services klasörü içerisine yeni bir klasör oluşturup adını flashbuilder olarak değiştirelim. Ben öyle yaptım siz adını farklı bir şey yapabilirisiniz. Bunu yapmamızın nedeni her yeni projenin kullandığı amfphp dosyalarının ayrı ayrı klasörlenmesi. Kısaca düzen :)</p>
<p>Sıra geldi database iletişimini sağlayacak olan sınıfımıza. Ben bunun için wordpress inde kullandığı <a href="http://www.woyano.com/jv/ezsql">ezSQL</a>’i kullanmayı tercih ediyorum. <a href="http://www.woyano.com/sites/woyano/data/assets/2/1/3/213-ez_sql_2.05.zip">Şuradan</a> indirebilir <a href="http://www.yakuter.com/ezsql-veritabani-sinifinin-kullanimi/">buradan</a> da yakuter’in ezSQL’i anlattığı yazısına ulaşabilirsiniz. Bu yazıyı okumuş gerekli örnek uygulamaları yapmış ve neyin ne olduğunu bildiğinizi varsayıyorum :) Daha sonra kullanımına yönelik bir makale yazacağım.</p>
<p>Oluşturduğumuz flashbuilder klasörü içine bir adet php sınıfı oluşturmamız lazım. Şimdi kodlamamıza koyulalım. Kodlar aşağıda ve açıklamalarını da hemen altlarına yazdım.</p>
<div class="igBar"><span id="lphp-17"><a href="#" onclick="javascript:showPlainTxt('php-17'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-17">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;?php</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">include_once</span> &amp;quot;ez_sql_core.php&amp;quot;;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">include_once</span> &amp;quot;ez_sql_mysql.php&amp;quot;;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//Bu sıraya göre include etmemiz gerekiyor yoksa hata verebiliyor.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> deneme extends ezSQL_mysql</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//sınıfımızın adı deneme.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//extends kullandım başka türlü ezSQL içindeki fonksiyonlara ulaşamıyorum</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//bunun dışında yöntem bilen varsa lütfen paylaşsın</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> deneme<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//sınıf içinde ilk çalışacak fonksiyon.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//burada benim kendi değişkenlerimi (kullanıcı adı veritabanı adı vs.) tanımladığım dosyayı çağırıyorum.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">include_once</span> &amp;quot;db.php&amp;quot;;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&amp;amp;gt;ezSQL_mysql <span style="color:#006600; font-weight:bold;">&#40;</span> DB_USER, DB_PASS, DB_NAME, DB_HOST <span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//son olarakta bağlantı kuruyorum.</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">function</span> ilkBilgi<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$veri</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/extract"><span style="color:#000066;">extract</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$veri</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//$veri değişkenine gelen bilgileri dışarı çıkartıp her birini değişken olarak kullanmak için extract fonksiyonunu kullanıyoruz. Bu fonksiyon hakkında daha fazla bilgi için http://php.net/manual/en/function.extract.php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$bilgi</span> = <span style="color:#0000FF;">$this</span>-&amp;amp;gt;get_row<span style="color:#006600; font-weight:bold;">&#40;</span>&amp;quot;select * from rooms where id=&amp;quot;.<span style="color:#0000FF;">$id</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//burada id si 1 olan satırı istedim.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#0000FF;">$bilgi</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//ve gelen bilgiyi geri gönderdim. İşte bu kadar.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Burada küçük bir açıklama yapmak istiyorum. $bilgi değişkenine gelen veri şu şekilde.<br />
(Object)#0<br />
id = "1"<br />
isim = "ismail"<br />
aciklama= "ilk aciklama satırı…."</p>
<p>Yani bize gelen veri object formatında. Buda işimizi çok kolaylaştırıyor. İstediğimiz bilgiye $bilgi-&gt;name şeklinde kolayca ulaşabiliyoruz. Bu flash builder içerisinde de işimizi çok kolaylaştıracak.<br />
Şimdi ise actionscript kodlarımıza bakalım. Sahnemizde bir adet buton bir adet textarea nesnemiz var.</p>
<div class="igBar"><span id="lactionscript-18"><a href="#" onclick="javascript:showPlainTxt('actionscript-18'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-18">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=&amp;quot;<span style="color: #cc66cc;color:#800000;">1</span>.<span style="color: #cc66cc;color:#800000;">0</span>&amp;quot; encoding=&amp;quot;utf-<span style="color: #cc66cc;color:#800000;">8</span>&amp;quot;?&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;s:Application xmlns:fx=&amp;quot;http:<span style="color: #808080; font-style: italic;">//ns.adobe.com/mxml/2009&amp;quot;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:s=&amp;quot;library:<span style="color: #808080; font-style: italic;">//ns.adobe.com/flex/spark&amp;quot;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; xmlns:mx=&amp;quot;library:<span style="color: #808080; font-style: italic;">//ns.adobe.com/flex/mx&amp;quot;&amp;gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &amp;lt;fx:Script&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &amp;lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> baglantiStr:<span style="color: #0066CC;">String</span>=&amp;quot;http:<span style="color: #808080; font-style: italic;">//localhost/amfphp/gateway.php&amp;quot;;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//hangi yol üzerinden iletişim kurulacak bunu belirttik.</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> phpyol:<span style="color: #0066CC;">String</span>=&amp;quot;flashbuilder.<span style="color: #006600;">deneme</span>.&amp;quot;;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #808080; font-style: italic;">//bu değişken ise services klasörü içindeki php dosyamızı belirtiyor. En sonunda bir nokta daha var. Burada oluşturduğumuz klasör içindeki fonksiyonlara ulaşmak için şu yazımı kullanıyoruz. “Flashbuilder.deneme.ilkBilgi” bu şekilde o fonksiyona ulaşıyoruz. Ama bana her seferinde “flashbuilder.deneme” yazmak zor geliyor açıkcası o yüzden böyle değişkene bağladım. </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> amfphp<span style="color: #66cc66;">&#40;</span>yol:<span style="color: #0066CC;">String</span>, veriler:<span style="color: #0066CC;">Object</span>, callback:<span style="color: #000000; font-weight: bold;">Function</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> baglanti:<span style="color: #0066CC;">NetConnection</span>=<span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">NetConnection</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; baglanti.<span style="color: #0066CC;">connect</span><span style="color: #66cc66;">&#40;</span>baglantiStr<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> geri:Responder=<span style="color: #000000; font-weight: bold;">new</span> Responder<span style="color: #66cc66;">&#40;</span>callback<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; baglanti.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span>phpyol + yol, geri, veriler<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> verileriGetirFnk<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> veri:<span style="color: #0066CC;">Object</span>=<span style="color: #66cc66;">&#123;</span>id: <span style="color: #cc66cc;color:#800000;">1</span><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; amfphp<span style="color: #66cc66;">&#40;</span>&amp;quot;ilkBilgi&amp;quot;, veri, getir<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getir<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:<span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yaziAlani.<span style="color: #0066CC;">text</span>=<span style="color: #0066CC;">e</span>.<span style="color: #006600;">aciklama</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&amp;gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &amp;lt;/fx:Script&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &amp;lt;s:TextArea x=&amp;quot;<span style="color: #cc66cc;color:#800000;">10</span>&amp;quot;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;y=&amp;quot;<span style="color: #cc66cc;color:#800000;">10</span>&amp;quot;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #0066CC;">width</span>=&amp;quot;<span style="color: #cc66cc;color:#800000;">497</span>&amp;quot;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;<span style="color: #0066CC;">height</span>=&amp;quot;<span style="color: #cc66cc;color:#800000;">224</span>&amp;quot;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;id=&amp;quot;yaziAlani&amp;quot;/&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &amp;lt;s:<span style="color: #0066CC;">Button</span> x=&amp;quot;<span style="color: #cc66cc;color:#800000;">515</span>&amp;quot;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;y=&amp;quot;<span style="color: #cc66cc;color:#800000;">10</span>&amp;quot;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;label=&amp;quot;Verileri Getir&amp;quot;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;click=&amp;quot;verileriGetirFnk<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>&amp;quot;/&amp;gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&amp;lt;/s:Application&amp;gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>amfphp() fonksiyonu üç adet değişken kabul ediyor. Bunlar yol veriler ve callback. Yol değişkeni verilerimizi hangi fonksiyona göndereceğimizi belirtiyor. Veriler ise fonksiyona göndereceğimiz verileri taşıyor ve object formatında. Bu sayede php tarafında extract() ile içerisini boşaltabiliyoruz. Callback ise php den dönen verileri alıp işleyen fonksiyon. Daha sonra buraya baglanti isminde bir NetConnection nesnesi tanımlıyoruz. Bu baglanti nesnemiz ile baglantiStr de belirttiğimiz adrese bağlantıyı gerçekleştiriyoruz. Daha sonra bir Responder oluşturup callback i buraya atıyoruz. Burada dikkat edilecek nokta şu: iki farklı responder var. Biz flash.net sınıfına bağlı olanı seçiyoruz.</p>
<p><img class="alignnone" src="http://www.ismailsimsek.com/ie/flashbuilder_amfphp/1.jpg" alt="" width="477" height="244" /></p>
<p>Daha sonra bu baglanti üzerinden call() fonksiyonu ile verilerimizi gönderiyoruz. Fark ettiyseniz phpyol ile fonksiyon ismini taşıyan yol değişkenimi birleştirdim. Böylelikle daha önce yazdığım şekil ortaya çıktı. “flashbuilder.deneme.ilkBilgi”</p>
<p>verileriGetirFnk Mouse tarafından tetiklenen fonksiyonumuz. Burada veri isminde bir obje oluşturup içine göndereceğimiz veriyi düzgün şekilde yazıyoruz. Daha sonra bunu amfphp ye gönderiyoruz. Burada “ilkBilgi” php dosyasındaki fonksiyon adını veri oluşturduğumuz veri değişkenini getir ise php den dönen verilerin işleneceği fonksiyon adını belirtiyor.</p>
<p>getir fonksiyonda ise dönen verimizi istediğimiz şekilde kullanabiliriz. Çünkü buraya gelen veri object şeklinde zaten. Kullanımı çok basit. Textarea ya yazdıracağımız veriyi e.aciklama şeklinde tanımlıyoruz. Hepsi bu kadar. Veritabanından veriyi çektik ve yazdırdık.</p>
<p>Veritabanına veri kaydı için ise kaydedeceğimiz verileri gönderiyoruz php ile kayıt işlemini yapıyoruz. Bu kadar basit. Diğerinden daha kolay değil mi?</p>
<p>Herkese iyi çalışmalar.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/php/amfphp/flash-builder-4-ve-amfphp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Builder 4 ve AutoFormat Plug-in</title>
		<link>http://blog.ismailsimsek.com/adobe-2/flash-builder/flash-builder-4-ve-autoformat-plug-in.html</link>
		<comments>http://blog.ismailsimsek.com/adobe-2/flash-builder/flash-builder-4-ve-autoformat-plug-in.html#comments</comments>
		<pubDate>Thu, 01 Apr 2010 22:06:41 +0000</pubDate>
		<dc:creator>İsmail Şimşek</dc:creator>
				<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flash builder 4]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://blog.ismailsimsek.com/?p=149</guid>
		<description><![CDATA[Merhaba arkadaşlar. Flash Builder 4 çıktı indirdim kurdum ve sonra ilk yaptığım şey AutoFormat plugin i eklemek oldu. Düzen herşey :) Çok zorlandım ekleyene kadar. Hepsini anlatacağım. Bunu nasıl yaptığıma geçmeden önce Flash Builder ile ilgili bir kaç bilgi vereyim. Artık daha az kod yazarak ek çok işi başarabileceğiz. O nasıl oluyor ki öyle diyorsanız size 2.5 dakika süren şu videoyu izlemenizi tavisyeediyorum. Herşey gayet açık şekilde gözüküyor :) Bunun dışında yüklemek için iki seçeneğimiz [...]]]></description>
			<content:encoded><![CDATA[<p>Merhaba arkadaşlar. <a href="http://labs.adobe.com/technologies/flashbuilder4/" target="_blank">Flash Builder 4</a> çıktı indirdim kurdum ve sonra ilk yaptığım şey AutoFormat plugin i eklemek oldu. Düzen herşey :) Çok zorlandım ekleyene kadar. Hepsini anlatacağım.</p>
<p>Bunu nasıl yaptığıma geçmeden önce Flash Builder ile ilgili bir kaç bilgi vereyim. Artık daha az kod yazarak ek çok işi başarabileceğiz. O nasıl oluyor ki öyle diyorsanız size 2.5 dakika süren <a href="http://www.gotoandlearn.com/play?id=121" target="_blank">şu videoyu</a> izlemenizi tavisyeediyorum. Herşey gayet açık şekilde gözüküyor :)</p>
<p><span id="more-149"></span></p>
<p>Bunun dışında yüklemek için iki seçeneğimiz var. Birisi standalone versiyonunu yüklemek diğeride Eclipse Plug-in indirip yüklemek. Benim tavsiyem standalone versiyonunu yüklemenizden yana. Neden diyorsanız size küçük bir alıntı yapayım:</p>
<p>"Eğer daha önceden Eclipse kullanıyorsanız Flash Builder Plug-in’i  indirerek kullandığınız Eclipse versiyonuna yükleyebilirsiniz. Eğer  kullanmıyorsanız Flash Builder Standalone versiyonunu yüklemeniz daha  mantıklı, bu sayede işleri basitleştirmiş olursunuz. Diğer taraftan ilerde yine bir Eclipse Plug-in’ine ihtiyaç  duyduğunuzda, mesela Java ile kodlama yapmanız gerektiğinde, yeniden  Eclipse yazılımını yüklemenize gerek kalmadan Flash Builder 4 yazılımına  gerekli eklemeleri yaparak Flash Builder 4 içerisinde Java dili ile  kodlama yapabilirsiniz."  <a href="http://enginyoyen.com/blog/tr/flashflex-builder-4e-giris" target="_blank">Engin Yöyen</a></p>
<p>Gelelim şu üzerinde çok uğraştığım ve sonunda eklemeyi başardığım plugin'e.</p>
<p>Plugin'in adresi şu : http://flexformatter.googlecode.com/svn/trunk/FlexFormatter/FlexPrettyPrintCommandUpdateSite</p>
<p>Adım 1 - "Help" menüsü altındaki "Install New Software.." seçeneğini seçiyoruz. Burada karşımıza gelen pencerede "Add" butonuna tıklayıp yeni site ekleme penceresini açıyoruz. Kendimize göre bir isim verdikten sonra ben AutoFormat dedim Location bölümüne yukarıdaki adresi giriyoruz ve ok diyoruz.</p>
<p><img class="alignnone" title="Flash Builder 4" src="http://www.ismailsimsek.com/blog/wp-content/uploads/2010/fb4-1.jpg" alt="Flash Builder 4" width="833" height="606" /></p>
<p>Daha sonra Work with combobox'ından az önce eklediğimiz siteyi seçiyoruz. Aşağıdaki iki seçeneğin işaretini kaldırıp en üstteki versiyonu seçiyoruz  ve Next'e tıklıyoruz. Gerisini Flash Builder kendisi hallediyor. Yükleme bittikten sonra yeniden başlattığınızda kullanabilirsiniz.</p>
<p><img class="alignnone" title="Flash Builder 4 width=" src="http://www.ismailsimsek.com/blog/wp-content/uploads/2010/fb4-2.jpg" alt="Flash Builder 4" height="605" /></p>
<p>Şimdi sen neresine takıldın bunun diyeceksiniz. Kaldırılması gereken tikleri kaldırmadığım için hiç karşıma yüklenecek dosyalar listelenmedi bende arandım durdum. Şanseseri oradaki tiki kaldırdım ve çözdüm :)</p>
<p>Kolay gelsin.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ismailsimsek.com/adobe-2/flash-builder/flash-builder-4-ve-autoformat-plug-in.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

