MACROMEDIA COLDFUSION MX 7.0.2-USING COLDFUSION MX WITH FLEX 2 Betriebsanweisung Seite 57

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 256
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 56
Developing applications 57
7. Add a script to extend a component.
8. Compile your application into a SWF file.
Deploying applications
You can deploy your application as a compiled SWF file or, if you have Flex Data Services,
you can deploy your application as a set of MXML and ActionScript files.
Deploying a SWF file
After you compile your application into a SWF file, you deploy it by copying it to a directory
on your web server or application server. Users then access the deployed SWF file by making
an HTTP request in the form:
http://hostname/path/filename.swf
Although you can directly request a SWF file, you typically incorporate the SWF file into a
web page by using a wrapper. The wrapper is responsible for embedding the Flex applications
SWF file in a web page, such as an HTML, ASP, JSP, or ColdFusion page. In addition, you
use the logic in the wrapper to enable history management, Express Install, and to ensure that
users with and without JavaScript enabled in their browsers can access your Flex applications.
For more information on wrappers, see Chapter 16, “Creating a Wrapper,” in Building and
Deploying Flex 2 Applications.
Deploying MXML and ActionScript files
If you have Flex Data Services, you can deploy your application as a set of MXML and
ActionScript files. When you deploy your application as a set of MXML and ActionScript files,
the user requests the main MXML file to start the application. The first time a user requests
the MXML file URL in a web browser, the server compiles the MXML code into a SWF file.
The server then sends the SWF file to the web browser where it is rendered in Flash Player.
Flex application files use the MXML filename extension. You store these files under the web
root directory of your J2EE application.
To request an application deployed as MXML and ActionScript files, the user makes a request
to the main MXML file in the form:
http://hostname/path/filename.mxml
NOTE
If you have Flex Data Services, you can deploy your application as a set of MXML
and ActionScript files. Upon receiving an HTTP request to an MXML file, Flex Data
Services compiles your application into a SWF file. For more information, see
Chapter 4, “Building a Flex Data Services Application,” on page 71.
Seitenansicht 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 255 256

Kommentare zu diesen Handbüchern

Keine Kommentare