MACROMEDIA FLEX BUILDER-USING FLEX BUILDER Bedienungsanleitung Seite 14

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 39
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 13
STEP 6: SET THE WINDOWEDAPPLICATION COMPONENT
ATTRIBUTES
The first component in the Force.com Flex desktop application template is a standard Flex WindowedApplication component.
The component defines the contents of an operating system window. Modify the attributes of the component as follows:
1. Open the Main.mxml file in src > (default package) if it is not already open.
2. Set the title attribute to "Account Manager". This controls the name that appears in the title bar of the application.
3. Set backgroundColor to "#e7e7e7", width to "800", height to "600", and frameRate to "31". These
attributes control the appearance of the window containing the application's UI elements.
4. Set the xmlns:local attribute to "*". You will use this later to reference another MXML file.
5. Set the currentState attribute to "login". This configures the application to display the login interface when the application
starts.
6. Your final code should look like this:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
showStatusBar="false"
xmlns:local="*"
backgroundColor="#e7e7e7"
width="800"
height="600"
frameRate="31"
currentState="login"
xmlns:flexforforce="http://flexforforce.salesforce.com"
title="Account Manager">
Note: The Account Manager application will have a status bar, but leave the showStatusBar attribute set to false.
We'll create the status bar later using a Force.com Flex component.
7. Save your work.
10
Seitenansicht 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 ... 38 39

Kommentare zu diesen Handbüchern

Keine Kommentare