<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to amfphp is killing me slowly</title><link>https://sourceforge.net/p/amfphp/discussion/247252/thread/aef2eda3/</link><description>Recent posts to amfphp is killing me slowly</description><atom:link href="https://sourceforge.net/p/amfphp/discussion/247252/thread/aef2eda3/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 22 Jul 2015 21:54:09 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/amfphp/discussion/247252/thread/aef2eda3/feed.rss" rel="self" type="application/rss+xml"/><item><title>amfphp is killing me slowly</title><link>https://sourceforge.net/p/amfphp/discussion/247252/thread/aef2eda3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for the reply. To help you help me I've posted the proxy  screenshot on stackoverflow - &lt;a href="http://stackoverflow.com/questions/31560132/cannot-view-data-returned-by-amfphp" rel="nofollow"&gt;http://stackoverflow.com/questions/31560132/cannot-view-data-returned-by-amfphp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Sorry, although I've read the page you suggested I'm still not clear on how to create a client stub. Also I'm confused how this stub would get around the  Flash error I keep getting which is as follows&lt;/p&gt;
&lt;p&gt;TypeError: Error #1010: A term is undefined and has no properties.&lt;br /&gt;
    at amf_fla::MainTimeline/handleResult()&lt;/p&gt;
&lt;p&gt;Once  I can see this data clearly in Flash and am able to display it in the end user it will be a massive leap forward. I'm really keen to get amfphp working as it would provide great benefit to the project that I've been working on but again I'm really struggling.. perhaps I'm being too ambitious!?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reggie The Dog</dc:creator><pubDate>Wed, 22 Jul 2015 21:54:09 -0000</pubDate><guid>https://sourceforge.net314bf1bc75afa84271c046265e57adfedd7d4ac5</guid></item><item><title>amfphp is killing me slowly</title><link>https://sourceforge.net/p/amfphp/discussion/247252/thread/aef2eda3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Its probably me. I'm probably doing something stupid but thank you so much for getting back to me so quickly. I used Charles proxy and it shows there is definitely data coming back and it is the data that I query.&lt;br /&gt;
amfphp - 2.2.1&lt;br /&gt;
OS windows 7 pro with IIS 7&lt;br /&gt;
PHP 5.3.29&lt;/p&gt;
&lt;p&gt;So, attached - screenshot of the Charles output&lt;/p&gt;
&lt;p&gt;I am so utterly in the dark here&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reggie The Dog</dc:creator><pubDate>Tue, 21 Jul 2015 17:30:00 -0000</pubDate><guid>https://sourceforge.net844987cbfe21cd9b37b35240308c5a9fb1baa49b</guid></item><item><title>amfphp is killing me slowly</title><link>https://sourceforge.net/p/amfphp/discussion/247252/thread/aef2eda3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I've downloaded amfphp 2.2.1 and its installed and working in the sense that I can get the return "« hello world from the server »"; response ttraced in Flash cs4 IDE. Unfortunately all examples on the web centre around earlier versions so I'm completely lost. problems thus far:&lt;br /&gt;
1. When I creat a public function __construct() for creating a PDO connection to my database it does not work. However, when I copy,paste the same lines from the construct into the function I am writing it works. which leads me to my next problem&lt;br /&gt;
2. I can get the data from my query using the method&lt;br /&gt;
public function getBds(){&lt;br /&gt;
        $con = new PDO('mysql:host=localhost;dbname=db;charset=utf8', 'MySQLConnect','MyConn');&lt;br /&gt;
        $con-&amp;gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_WARNING);&lt;br /&gt;
        $con-&amp;gt;setAttribute( \PDO::ATTR_EMULATE_PREPARES, false);&lt;br /&gt;
        $sqlQ = "SELECT * FROM buildings";&lt;/p&gt;
&lt;p&gt;From the flash ID via &lt;br /&gt;
function handleResult(respond:Object):void{&lt;br /&gt;
        trace("the server said : " + respond);&lt;br /&gt;
the trace results shows many &lt;span&gt;[object Object]&lt;/span&gt; which is great. I'm getting data. Fantastic!&lt;/p&gt;
&lt;p&gt;How do I get to read this data into Flash? From the few tutorials (which only use mysql_query) I've tried var h:Array = respond.serverInfo.initialData; but tihs just throws the error - TypeError: Error #1010: A term is undefined and has no properties.&lt;br /&gt;
    at amf_fla::MainTimeline/handleResult();&lt;/p&gt;
&lt;p&gt;Totally in the dark, and after 8 hours of plugging away at this, I'm failing to make any headway... All searches on the web reveal stuff that is circa 6-7 years old...&lt;/p&gt;
&lt;p&gt;Looking forward to some guidance &lt;br /&gt;
PS. I'm not a developer so be gentle with me.. amfphp hold great promise for me so I'm really keen to get this to work&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reggie The Dog</dc:creator><pubDate>Tue, 21 Jul 2015 11:10:19 -0000</pubDate><guid>https://sourceforge.net7c2f5719246f8a3cb2518959a1b79cde7fbb5851</guid></item></channel></rss>