bonsoir a tous;
je suis un etudiant debutant en flex j'ai fai une application web qui traite les contrats d'une assurance. tout marche en bonne etat mon seul probleme c'est que je ne sais pas encore comment lié le panel d'authentification a la base.
pour les autres pages j'ai utilisé un HTTPService mais dans le cas de l'authentification je ne sais pas encore si ça marche ou pas.
voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" borderStyle="none" alpha="1.0" cornerRadius="0"> <mx:Validator id="chp_identifiantValid" source="{chp_identifiant}" property="text" required="true" /> <mx:Validator id="chp_mdpValid" source="{chp_mdp}" property="text" required="true" /> <mx:Panel layout="absolute" title="Authentification" horizontalCenter="0" verticalCenter="0" height="258" backgroundAlpha="1.0"> <mx:Form x="0" y="24" height="86"> <mx:FormItem label="Identifiant" fontWeight="bold" required="true" > <mx:TextInput id="chp_identifiant"/> </mx:FormItem> <mx:FormItem label="Mot de passe" fontWeight="bold" required="true"> <mx:TextInput id="chp_mdp" displayAsPassword="true"/> </mx:FormItem> </mx:Form> <mx:FormItem width="60" y="118" x="28"> </mx:FormItem> <mx:Button label="Enter" x="218" y="118" /> <mx:Image source="maghrebia.jpg" horizontalCenter="0" bottom="22" width="194" height="39"/> </mx:Panel> </mx:Application>
Partager