| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Member
|
Hi all,
have just started getting into flex 2 and have a quick question. In the example i'm looking at to get flex 2 and coldfusion playing nice with each other the CFC returns a query to flex. Can you return a recordSet to flex in the same manner as you can with flash remoting, or does it require additional parameters. Cheers |
|
|
|
|
|
#2 |
|
Language Lizard
Join Date: Aug 2004
Location: Boston, MA
Posts: 103
|
Absolutely. In fact, I think it is MORE intuitive than AS 2.0 ever was.
Here's some sample code... In Flex, you write some code for a Remote Object. <mx:RemoteObject id="myService" destination="ColdFusion" source="myMapping.myCFCPath" result="resultHandler(event)" showBusyCursor="true" /> Some new parameters are "showBusyCursor" which basically creates a ticking clock animation while the data is being retrieved. Way cool. The "result" parameter maps to a corresponding Event Handler that you write inside two <mx:Script> tags. The "id" parameter corresponds to the Actionscript 3.0 variable which you will use to actually call the component's function. So, for example, myService.getSomething(); There is a nice little article on this on adobe.com, provided by our developer friends. Check it out at: http://www.adobe.com/devnet/flex/art...elloworld.html -LIR |
|
|
|
|
|
|
|
|
#3 |
|
done
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
|
big thanks to mantra for posting this question.
bigger thanks to lostinrecursion for posting the link. this has solved a number of problems i was facing. mucho mucho gracias.
__________________
tg --- what the hell was i thinking? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| bind remoting query result to comboBox | mantra | Flash Remoting | 5 | 06-28-2006 01:51 PM |
| Question about Flex 2 | vistasoul | Flex 2 & 3 | 1 | 02-28-2006 05:07 AM |
| Parse error getting php query result??? | emilioestevezz | ActionScript 2.0 | 0 | 10-11-2005 11:55 PM |
| code trouble | usa_hodson | Components | 13 | 03-21-2005 12:49 AM |
| communicating with loaded swf | usa_hodson | ActionScript 2.0 | 2 | 03-20-2005 04:25 PM |