Saturday, September 14, 2013

Flash Builder: Creating Simple Greetings App 4


Flash Builder 4 6 Creating Simple Greetings App 4
Using Flex to display Pop Up message on mobile platform.
1) Create a new project.
1a) Project name: Greetings4.
1b) Select Blank Application Template.
1c) Application server type: None/Other.
1d) Application ID: com.example.greetings4
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.
Add codes at line no. 9 ( a call to display an Alert message)
8) Rearrange the codes as follows.
Move <fx:Declarations> ...</fx:Declarations> down.
9) Add codes to <fx:Declarations> ...</fx:Declarations>
10) Add codes below <fx:Declarations> ...</fx:Declarations>.
11) Run.
11a) Set Run Configuration.
Target Platform: Google Android
Launch Method: On Desktop:Samsung Galaxy Ace
11b) If you didn't enter a name, the app will notify you.
11c) On the other hand if you enter your name, the app will greet you.



No comments:

Post a Comment