Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flex > Flex 2 & 3

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-23-2006, 06:10 AM   #1
mantra
Member
 
Join Date: Apr 2006
Location: Sydney, Australia
Posts: 87
Send a message via MSN to mantra
Default flex 2 query result from cfc

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
mantra is offline   Reply With Quote
Old 07-23-2006, 05:26 PM   #2
LostInRecursion
Language Lizard
 
Join Date: Aug 2004
Location: Boston, MA
Posts: 103
Default

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
LostInRecursion is offline   Reply With Quote
Old 07-25-2006, 12:39 AM   #3
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

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?
tg is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 06:19 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.