Saturday, September 14, 2013

Flash Builder: Creating Simple Greetings App 2


Flash Builder 4.6 Simple Greetings App 2

1) Create a new Flex Mobile Project.
1a) Project Name: Greetings2.
1b) Application Template: Blank.
1c) Application server type: None.
1d) Application ID: com.example.greetings2
2) Project creation done.
3) Set Device to Samsung Galaxy Ace. Click Design tab.
4) Drag the components to the View as shown below.
5) Set the text as below:
Hello,
Please enter your name:
Submit
6) Select the components and set their ID as follows
label1
label2
text1
button1
label3
7) Switch to Source View.
You should be getting like below.
Notice that your x and y values may differ from the screenshot.
You can change the values directly in this window.
8)  Run your project.
8a) Select Run As/Mobile Application.
8b) Set configurations.
8c) Outcome.
9) Re-edit the code.
9a) Clode the simulator.
9b) Go to line, add new codes as follows:
Click=”label3.text=’hello’”
10) Run your app again.
10a) Outcome.
When you click Submit, you should get the string “hello” replacing the “…”.
11) Re-edit the code.
12) Run your app agaim.
12a) Enter your name in the text box and click Submit.
12b) outcome.

No comments:

Post a Comment