<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Working in Flash Builder 4 with Flex and PHP</title>
	<atom:link href="http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=working-in-flash-builder-4-with-flex-and-php</link>
	<description>Web, Mobile, and Rock&#38;Roll</description>
	<lastBuildDate>Sat, 11 Feb 2012 08:46:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Danko Kozar</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-22099</link>
		<dc:creator>Danko Kozar</dc:creator>
		<pubDate>Mon, 20 Jun 2011 14:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-22099</guid>
		<description>Hi,

I got 2 questions on (Flash Builder 4.5 for PHP) autogenerated classes and authentication via AMF.

1) As I understood, the authentication should be set up manually on the PHP side, for instance right in the gateway.php, just before the &#039;handle&#039; call:

// create server
$server = new Zend_Amf_Server();
$server-&gt;setProduction(false);

// auth 
$authAdapter = new My_Custom_Auth_Adapter();
$server-&gt;setAuth($authAdapter);

// acl
$acl = new Zend_Acl();
$server-&gt;setAcl($acl);

// handle AMF request
echo $server-&gt;handle();

Now, I know about implementin initAcl($acl) method inside each service class, and it works fine.
However, I&#039;ve got the problem with auth. My_Custom_Auth_Adapter never gets called.
I think it&#039;s because at this state I&#039;ve got no credentions sent from Flex through the wire (via headers).
I expected that the methods shouldn&#039;t be called if there are no credentials, but they somehow are.
Now check this out: 

Server.php (Zend_Amf_Server) line 499:

$handleAuth = false;
if ($this-&gt;_auth) {
	$headers = $request-&gt;getAmfHeaders();
	if (isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]) &amp;&amp;
		isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]-&gt;userid)) {
		$handleAuth = true;
	}
}

... seems like the auth is handled only if there are credentials sent from Flex. Meaning that one can skip auth with no headers sent (?)

2) now for the client. Do you know how am I supposed to supply the credentials to AMF call? 
Is it on each call? 
Or is it one per session?

This is the best I know, but it doesn&#039;t help: http://forums.adobe.com/thread/840942?decorator=print&amp;displayFullThread=true

Thank you.

