
I’ve been reading about web services for years. They have often been discussed in articles in technical journals and referred to on websites. However I haven’t actually had any occasion to make direct use of web services in my own coding. I figured out it was time to dive in and try to use some web services myself. I believe you get a better understanding of a topic like this when you work on code rather than just read about the process. In this article I will describe the steps I went through to access web services in Macromedia Director, working with several examples which are based on SWFs created in Macromedia Flash. I will then access some web services using the Director programming languages.
Web services provide a way to share information. So you want to use web services in Director? This article describes how and provides examples using SWF cast members as well as examples completely scripted in Director. The world of web services is a big one, and the sample code doesn’t cover all the possibilities. But this article will get you started working with them in Director.
There are quite a few Macromedia Developer Center articles about web services, but none of them discuss using web services in Director. You may find the following articles to be helpful in understanding the basics of web services and issues such as proxy servers that won't be covered in this article.
To complete this tutorial you will need to install the following software and files:
Note: Although not required for the examples, if you wish to modify some of the example Flash files you will need Macromedia Flash MX Professional 2004.
Note: This ZIP file contains the following sample files:
To get the most out of this article, you should be familiar with the basics of programming in Macromedia Director. Although some Flash examples will be discussed, and several SWF files used in Director, you do not need to have Macromedia Flash to work with the examples.