The first thing I do when I start to prototype an application is to set up an organized location for my source files and exported files. I find that starting off in an organized way makes things move quickly and saves a lot of hassle later on. Also, you'll need to know information about the file system when configuring the application, so you might as well start there.
This page shows you how to get started by setting up your directory structure for the prototype.
A development server is a server that is used to stage a website during development. The development server is capable of running scripting languages and handling HTTP requests. It's ideal for prototyping PHP and similar languages that require a server to execute.
I use the IIS server that comes with the professional version of Windows. During the course of this article I will be referencing the IIS server for my server choice and PHP for my server scripting choice. In my experience these are the two easiest mediums to work with. In the end, the prototype provides a suggestion for a server-integration pattern whether the target language is PHP or not.
The first thing to know is that you'll be working with files in three different locations: the development server, your local files folder, and your local files dev folder (see Figure 1).

Figure 1. The development server folder on the left and the local files folder on the right.
The development server simulates the functionality and data available on the server. This includes a PHP file that simulates server logic and XML files that simulate server-generated data.
The master files and exported files are saved into a local files directory somewhere on your local hard drive. The local files folder holds the web-ready files, including exported Flash movies, HTML files, CSS files, and anything that would be included in the site files. I like to create a subfolder named dev to separate my source files from my exported files.
This article assumes that you have access to a local development server or network development server that has PHP installed on it. If you own Windows XP Professional or Windows Vista Ultimate, you can install the IIS server from the extra components supplied with the OS. PHP installers are available for free from www.php.net.
I'll refer to the server as the development server from here on out regardless of the type of server you're using. If you choose to use a server-scripting language other than PHP, you can implement the concepts behind the PHP file in the language of your choice.
Start by creating a new root folder in your development server. In my case, I'm creating a folder named abobe in the wwwroot folder of my IIS server.
I usually store my source files on my local hard drive or an external drive on my network. Pick a location that makes sense. If everything is configured correctly, you should be able to move the files around easily in the end.
Create a folder for your source files:
The dev folder holds the FLA file that defines the application and the ActionScript files that define the assets in the application (see Figure 2).

Figure 2. The file structure in the dev folder.
Now create the placeholder FLA file in the dev folder:
The local files folder holds the dev folder and the website files that will be transferred to the server in the end. I find it helpful to split the master files from the exported files so I can visualize everything, and it makes it quick to bundle a build of the prototype into a ZIP file during routine reviews.
Create placeholder files in the local files folder by publishing the Application.fla file.
Under the Formats tab in the Publish Settings dialog, add the ../ prefix before the Application.swf and Application.html File paths to change the path to which the files export to the folder above the dev folder.
../Application.swf ../Application.html

Figure 3. The placeholder files published to the local files folder.
At this point you have your file system defined. Some of your files will be edited in Flash, whereas others will be edited in Dreamweaver. Although you may find it's easiest to manage your Flash files in Flash, it's helpful to define a site in Dreamweaver to manage all the other files that make up the prototype.

Figure 4. Local and remote info for the site defined for the prototype in Dreamweaver.
Set up a Dreamweaver site for the source files:
http://localhost/adobe/. The localhost path is
a generic shortcut to the ISS development server running on my computer. If
you're running a development server locally, you should be able to use the http://localhost/ path or http://127.0.0.1/.C:\Inetpub\wwwroot\adobe\.Click OK to close the panel.
You should now see your local files folder in the Files panel in Dreamweaver.
You can now switch the Files panel view field from Local view to Remote view to see the files on the development server.

Figure 5. The Dreamweaver Files panel enables you to view the site's files and transfer files to the development server.
The ability to show both the local and remote view of the files and synchronize them in the Files panel is one of the strengths of Dreamweaver. As you move forward, you will build files locally and then synchronize them to your development server to see them run from a browser.