Developing Rich Internet Applications with Macromedia Flex

flashyfarctateInternet and Web Development

Jul 30, 2012 (5 years and 17 days ago)

244 views

Appendix A: DRIAFX150 Setup Guide
This document contains directions for those wishing to install the necessary

applications and files for the Developing Rich Internet Applications with

Macromedia Flex course. Read this entire document before you attempt to

install any of the software or course files. This document covers the

following:

Minimum system requirements

Required software

Software installation and testing
Minimum System Requirements
Following are system requirements for Flex on various platforms and

application servers:
Windows

Intel Pentium III processor or higher (1 GHz recommended)

512 MB RAM (1 GB recommended)

400 MB hard-disk space

Microsoft Windows 2000 Server, XP Pro, 2003 Standard or 2003

Server
Linux

Intel Pentium III processor or higher (1 GHZ recommended)

512 MB RAM (1 GB recommended)

400 MB hard-disk space

Red Hat Linux AS 2.1 or 3.0
©
2004 Macromedia, Inc.
DRIAFX150 Setup -
1
Developing Rich Internet Applications with Macromedia Flex
Unix

SPARC

512 MB RAM (1 GB recommended)

400 MB hard-disk space

Sun Solaris 8 or 9
Supported Application Servers

Macromedia JRun 4 Updater 2

IBM WebSphere Application Server 5

BEA WebLogic Server 7 or 8.1

Tomcat 4.1.29 or 5.0.18
Java Virtual Machine (JVM) Support

Sun 1.3.1, Sun 1.4.x

IBM 1.3 or 1.4 for use with WebSphere

BEA JRockit 1.4 for use with WebLogic
Client Requirements
Flash Player 7 or higher is required to view applications created with

Flex.
Required Software

Macromedia Flex

MySQL 4.1

MySQL Query Browser

MySQL Administrator

Flex Builder
DRIAFX150 Setup -
2


©
2004 Macromedia, Inc.
DRIAFX150 Setup Guide
Software Installation and Testing
Use the following instructions to install and test the needed software:
Installing Flex
1.
Run the Flex
flex-15-win.exe
install file.
2.
Accept defaults until the following screen appears. Do not enter a

serial number to use the developer edition.
3.
Change the install directory to
C:\mmcourses\Flex
.
©
2004 Macromedia, Inc. DRIAFX150 Setup -
3
A -
3
Developing Rich Internet Applications with Macromedia Flex
4.
Select the
Macromedia Flex with integrated JRun 4
option.
5.
Finish the installation.
6.
Start the Flex server by selecting
Start

Programs

Macromedia

Flex

Start Integrated Flex Server
.
7.
Browse to
http://127.0.0.1:8700/samples/
.
8.
To be sure Flex and JRun installed correctly, in the samples click on

Flex Explorer, and you should see
Hello World
displayed on the

Sample
tab.
Installing the Updater
Install the latest updater available. You can download the latest updater

from
http://www.macromedia.com/support/flex/
.
Making a Backup of the Configuration File
Browse to
C:\mmcourses\Flex\jrun4\servers\default\flex\WEB-INF\flex

and make a copy of the configuration file you will be altering:

flex-config.xml
DRIAFX150 Setup -
4


©
2004 Macromedia, Inc.
DRIAFX150 Setup Guide
Making Changes to the Configuration File to

Allow Remote Data Access
1.
Open in a text editor
flex-config.xml
from

C:\mmcourses\Flex\jrun4\servers\default\flex\WEB-INF\flex
.
2.
On or around line 238, locate the line that reads
<url></url>
. Replace

it with the following:
<url>http://{localserver}/*</url>
3.
On or around line 322, locate the line that reads
<url></url>
. Replace

it with the following:
<url>http://{localserver}/*</url>
4.
On or around line 373, locate the line that reads
<source></source>
.

Replace it with the following:
<source>driafx150.*</source>
5.
Save the file and close it.
Note: If you are using the default installation with JRun, the Flex

application will automatically undeploy and then deploy again when

flex-config.xml is modified.
Installing MySQL and the Data
1.
Download
MySQL 4.1
from
http://dev.mysql.com/downloads/
.
2.
Start the installation and select the Typical setup.
©
2004 Macromedia, Inc. DRIAFX150 Setup -
5
A -
5
Developing Rich Internet Applications with Macromedia Flex
3.
Install the program.
4.
Skip the sign up process. You can do this later.
5.
At the end of the installation, choose to configure the server.
6.
Begin the configuration process.
DRIAFX150 Setup -
6


©
2004 Macromedia, Inc.
DRIAFX150 Setup Guide
7.
Be sure to choose Standard Configuration.
8.
Install MySQL as a service, using the default service name.
©
2004 Macromedia, Inc. DRIAFX150 Setup -
7
A -
7
Developing Rich Internet Applications with Macromedia Flex
9.
Modify the security settings, using
password
as the password.
10.
Finally, execute the configuration settings.
11.
Unzip
driafx150_data_20Dec04.zip
to
C:\mysql\data
or to the
data

folder wherever you installed MySQL.
12.
Install the MySQL JDBC driver in your Flex server by copying the file

mysql-connector-java-3.0.11-stable-bin.jar
in

C:\mmcourses\Flex\jrun4\servers\default\flex\WEB-INF\lib
.
DRIAFX150 Setup -
8


©
2004 Macromedia, Inc.
DRIAFX150 Setup Guide
Installing the MySQL visual tools
Note: Although not technically used in the course, you will want a way to

be sure data has been written to the database, and having a visual tool

available will be helpful. It may also turn out to be helpful to have an

administration tool available.
1.
Download MySQL Query Browser and MySQL Administrator from

the
Graphical clients
section of
http://dev.mysql.com/downloads/.
2.
Install the programs.
Installing the Course Files
1.
Unzip the
driafx150_handsOnFiles_20Dec04.zip
file to

C:\mmcourses\Flex\jrun4\servers\default\flex.
2.
Stop and restart JRun by first closing the console that was opened

when you started the JRun server. Then select
Start

Programs


Macromedia

Macromedia Flex

Start Integrated Flex Server
.
3.
To test the course files installation, browse to the location

http://127.0.0.1:8700/flex/driafx150/solution/RMain.mxml
. You

should see the data grid below the map populated with restaurant

names. (This may take some time depending upon the speed of your

machine, so be patient.) When you click on a restaurant name, you

should see the restaurant's details displayed on the right side of the

screen.
You should also see a list of checkboxes of restaurant categories

displayed when you adjust the height of the bottom section on the left

side of the screen. The checkboxes will be grayed out by default.
Installing Flex Builder
Install Flex Builder to the default directory.
©
2004 Macromedia, Inc. DRIAFX150 Setup -
9
A -
9