-
Book Overview & Buying
-
Table Of Contents
Flash with Drupal
In this section we will expand the Flash project from Chapter 2, and use that to create a custom audio player for Drupal. So, let's get started by copying the chapter2 directory, and then create a new directory called chapter5 that we will use to keep track of all of our changes. After we have done that, we should then rename the chapter2.fla project file to chapter5.fla. Once we have our new directory set up, we will need to open up both the chapter5.fla and the main.as file within our Flash IDE, where we will then direct our attention once again to the main.as file.
The first thing we will need to do is temporarily change the nodeId variable at the top of this script to the node ID of the audio node that we just created as follows:
// Declare our variables
var baseURL:String = "http://localhost/drupal6";
var gateway:String = baseURL + "/services/amfphp";
var sessionId:String = "";
var nodeId:Number = 8;
Now that this node ID is set to the correct...
Change the font size
Change margin width
Change background colour