Danko</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I got 2 questions on (Flash Builder 4.5 for PHP) autogenerated classes and authentication via AMF.</p>
<p>1) As I understood, the authentication should be set up manually on the PHP side, for instance right in the gateway.php, just before the &#8216;handle&#8217; call:</p>
<p>// create server<br />
$server = new Zend_Amf_Server();<br />
$server-&gt;setProduction(false);</p>
<p>// auth<br />
$authAdapter = new My_Custom_Auth_Adapter();<br />
$server-&gt;setAuth($authAdapter);</p>
<p>// acl<br />
$acl = new Zend_Acl();<br />
$server-&gt;setAcl($acl);</p>
<p>// handle AMF request<br />
echo $server-&gt;handle();</p>
<p>Now, I know about implementin initAcl($acl) method inside each service class, and it works fine.<br />
However, I&#8217;ve got the problem with auth. My_Custom_Auth_Adapter never gets called.<br />
I think it&#8217;s because at this state I&#8217;ve got no credentions sent from Flex through the wire (via headers).<br />
I expected that the methods shouldn&#8217;t be called if there are no credentials, but they somehow are.<br />
Now check this out: </p>
<p>Server.php (Zend_Amf_Server) line 499:</p>
<p>$handleAuth = false;<br />
if ($this-&gt;_auth) {<br />
	$headers = $request-&gt;getAmfHeaders();<br />
	if (isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]) &amp;&amp;<br />
		isset($headers[Zend_Amf_Constants::CREDENTIALS_HEADER]-&gt;userid)) {<br />
		$handleAuth = true;<br />
	}<br />
}</p>
<p>&#8230; seems like the auth is handled only if there are credentials sent from Flex. Meaning that one can skip auth with no headers sent (?)</p>
<p>2) now for the client. Do you know how am I supposed to supply the credentials to AMF call?<br />
Is it on each call?<br />
Or is it one per session?</p>
<p>This is the best I know, but it doesn&#8217;t help: <a href="http://forums.adobe.com/thread/840942?decorator=print&#038;displayFullThread=true" rel="nofollow">http://forums.adobe.com/thread/840942?decorator=print&#038;displayFullThread=true</a></p>
<p>Thank you.</p>
<p>Danko</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-17195</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Mon, 14 Feb 2011 23:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-17195</guid>
		<description>Hi, Mihai:

   Your series of blogs are very helpful. One question: is Cairngorm framework able to fit into this picture smoothly? Theoretially Cairngorm is client side framework, it should be independent of what you discussed here, just want to see how it works practically, or should we use it with FlashBuilder4 at all?</description>
		<content:encoded><![CDATA[<p>Hi, Mihai:</p>
<p>   Your series of blogs are very helpful. One question: is Cairngorm framework able to fit into this picture smoothly? Theoretially Cairngorm is client side framework, it should be independent of what you discussed here, just want to see how it works practically, or should we use it with FlashBuilder4 at all?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michallis</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-16858</link>
		<dc:creator>michallis</dc:creator>
		<pubDate>Wed, 02 Feb 2011 10:47:56 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-16858</guid>
		<description>thx</description>
		<content:encoded><![CDATA[<p>thx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Youdgin</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-15943</link>
		<dc:creator>Youdgin</dc:creator>
		<pubDate>Fri, 31 Dec 2010 09:19:46 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-15943</guid>
		<description>P.S Happy New Year !!!</description>
		<content:encoded><![CDATA[<p>P.S Happy New Year !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Youdgin</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-15931</link>
		<dc:creator>Youdgin</dc:creator>
		<pubDate>Thu, 30 Dec 2010 17:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-15931</guid>
		<description>Hi Mihai, first I want to thank you for all this useful information, it&#039;s been a great help for me.
I use Data Services in my PHP-FLEX project a lot and i like automatic type recognition but I can&#039;t find a solution for recognizing ByteArray(i have small pictures in my database to retrieve) types and it&#039;s very annoying because every time I update the service class it&#039;s assigning to it a new type something like Bytearray and not the existing ByteArray type in ActionScript and thus I&#039;m forced every time on service update to correct the return type for the flex project to work. I searched a lot for a solution and finally with hope to find it left a comment here. Please Help. Thank You.</description>
		<content:encoded><![CDATA[<p>Hi Mihai, first I want to thank you for all this useful information, it&#8217;s been a great help for me.<br />
I use Data Services in my PHP-FLEX project a lot and i like automatic type recognition but I can&#8217;t find a solution for recognizing ByteArray(i have small pictures in my database to retrieve) types and it&#8217;s very annoying because every time I update the service class it&#8217;s assigning to it a new type something like Bytearray and not the existing ByteArray type in ActionScript and thus I&#8217;m forced every time on service update to correct the return type for the flex project to work. I searched a lot for a solution and finally with hope to find it left a comment here. Please Help. Thank You.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dangeroo</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-15501</link>
		<dc:creator>Dangeroo</dc:creator>
		<pubDate>Sat, 18 Dec 2010 18:57:43 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-15501</guid>
		<description>Hi,

How do I go about changing the records for a specific field?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>How do I go about changing the records for a specific field?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kach</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-15290</link>
		<dc:creator>Kach</dc:creator>
		<pubDate>Fri, 17 Dec 2010 20:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-15290</guid>
		<description>@Hob
Thanks for the reply.  My domain lives in a shared Windows server environment. There appears to be no way to map the remote web root(D:\78963\www\mydomain) to a local drive (z:\). I have yet to find a solution to my dilemma.  Otherwise, I am forced to develop within a local WAMP setup.</description>
		<content:encoded><![CDATA[<p>@Hob<br />
Thanks for the reply.  My domain lives in a shared Windows server environment. There appears to be no way to map the remote web root(D:\78963\www\mydomain) to a local drive (z:\). I have yet to find a solution to my dilemma.  Otherwise, I am forced to develop within a local WAMP setup.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hob</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-13370</link>
		<dc:creator>Hob</dc:creator>
		<pubDate>Mon, 22 Nov 2010 09:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-13370</guid>
		<description>@Mihai  Great tutorial and good job on the video as well.
 
@Kash, Anna 
Hi, I dont know if you found the answer  but I think you dont have access to your web root. In &quot;my computer&quot; the drive must be accessible, ie. you should be able to connect to D:\78963\www\mydomain\

My servers are in linux enviroment so i set up samba and mount webroot as network drive for my dev server.
So  http://www.mydomain.com   is simply z:\
I am sure you can do a similar setup in windows servers.</description>
		<content:encoded><![CDATA[<p>@Mihai  Great tutorial and good job on the video as well.</p>
<p>@Kash, Anna<br />
Hi, I dont know if you found the answer  but I think you dont have access to your web root. In &#8220;my computer&#8221; the drive must be accessible, ie. you should be able to connect to D:\78963\www\mydomain\</p>
<p>My servers are in linux enviroment so i set up samba and mount webroot as network drive for my dev server.<br />
So  <a href="http://www.mydomain.com" rel="nofollow">http://www.mydomain.com</a>   is simply z:\<br />
I am sure you can do a similar setup in windows servers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anna</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-12716</link>
		<dc:creator>Anna</dc:creator>
		<pubDate>Mon, 25 Oct 2010 17:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-12716</guid>
		<description>I have the same problem than Kach, I want to connect to an external server and the web root fails validation...</description>
		<content:encoded><![CDATA[<p>I have the same problem than Kach, I want to connect to an external server and the web root fails validation&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kach</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-12662</link>
		<dc:creator>Kach</dc:creator>
		<pubDate>Fri, 22 Oct 2010 15:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-12662</guid>
		<description>For setting up a PHP-Flex project, you indicated: &quot;Make sure that in the wizard you choose PHP as the server technology, and you give the correct information for the document root of the web server (absolute path and URL).&quot;

This only works for local WAMP/MAMP configuration. If I try to enter external server info (Web root and root URL), the configuration fails validation. For example, my external server web root absolute path is &quot;D:\78963\www\mydomain\&quot; and the root URL is &quot;http://www.mydomain.com&quot;.

Any suggestions?</description>
		<content:encoded><![CDATA[<p>For setting up a PHP-Flex project, you indicated: &#8220;Make sure that in the wizard you choose PHP as the server technology, and you give the correct information for the document root of the web server (absolute path and URL).&#8221;</p>
<p>This only works for local WAMP/MAMP configuration. If I try to enter external server info (Web root and root URL), the configuration fails validation. For example, my external server web root absolute path is &#8220;D:\78963\www\mydomain\&#8221; and the root URL is &#8220;http://www.mydomain.com&#8221;.</p>
<p>Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-12612</link>
		<dc:creator>Adrian</dc:creator>
		<pubDate>Tue, 19 Oct 2010 11:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-12612</guid>
		<description>Great tutorial, really helped me understand Flash builder. I&#039;m not a noob in AS3 and OOP so my background experience really helped. Thanks!</description>
		<content:encoded><![CDATA[<p>Great tutorial, really helped me understand Flash builder. I&#8217;m not a noob in AS3 and OOP so my background experience really helped. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kasi</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-11459</link>
		<dc:creator>kasi</dc:creator>
		<pubDate>Thu, 22 Jul 2010 04:53:51 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-11459</guid>
		<description>i am looking to create a field in database by zend frame work can any one help me</description>
		<content:encoded><![CDATA[<p>i am looking to create a field in database by zend frame work can any one help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kedoublenizzle</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-10814</link>
		<dc:creator>kedoublenizzle</dc:creator>
		<pubDate>Mon, 31 May 2010 04:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-10814</guid>
		<description>great tut!  Thanks a much!  Answered a lot of my questions with your tut.</description>
		<content:encoded><![CDATA[<p>great tut!  Thanks a much!  Answered a lot of my questions with your tut.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samruddhi</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-9612</link>
		<dc:creator>samruddhi</dc:creator>
		<pubDate>Fri, 26 Mar 2010 09:45:17 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-9612</guid>
		<description>hi

this is my first flex application and i m trying to make a login form using wsdl. My wsdl return string called “Success” if the user name and password is correct.
I call the web service at the click of submit button
when i try to get the return value into a variable for eg:

var info:String = service.lastResult

i always get a null value at first. When i click for the second time, it returns the string.
I m not able to understand. Please help.

Thanks in advance,
Samruddhi</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>this is my first flex application and i m trying to make a login form using wsdl. My wsdl return string called “Success” if the user name and password is correct.<br />
I call the web service at the click of submit button<br />
when i try to get the return value into a variable for eg:</p>
<p>var info:String = service.lastResult</p>
<p>i always get a null value at first. When i click for the second time, it returns the string.<br />
I m not able to understand. Please help.</p>
<p>Thanks in advance,<br />
Samruddhi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: samruddhi</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-9611</link>
		<dc:creator>samruddhi</dc:creator>
		<pubDate>Fri, 26 Mar 2010 09:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-9611</guid>
		<description>hi

this is my first flex application and i m trying to make a login form using wsdl. My wsdl return string called &quot;Success&quot; if the user name and password is correct.
I call the web service at the click of submit button
when i try to get the return value into a variable for eg:

var info:String = service.lastResult

i always get a null value at first. When i click for the second time, it returns the string. 
I m not able to understand. Please help.

Thanks in advance,
Samruddhi</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>this is my first flex application and i m trying to make a login form using wsdl. My wsdl return string called &#8220;Success&#8221; if the user name and password is correct.<br />
I call the web service at the click of submit button<br />
when i try to get the return value into a variable for eg:</p>
<p>var info:String = service.lastResult</p>
<p>i always get a null value at first. When i click for the second time, it returns the string.<br />
I m not able to understand. Please help.</p>
<p>Thanks in advance,<br />
Samruddhi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shonn Isitt</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-9134</link>
		<dc:creator>Shonn Isitt</dc:creator>
		<pubDate>Wed, 10 Mar 2010 20:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-9134</guid>
		<description>Can you provide the PHP file with the database functions?</description>
		<content:encoded><![CDATA[<p>Can you provide the PHP file with the database functions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Muhammad Farooqi</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-8974</link>
		<dc:creator>Muhammad Farooqi</dc:creator>
		<pubDate>Wed, 03 Mar 2010 14:38:50 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-8974</guid>
		<description>Great man... it&#039;s really amazing..
i m very new to flex.. and its realy very easy.

thank you</description>
		<content:encoded><![CDATA[<p>Great man&#8230; it&#8217;s really amazing..<br />
i m very new to flex.. and its realy very easy.</p>
<p>thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Albert</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-8449</link>
		<dc:creator>Albert</dc:creator>
		<pubDate>Sun, 24 Jan 2010 20:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-8449</guid>
		<description>Nice example ... however:
1. FB beta 2 (windows 7) sucs: it works with eclipse 3.4 + plugin but complete installation NOT. Can somebody tell me why?

2. Why implementation is only possible with wizard and zend framework? Is it not MUCH better to provide something like a DATA PROVIDER with parameters startIndex, maxElements, callbackFunction?

my 5 cent 

cheers
Albert</description>
		<content:encoded><![CDATA[<p>Nice example &#8230; however:<br />
1. FB beta 2 (windows 7) sucs: it works with eclipse 3.4 + plugin but complete installation NOT. Can somebody tell me why?</p>
<p>2. Why implementation is only possible with wizard and zend framework? Is it not MUCH better to provide something like a DATA PROVIDER with parameters startIndex, maxElements, callbackFunction?</p>
<p>my 5 cent </p>
<p>cheers<br />
Albert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Hart</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-8424</link>
		<dc:creator>Joel Hart</dc:creator>
		<pubDate>Thu, 21 Jan 2010 16:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-8424</guid>
		<description>That would be really nice and make sense, but if that were true I wouldn&#039;t be posting that it is returning null, would I?</description>
		<content:encoded><![CDATA[<p>That would be really nice and make sense, but if that were true I wouldn&#8217;t be posting that it is returning null, would I?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-8418</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Thu, 21 Jan 2010 08:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-8418</guid>
		<description>@Joel

Once you see data in your data grid you should have a value for event.itemRenderer.data different than null.</description>
		<content:encoded><![CDATA[<p>@Joel</p>
<p>Once you see data in your data grid you should have a value for event.itemRenderer.data different than null.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-8410</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Wed, 20 Jan 2010 16:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-8410</guid>
		<description>I see data on the client. The whole dataGrid is populated nicely. 

I have been tracing in the debugger since I see data and event.itemRenderer.data is returning null

Joel</description>
		<content:encoded><![CDATA[<p>I see data on the client. The whole dataGrid is populated nicely. </p>
<p>I have been tracing in the debugger since I see data and event.itemRenderer.data is returning null</p>
<p>Joel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-8407</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Wed, 20 Jan 2010 08:44:12 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-8407</guid>
		<description>@Joel

From what you are saying I understand that you don&#039;t see any data on the client. If you&#039;d see data then event.itemRenderer.data wouldn&#039;t be null.

So, the first step would be to fix any problem you have in order to see data (problems could be on the PHP side, like incorrect database credentials).

After you see data, use the Flex debugger to see if the itemRenderer.data object has the type you expect. If the mapping from the PHP to ActionScript type is not correct, you&#039;ll get instances of ProxyObjects and not VOObject.</description>
		<content:encoded><![CDATA[<p>@Joel</p>
<p>From what you are saying I understand that you don&#8217;t see any data on the client. If you&#8217;d see data then event.itemRenderer.data wouldn&#8217;t be null.</p>
<p>So, the first step would be to fix any problem you have in order to see data (problems could be on the PHP side, like incorrect database credentials).</p>
<p>After you see data, use the Flex debugger to see if the itemRenderer.data object has the type you expect. If the mapping from the PHP to ActionScript type is not correct, you&#8217;ll get instances of ProxyObjects and not VOObject.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-8406</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Wed, 20 Jan 2010 06:10:22 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-8406</guid>
		<description>Hello,

I actually had a problem with Flex 4 based ont his tutorial. I&#039;ve been struggling with it for hours. In the editedData function I trace event.itemRenderer.data and the value is null. I assign VOObject = event.itemRenderer.data AS VOObject and trace(VOObject) and the value is null. I&#039;m really stuck at this step and I&#039;d like to get some sleep soon, please help!</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I actually had a problem with Flex 4 based ont his tutorial. I&#8217;ve been struggling with it for hours. In the editedData function I trace event.itemRenderer.data and the value is null. I assign VOObject = event.itemRenderer.data AS VOObject and trace(VOObject) and the value is null. I&#8217;m really stuck at this step and I&#8217;d like to get some sleep soon, please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Data Paging with Flex and PHP in Flash Builder :: Flex Commando Adobe Flex Blog</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-7849</link>
		<dc:creator>Data Paging with Flex and PHP in Flash Builder :: Flex Commando Adobe Flex Blog</dc:creator>
		<pubDate>Tue, 08 Dec 2009 10:56:39 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-7849</guid>
		<description>[...] the client side, and map client side operations to server side operations (CRUD applications). This post is an introduction to the new Data/Services view from Flash Builder 4 (I am using a PHP server and [...]</description>
		<content:encoded><![CDATA[<p>[...] the client side, and map client side operations to server side operations (CRUD applications). This post is an introduction to the new Data/Services view from Flash Builder 4 (I am using a PHP server and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bravo</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-7228</link>
		<dc:creator>Bravo</dc:creator>
		<pubDate>Tue, 10 Nov 2009 05:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-7228</guid>
		<description>I get the following error:

1067: Implicit coercion of a value of type services.authors:VOAuthor to an unrelated type valueObjects:VOAuthor.	flexPHPAMF.mxml	flexPHPAMF/src	line 25	Flex Problem

this refers to:
authors.saveData(vOAuthor);

any ideas?</description>
		<content:encoded><![CDATA[<p>I get the following error:</p>
<p>1067: Implicit coercion of a value of type services.authors:VOAuthor to an unrelated type valueObjects:VOAuthor.	flexPHPAMF.mxml	flexPHPAMF/src	line 25	Flex Problem</p>
<p>this refers to:<br />
authors.saveData(vOAuthor);</p>
<p>any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Supbar</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-6788</link>
		<dc:creator>Supbar</dc:creator>
		<pubDate>Sun, 11 Oct 2009 05:56:19 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-6788</guid>
		<description>Thanks Mihai. Previously i prefer XML Data as datasource for my flex projects just because worrying php and mysql could be too though. But after read this post i decided to switch to php and mysql. Thanks a lot..</description>
		<content:encoded><![CDATA[<p>Thanks Mihai. Previously i prefer XML Data as datasource for my flex projects just because worrying php and mysql could be too though. But after read this post i decided to switch to php and mysql. Thanks a lot..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-6525</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Sat, 26 Sep 2009 19:23:41 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-6525</guid>
		<description>@Essential1

For the Web Root set the path to the PHP web server root (where the PHP files stay on your server).
For the Root URL set the URL to reach the Web Root (usually this is http://localhost)
For the Output folder location set the same path as the one for Web Root and add flexPHPAMF-debug.

These should work.</description>
		<content:encoded><![CDATA[<p>@Essential1</p>
<p>For the Web Root set the path to the PHP web server root (where the PHP files stay on your server).<br />
For the Root URL set the URL to reach the Web Root (usually this is <a href="http://localhost" rel="nofollow">http://localhost</a>)<br />
For the Output folder location set the same path as the one for Web Root and add flexPHPAMF-debug.</p>
<p>These should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Essential1</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-6520</link>
		<dc:creator>Essential1</dc:creator>
		<pubDate>Sat, 26 Sep 2009 10:23:01 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-6520</guid>
		<description>I must be the most behind in understand.  So I tried importing your flexPHPAMF.fxp into Flash Builder 4.  However I don&#039;t know how to configure the next screen &quot;Update Path Variables&quot;. Any assistance and further explanation would be most appreciated.</description>
		<content:encoded><![CDATA[<p>I must be the most behind in understand.  So I tried importing your flexPHPAMF.fxp into Flash Builder 4.  However I don&#8217;t know how to configure the next screen &#8220;Update Path Variables&#8221;. Any assistance and further explanation would be most appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-6497</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Thu, 24 Sep 2009 06:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-6497</guid>
		<description>@Joel Sisko

You mean like a search? It&#039;s simple, you just have to create a search method in the PHP class, and then in Flex to add a textbox and a button in order to fill in the search criteria and start the search.</description>
		<content:encoded><![CDATA[<p>@Joel Sisko</p>
<p>You mean like a search? It&#8217;s simple, you just have to create a search method in the PHP class, and then in Flex to add a textbox and a button in order to fill in the search criteria and start the search.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Sisko</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-6495</link>
		<dc:creator>Joel Sisko</dc:creator>
		<pubDate>Thu, 24 Sep 2009 03:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-6495</guid>
		<description>Mihai,

Great example; I have a question that I have not been able to figure out: your example as some others return all the records, how would one go about adding the code that would allow to return the records from a specific field where the data matched some user input from a text box?

Joel</description>
		<content:encoded><![CDATA[<p>Mihai,</p>
<p>Great example; I have a question that I have not been able to figure out: your example as some others return all the records, how would one go about adding the code that would allow to return the records from a specific field where the data matched some user input from a text box?</p>
<p>Joel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rakri</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-6459</link>
		<dc:creator>rakri</dc:creator>
		<pubDate>Thu, 17 Sep 2009 03:30:33 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-6459</guid>
		<description>Hi Mihai ,
Is it possible to create a tree with flex4 that data is given by a database?
Can you help me please.
Thank&#039;s
Rakri</description>
		<content:encoded><![CDATA[<p>Hi Mihai ,<br />
Is it possible to create a tree with flex4 that data is given by a database?<br />
Can you help me please.<br />
Thank&#8217;s<br />
Rakri</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mihai Corlan</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-6184</link>
		<dc:creator>Mihai Corlan</dc:creator>
		<pubDate>Tue, 01 Sep 2009 06:43:50 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-6184</guid>
		<description>@marcus

not at all. you can use any kind of PHP installation.</description>
		<content:encoded><![CDATA[<p>@marcus</p>
<p>not at all. you can use any kind of PHP installation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marcus</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-6180</link>
		<dc:creator>marcus</dc:creator>
		<pubDate>Tue, 01 Sep 2009 05:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-6180</guid>
		<description>Hey Mihai -

Is a localized server environment, such as MAMP, required to setup the PHP data/service? I can&#039;t for the life of me figure this out. All examples that I have found are using either MAMP or WAMP. What if you want to accomplish this on a production server?

Thanks in advance for any insight.</description>
		<content:encoded><![CDATA[<p>Hey Mihai -</p>
<p>Is a localized server environment, such as MAMP, required to setup the PHP data/service? I can&#8217;t for the life of me figure this out. All examples that I have found are using either MAMP or WAMP. What if you want to accomplish this on a production server?</p>
<p>Thanks in advance for any insight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diving into Flash Builder 4 - Mark Clemons</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-5639</link>
		<dc:creator>Diving into Flash Builder 4 - Mark Clemons</dc:creator>
		<pubDate>Tue, 28 Jul 2009 18:10:45 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-5639</guid>
		<description>[...] point I turned to a few blog posts, first this one by the morphic group, and then another one by Mihai Corlan. Using both of these I was able to create the PHP classes necessaisary to access the database and [...]</description>
		<content:encoded><![CDATA[<p>[...] point I turned to a few blog posts, first this one by the morphic group, and then another one by Mihai Corlan. Using both of these I was able to create the PHP classes necessaisary to access the database and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dashiell Gough</title>
		<link>http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/comment-page-1/#comment-5608</link>
		<dc:creator>Dashiell Gough</dc:creator>
		<pubDate>Mon, 27 Jul 2009 13:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://corlan.org/2009/06/12/working-in-flash-builder-4-with-flex-and-php/#comment-5608</guid>
		<description>In the &quot;Configure Operation Return Type&quot; dialog, sometimes the existing data type will not show up in the &quot;Use an existing action script or custom data type&quot; combobox.  You can select &quot;Create New Custom Data Type&quot; and type it there to work around this issue.</description>
		<content:encoded><![CDATA[<p>In the &#8220;Configure Operation Return Type&#8221; dialog, sometimes the existing data type will not show up in the &#8220;Use an existing action script or custom data type&#8221; combobox.  You can select &#8220;Create New Custom Data Type&#8221; and type it there to work around this issue.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

