This is a CF error. I don't know much about CF but the error is saying that you 
are not allowed to access that method remotely.

Is there some setting in CF that tells it which methods are remotely 
accessible? Is the crossdomain file set up correctly?

>From my point of view, it has to be some configuration problem with CF.

Of course, I could be wrong (And probably are) so any CF masters like to jump 
in here?

--- In [email protected], "ZIONIST" <stinasius@...> wrote:
>
> Hi guys below is the code i came up with but i get this error 
> "faultCode:Server.Processing faultString:'Unable to invoke CFC - The method 
> 'getTweets' in component 
> C:\ColdFusion9\wwwroot\twiiterCFlex\src\cfcs\twitter.cfc cannot be accessed 
> remotely.' faultDetail:''"
> 
> flex code
> =========================
> 
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
>                               layout="absolute"
>                               creationComplete="tweetSvc.getTweets()">
> 
>       <mx:Script>
>               <![CDATA[
>                       import mx.rpc.events.ResultEvent;
>                       import mx.rpc.events.FaultEvent;
>                       import mx.collections.ArrayCollection;
>                       import mx.controls.Alert;
>                       import mx.managers.CursorManager;
>                       [Bindable]
>                       private var tweetAr:ArrayCollection;
> 
>                       private function tweetResult(event:ResultEvent):void
>                       {
>                               tweetAr=event.result as ArrayCollection;
>                       }
>               ]]>
>       </mx:Script>
> 
>       <mx:RemoteObject id="tweetSvc"
>                                        destination="ColdFusion"
>                                        source="twiiterCFlex.src.cfcs.twitter"
>                                        showBusyCursor="true"
>                                        
> fault="CursorManager.removeBusyCursor();Alert.show(event.fault.message)">
> 
>               <mx:method name="getTweets"
>                                  result="tweetResult(event)"/>
> 
>       </mx:RemoteObject>
> 
>       <mx:List id="twitterFeed"
>                        dataProvider="{tweetAr}"
>                        itemRenderer="itemRenderers.tweetFeedRenderer"/>
> 
> </mx:Application>
> 
> 
> coldfusion cfc
> ===============================
> 
> <cfcomponent>
>     <cffunction name="getTweets" access="public" returntype="query">
>        
> 
>         <cfset var qryGetTweets = "" />
> 
>         <cffeed source="http://twitter.com/status/user_timeline/RealtrOnline"; 
> properties="meta" query="qryGetTweets" />
> 
>         <cfreturn qryGetTweets />
>     </cffunction>
> </cfcomponent>
> 
> What am i missing?
>


Reply via email to