Are you using application.cfc or .cfm?

-----Original Message-----
From: Naim El-Far [mailto:[email protected]] 
Sent: Friday, February 20, 2009 5:00 PM
To: flex
Subject: CFCs called from Flex are not seeing APPLICATION, SESSION, or other
shared-scope variables


Hello all,

 

When I call my CFCs (CF8) using CFML from a CFM page, I can access
APPLICATION and SESSION variables no problem (i.e. the CFC is aware that it
is part of a given application that has some session variables). However, a
Flash movie built with Flex 3, sitting on the same CFM page as my working
CFML code, calling the same CFC as my CFML code, does not work because it
says that variables APPLICATION, SESSION, etc are undefined.

 

I am not sure how to fix this issue. 

 

I know the CFC is accessible from the Flash movie because if I change the
CFC code to return a string "Hello World!" and ask the Flash movie to
Alert.show() it, it shows "Hello World!", so the lines of communications are
open. It is as if when a CFC is called via Flash remoting from Flex (I'm
using Remote Objects in Flex), the CFC doesn't know it is part of an
Application instance and instead acts statically.

 

Any ideas or suggestions would be greatly appreciated.

 

Happy Friday to all.

 

_________________________________________________________________
Windows Live Messenger. Multitasking at its finest.
http://www.microsoft.com/windows/windowslive/products/messenger.aspx



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:5783
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