I cannot believe we still have to wrestle with issues like this. CF is  
in version 8 now for crying out loud and Remoting has been around how  
many years? Yet in almost every project that requires me to use Flex/ 
Flash and CF I discover new issues or stupidly difficult tasks (ever  
tried to set up Remoting over SSL in Flex by following the docs?)   
such as this one described here.

Sorry about the rant but this is starting to get boring. Adobe needs  
to dedicate some efforts and get both technologies to play together  
much more smoothly without requiring rocket scientific skills for both  
Flex and CF.

There, that's me done for tonight.


Stefan (who loves both Flex and CF)




On 21 Feb 2009, at 19:39, Douglas Knudsen wrote:

>
> Whenever I hear mention of onRequest(), onRequestStart(),  
> onRequestEnd() and
> Flex remoting in the same sentence, its time to question life and  
> everything
> else.  They don't mix well.  Check out saythis blog post for one
> http://www.sargeway.com/blog/index.cfm/2006/11/29/OnRequest-and-OnRequestStart-Discussion
>
> HTH
>
> peas
>
>
>
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>
>
> On Sat, Feb 21, 2009 at 2:12 PM, Jordan Farr <[email protected] 
> >wrote:
>
>>
>> Nimer, Paul, and David,
>>
>>
>>
>> Thank you for your replies.
>>
>>
>>
>> My Application.cfc (CF8) is indeed in a folder just above my CFCs  
>> folder. I
>> know the Application.cfc functions are being called because my CFM  
>> page
>> (let's call it dsp_CFCTestBody.cfm) displays with the header and  
>> footer that
>> are included in onRequestStart() and onRequestEnd() which are both  
>> part of
>> Application.cfc. In other words, Application.cfc is in the right  
>> place and
>> is being called correctly (unless I'm missing something here).
>>
>>
>>
>> The problematic part is this: My dsp_CFCTestBody.cfm invokes the  
>> exact same
>> function (myFunction) in the exact same CFC (myCFC) but in two  
>> different
>> ways; in CFML using CFINVOKE and from a Flash movie built in Flex 3  
>> using
>> Flash remoting. All myFunction does is return a value in SESSION  
>> scope, so
>> basically <CFRETURN SESSION.someVar>. When myFunction is called in  
>> CFML, it
>> returns someVar correctly, but when it is called via Flash  
>> remoting, it
>> barks SESSION is undefined. I know the function is being called  
>> correctly
>> from the Flash movie because if I change <CFRETURN SESSION.someVar>  
>> to
>> <CFRETURN "Hello World!"> in myFunction, I'll get "Hello World!" in  
>> the
>> Flash movie.
>>
>>
>>
>> I hope this clarifies the issue.
>>
>>
>>
>> Is there an XML setting somewhere I need to worry about? Is there  
>> something
>> I have to change in CF8 Administrator (besides the obvious Enable  
>> Flash
>> Remoting)?
>>
>>
>>
>> Thank you all.
>>
>>
>>
>> JF
>>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/flex/message.cfm/messageid:5788
Subscription: http://www.houseoffusion.com/groups/flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to