Categories
Featured jobs
» More ActionScript, Flash and Flex jobs.
» Advertise a job for free
Our network
Advertisement

 »  Home  »  Tutorials  »  Flash  »  Intermediate  »  Set up a simple IIS Server for Flash

Set up a simple IIS Server for Flash

By Peter McBride | Published 04/28/2008 | Intermediate | Rating:
Peter McBride
A 20-year veteran of multimedia design, Pete has been working with Flash since its FutureSplash infancy, garnering numerous awards and recognitions along the way. Considered a pioneer in whatever-it-is we actually do, one of his earliest designs was recently placed in the Smithsonian Institution as a landmark point in the history of computing. In addition to Flash, Pete is an avid JavaScript and CSS addict, with a specialization in cross-language interaction. 

View all articles by Peter McBride
Setting up a Simple IIS Server for Flash... Step by Step
The purpose of this tutorial is to create a simple client-server system, centered around Flash, from the ground up. I will do my best to make no prior assumptions of knowledge on the part of the reader, other than access to basic hardware and software, and a general working knowledge of Flash and Windows.

We're going to create a Flash swf, running from a web browser, which communicates with an Access database via ASP.NET over IIS, on a WinXP Pro Service Pack 2 laptop. If you don't know some of those terms, or have heard of them but never used them, this tutorial is for you!

Warning:

This is not intended to be a robust chatroom application, nor is it even intended to show off good coding technique. For that matter, it's not even intended to be used, period, except to serve as a basic primer on the various technologies involved. Come on in and get your feet wet; just stay out of the deep end!

Why did I pick this particular combo?

One word: Availability – most Flash developers, particularly those in corporate environments, will have easy access to these items. You've obviously got Flash, or you wouldn't be reading this; Windows XP (and Vista) are on something like 85% of all personal computers, and already come with IIS and ASP.NET; and finally Access comes with Microsoft Office, which most people have.

I know... Windows Server, Linux or Apache make for far better servers; just about anything makes a better database than Access; and nobody in their right mind would use a laptop as a platform… but it's about 80% likely that right now, you're using a similar configuration to read this and want to try the examples without any hassle. Hence my choice.

In the spirit of setting up a faked "chat room" client-server application in Flash, we'll be setting the IIS/ASP/DB thing as a "queue server" in which each user has his or her own table in the database, to which other users can add messages consisting of a "code" and "data", e.g. "CHAT" and "Wassup, G?". The client simply grabs everything from his table periodically, and does analysis of the contents in Flash, clearing the table for any more submittals by other users. This is useful for simple peer-chats and simple games. The example shown is NOT robust, NOT efficient, and NOT recommended for any practical use; rather, it is an introduction to the installation and integration of the various technologies involved, so that you, the Flash developer, can get started doing Peer-to-Peer and Client-Server communications with only a minimal knowledge of the technologies involved.

In other words… there are better ways of doing this; this is just one of the simpler ways. If you figure a better/simpler/cooler way, share it. If you know how to do this with other technologies, share it. And when giving tutorials, PLEASE give details - not everyone knows what you assume to be common knowledge (see the "aspnet_regiis bugfix", below… server guys all know this one by heart, but it took me 2 hours of digging to realize it was in my .Net folder and needed to be run from the command prompt).

 

Assumptions:


You know Flash well enough to geek around with server/xml connections a bit, and are working on a WinXP/Vista machine with Microsoft Office already installed. Just in case, you should have your OS and Office installation disks handy, in case you need to load a component. For setup, a network connection may also be required, but is not necessary once installation is complete.

Corporate Users: If you are using a computer supplied by a corporation, rather than your own personal computer, you should be aware of two things:

  • System Administrators typically cripple certain system functions on corporate machines: some of the functionality you need may be unavailable, and some of the screens shown may not exactly match what you see here. If you experience any problems, please speak with your system admin to see if anything can be done.
  • Corporations typically frown upon employees creating their own websites, even if for business purposes. Be sure to check that you are not violating any security practices/policies before attempting this tutorial.





Spread The Word / Bookmark this content

Clesto Digg it! Reddit Furl del.icio.us Spurl Yahoo!

Comments



Search Entire Site
Add to Google
Advertisements
Article Options
Latest New Articles
Set up a simple IIS Server for Flash
by Peter McBride

Day 1 at FITC Toronto 2008
by Anthony Pace

Simple reflection effect with AS2
by Jean André Mas

ActionScript.org Meets Josh Tynjala (aka dr_zeus)
by ActionScript.org Staff

Rapidly Create Online Flash Movies to Help Users Market, Sell and Support Software and Hardware
by Sabrina F

mailing list
Enter your email address:
mailing list
Subscribe Unsubscribe
© 2000-2007 actionscript.org! All Rights Reserved.
Read our Privacy Statement and Terms of Use...
Our dedicated server is hosted and managed by WebScorpion Webhosting.