Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 04-22-2010, 10:58 PM   PM User | #1
loki421
Regular Coder

 
Join Date: Feb 2009
Location: Worcester
Posts: 172
Thanks: 13
Thanked 6 Times in 6 Posts
loki421 is an unknown quantity at this point
Flex login with CFC?

Hi all,

I want to have a log in feature on an HTML site that features a Flex component for users to login. This uses ColdFusion.

I could do this just using a normal HTML form, but would rather have a pretty Flex box where users can log in.

Ok, so what i was wondering is
a) can this be done?
and
b) how would i go about doing this?

I've set up an Application.cfm that handles the user login from a normal HTML form, and tested it and it works ok.

What i'd like to know is how can i do this in a CFC from Flex? I have the query in the CFC, and the arguments passed from Flex are just #username# and #password#.

These are used to query the database and return an entry that matches. What should i pass back to Flex to tell it that the user is valid, and to get a new url (members area), and pass the session to the HTML so they can access their account? Does this make sense? It's kinda going through the Flex app and out to HTML.

Hope someone can point me in the right direction

Many thanks in advance all!
loki421 is offline   Reply With Quote
Old 04-23-2010, 01:13 PM   PM User | #2
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,604
Thanks: 2
Thanked 399 Times in 392 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
You're looking for the RemoteObject component. Here is a document that has specific examples for CFCs: http://www.richinternet.de/blog/down...xCFC-part1.pdf
Inigoesdr is offline   Reply With Quote
Old 04-23-2010, 01:22 PM   PM User | #3
loki421
Regular Coder

 
Join Date: Feb 2009
Location: Worcester
Posts: 172
Thanks: 13
Thanked 6 Times in 6 Posts
loki421 is an unknown quantity at this point
Quote:
Originally Posted by Inigoesdr View Post
You're looking for the RemoteObject component. Here is a document that has specific examples for CFCs: http://www.richinternet.de/blog/down...xCFC-part1.pdf
Thanks for that, but managed to crack this last night. Bit of a long way around but basicaly i build a URLRequest in Flex from the returned query, then pass that url to a loginProcess.cfm page where i create the session.

But thanks for the info, always good to brush up on things like that.

Cheers
loki421 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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


All times are GMT +1. The time now is 11:51 AM.


Advertisement
Log in to turn off these ads.