
Create and run an application 105
The final application should look like the following:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Panel title="My Application" width="200" height="300">
<mx:Label text="Welcome to Flex!" mouseDownEffect="WipeRight"/>
</mx:Panel>
</mx:Application>
5.
Save the file.
Flex Builder automatically builds the application when you save a file. You can monitor
the build progress with the indicator at the lower-right corner of the window. You can
keep working while the application is building.
6. After the build is complete, click the Run button in the toolbar to start the application. If
you’re using the plug-in configuration of Flex Builder, select Run > Run As > Flex
Application.
TIP
You can preview your layout by clicking the Design button in the document toolbar
(see the image in step 2).
Commentaires sur ces manuels