Re: [flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-15 Thread Tom Chiverton
On Monday 15 Dec 2008, stinasius wrote:
 please guys am stuck. can someone please give an example of a cfc

Tracy already explained how to do it, and you didn't follow that advice.
Why would anyone else offer further help ?

-- 
Tom Chiverton
Helping to appropriately utilize eyeballs





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

* To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



RE: [flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-12 Thread Tracy Spratt
Your next steps:

*   Create a simple php page that takes an http request, reads the
UserId and Password request parameters.  Allow for either form(POST) or
querystring(GET) parameters.  Keep the authorization logic simple to
start with, by hardcoding a userid and password to match.  Have the php
page return an xml response, something like: loginresponse
status=success /  Make status=fail if the user/pwd do  not match.
Test this page in a browser.
*   Declare an HTTPService tag in your main app.  Set
resultFormat=e4x.  Declare result and fault handlers. Set the url to
the tested php page above 
*   Define a tryLogin function that takes user and password as
arguments.  In that function, build a request object with userId and
password properties and assign the values passed into the function.
Invoke send on the HTTPService.
*   When user clicks the login button, call the tryLogin function,
passin in the values entered by the user.
*   In the result handler, read the event.result as XML, and look at
the @status.  If success, set the ViewStack.selectedIndex to show the
Admin view

 

Tracy

 

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Friday, December 12, 2008 5:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: flex login popup help needed please

 

Hi Tracy you asked hw far i was, well i decided to redo it from
scratch so that i can get guidance. now i have 4 mxml files. one is
the main application(login_example.mxml) and there is the Home.mxml
which is the default view, the Admin.mxml which requires one to login
in order to view it and a login.mxml which is the popup login form.
now from there all a ask 4 is a simple cfc that will do the
authentication and also how to use it in my flex app. here is my code.

login_example.mxml
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute xmlns:view=components.*
mx:states
mx:State name=Log Out
mx:SetProperty target={label1} name=text value=Log Out/
/mx:State
/mx:states
mx:Script
![CDATA[
import components.*;
import flash.events.MouseEvent;
import mx.managers.PopUpManager;
import mx.core.IFlexDisplayObject;
private var myLoginForm:IFlexDisplayObject;
private function showPopUp(e:MouseEvent):void {
myLoginForm = PopUpManager.createPopUp(this, Login, true);
}
]]
/mx:Script
mx:Label x=0 y=0 text=Sign In id=label1 buttonMode=true
useHandCursor=true mouseChildren=false click=showPopUp(event)/
mx:ViewStack x=0 y=26 id=viewstack1 width=100% height=100%
view:Home id=home/
/mx:ViewStack 
/mx:Application

Home.mxml

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=100%
height=100% backgroundColor=#ff8000

/mx:Canvas

Admin.mxml

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=100%
height=100% backgroundColor=#40

/mx:Canvas

login.mxml

?xml version=1.0 encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute title=Login Form
creationComplete=PopUpManager.centerPopUp(this)
mx:Script
![CDATA[
import mx.managers.PopUpManager;
]]
/mx:Script
mx:Form x=0 y=0
mx:FormItem label=User Name:
mx:TextInput/
/mx:FormItem
mx:FormItem label=Password:
mx:TextInput/
/mx:FormItem
/mx:Form
mx:ControlBar
mx:Button label=Login/
/mx:ControlBar

/mx:TitleWindow

please guys this would mean alot to me. thanks for sticking up to this
point.

 



RE: [flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-12 Thread Tracy Spratt
Just change the word php to cold Fusion.  The rest of the solution
is the same.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Friday, December 12, 2008 8:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: flex login popup help needed please

 

hi tracy i dont know php. i use coldfusion. a coldfusion remedy would
be good. thanks

 



Re: [flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-10 Thread Tom Chiverton
On Wednesday 10 Dec 2008, stinasius wrote:
 guys am sorry for sounding so naive but i have still failed to make
 successful the child in the view stack should change to admin view.
 can someone please and i say please help me with this proble?

Assuming you've got up to speed with remoting from Flex to ColdFusion, the 
steps are fairly simple.
Flex reads the username and password and calls a CFC via. RemoteObject.
CF checks them against whatever and returns the result.
The Flex result handler checks the result and sets the 
viewStack.selectedIndex.

-- 
Tom Chiverton
Helping to continually synergize global distributed proactive systems





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



RE: [flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-10 Thread Tracy Spratt
Yep, that about says it.

Stinasius, how far have you gotten?  What is not working?

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Chiverton
Sent: Wednesday, December 10, 2008 8:01 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: flex login popup help needed please

On Wednesday 10 Dec 2008, stinasius wrote:
 guys am sorry for sounding so naive but i have still failed to make
 successful the child in the view stack should change to admin view.
 can someone please and i say please help me with this proble?

Assuming you've got up to speed with remoting from Flex to ColdFusion, the 
steps are fairly simple.
Flex reads the username and password and calls a CFC via. RemoteObject.
CF checks them against whatever and returns the result.
The Flex result handler checks the result and sets the 
viewStack.selectedIndex.

-- 
Tom Chiverton
Helping to continually synergize global distributed proactive systems





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links







Re: [flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-03 Thread Nate Beck
Look at this blog post, it shows how to get setup with ColdFusion and Flex.

http://blogs.adobe.com/flexdoc/2007/02/hello_world_application_for_fl_1.html

On Tue, Dec 2, 2008 at 11:52 PM, stinasius [EMAIL PROTECTED] wrote:

   hi am confused on what to do because am using bruce phillps example
 where the username and password are stored in a database(access) and a
 cfc service object(Memberservice.cfc) is used to interact with the
 database and flex UI. anyone with a knowledge on hw to do this with
 flex and coldfusion? by the way thanks for taking time to help me.