• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Assembling the Booking Appli... > Creating an ActionScript Document in...

Creating an ActionScript Document in Dreamweaver MX 2004

One of the more interesting features of Dreamweaver MX 2004 is the capability to create an ActionScript document that controls a Flash movie. In the case of our booking facility, the code will not only control the various buttons and so on in the Flash movie, it will also be used to add data to the MySQL database and pull information from the database that is displayed in the Flash movie.

The main advantage to this approach, as opposed to having the code embedded in the Flash movie, is the ability to make changes as needed. When a Flash movie is posted to a web site, it is in the form of a non-editable file known as an .swf. If something is not working and you need access to the code, a .swf file essentially prevents access to that code. Unless you have the .fla file in your possession or it is readily accessible, you will have a huge problem on your hands. Keeping the code separate enables the coder to focus on the code without the need of the .fla file, enabling the project to be split up. The final movie can then be compiled with all the parts together. The other really neat thing about this technique is that the script only requires one line of code in the Flash movie in order to execute.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint