<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - CF11 Actionscript 3 - I'm migratiing from AS2 and can't use REMOTING, so how to use cfc's and process their results?</title>
    <link>https://forums.adobe.com/community/coldfusion/coldfusion_flash_integration?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 12 Jun 2014 06:13:48 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-06-12T06:13:48Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>CF11 Actionscript 3 - I'm migratiing from AS2 and can't use REMOTING, so how to use cfc's and process their results?</title>
      <link>https://forums.adobe.com/message/6452119?tstart=0#6452119</link>
      <description>&lt;!-- [DocumentBodyStart:a05dc3c4-1f54-4b20-b6e2-d171691adac4] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;The CF11 integration notes describe how to do use Flash Remoting. I use that in my AS2 code and it works fine. I'm trying to migrate to AS3 where there is no Remoting. I have done the following:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;import flash.net.*;&lt;br/&gt;import flash.events.*;&lt;/p&gt;&lt;p&gt;var CFCService = new NetConnection()&lt;br/&gt;CFCService.objectEncoding = 0;&lt;br/&gt;&lt;span&gt;CFCService.connect("&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://localhost:8500/flashservices/gateway/" rel="nofollow"&gt;http://localhost:8500/flashservices/gateway/&lt;/a&gt;&lt;span&gt;")&lt;/span&gt;&lt;/p&gt;&lt;p&gt;var responder2 = new Responder(getActiveUsers_Result, onFault);&lt;br/&gt;CFCService.call("cfc.SyslockComponents.getActiveUsers", responder2);&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;stop();&lt;/p&gt;&lt;p&gt;&lt;br/&gt;function getActiveUsers_Result(result:Object):void &lt;br/&gt;{ &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace("getActiveUsers Result Status: " + result.STATUS);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var property:String in result)&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trace(property +" : " +result[property]);&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The OUTPUT of my program shows the contents of the STRUCT returned by the CFC:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;getActiveUsers Result Status: ALLOK&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; the CFC completed successfully&lt;br/&gt;RECCOUNT : 1&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; There was one record select by query&lt;br/&gt;DETAILS : [object Object]&amp;nbsp; /&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; this contains the query results&lt;br/&gt;STATUS : ALLOK&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I don't know how to process DETAILS because RECORDSET is not available in AS3.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a05dc3c4-1f54-4b20-b6e2-d171691adac4] --&gt;&lt;img src='/beacon?t=1415918386188' /&gt;</description>
      <pubDate>Thu, 12 Jun 2014 04:58:49 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6452119?tstart=0#6452119</guid>
      <dc:date>2014-06-12T04:58:49Z</dc:date>
      <clearspace:dateToText>5 months 3 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

