De Lay-Out
Maak een nieuw AIR project aan en noem het iets van "LoginSysteem" of zo. Op de lege pagina sleep je een panel naar de stage en voeg je de labels "Usernaam" en "Password" toe. Hieronder zet je twee inputvelden. Geef de een de naam "username" en de andere "password", let er op de het inputveld password ook een wachtwoord is, dus met sterretjes. Voeg vervolgens een submit button toe met de ID "Submit" en het label "Logon". Als het goed is ziet je mxml code er zo uit:
Code (php)
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Panel x="147" y="107" width="213" height="169" layout="absolute" id="panel1" title="Inlogsysteem in AIR">
<mx:TextInput x="10" y="26" id="username"/>
<mx:TextInput x="10" y="69" id="password" displayAsPassword="true"/>
<mx:Text x="10" y="10" text="Username" id="text2"/>
<mx:Text x="10" y="49" text="Password" id="text1"/>
<mx:Button x="110" y="99" label="Logon" id="Submit" click="login_user.send()"/>
</mx:Panel>
</mx:WindowedApplication>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Panel x="147" y="107" width="213" height="169" layout="absolute" id="panel1" title="Inlogsysteem in AIR">
<mx:TextInput x="10" y="26" id="username"/>
<mx:TextInput x="10" y="69" id="password" displayAsPassword="true"/>
<mx:Text x="10" y="10" text="Username" id="text2"/>
<mx:Text x="10" y="49" text="Password" id="text1"/>
<mx:Button x="110" y="99" label="Logon" id="Submit" click="login_user.send()"/>
</mx:Panel>
</mx:WindowedApplication>
« vorige pagina | volgende pagina »
Inhoudsopgave
- PHP tutorials opties
- Nieuwste PHP tutorials
- PHP tutorial toevoegen
- Gesponsorde koppelingen

