1) In the Welcome Screen, choose "New Flex Mobile Project". Or, alternatively, in main application window, go to menu File/New/Flex Mobile Project.
2) New Project Settings.
2a) Project Location.
Project Name: FlexMobile1.
Accept other default settings.
Click Next.
2b) Mobile Settings.
Accept all default settings.
Click Next.
2c) Server Settings.
Accept all default settings.
Click Next.
2d) Build Paths.
Type a valid name for the package id, e.g. com.example.flexmobile1.
Click Finish.
2e) New project was successfully created.
2f) Notice that there are two files created, i.e
i) FlexMobile1.mxml
You can run this file as a mobile application.
and
ii)FlexMobile1HomeView.
In contrast to (i), you cannot run this file as a mobile application directly.
3) Run the project.
3a) While selecting the file FlexMobile1.mxml in the main panel, click Run/Run As/Mobile Application.
3b) Run Configuration dialog window pops up with error message.
You have to select a launch method.
3c) Change Launch method to Apple iPhone4.
Click Apply.
Click Run.
3d) iPhone emulator pops up.
3e) Close the emulator.
4) Change Run Configuration to BlackBerry Platform.
4a) Click the drop-down arrow besides the Run icon and choose Run Configurations..
4b) Click Mobile Application. Then, Click New.
4c) Change Target Platform and Launch method.
Click Apply.
Click Run.
4d) BlackBerry PlayBook emulator pops up.
4e) Close the emulator.
5) Change Run Configuration to Android Platform.
5a) Click the drop-down arrow besides the Run icon and choose Run Configurations...
5b) Click Mobile Application. Then, Click New.
5c) Change Target Platform and Launch method.
Click Apply.
Click Run.
5d) Samsung emulator pops up.
6) Run options.
6a) If you click the drop-down arrow besides the Run icon, you would notice that there are 3 run options available.
6b) You can change the name by going to the Run Configurations item in the Run drop-down menu..
6c) Having meaningful names help you to quickly select the desired emulator.
No comments:
Post a Comment