Adobe® Flash® CS3 Professional
To assign a URL to a button…
Step 1. Open FLA file.
1.1. Click in the Lock column to the right of a layer's name to unlock
the Buttons layer.
Step 2.
2.1. Select the Arrow tool
2.2. In the map area, click on the country to select it. E.g. click on West Region.
Step 3.
In the "Actions - Button" panel (F9) at the bottom type the following:
on (press) {
getURL(‘http://www.MySite.com/’);
}
where "http://www.MySite.com" is the URL of your target page.
NOTE:
getURL(‘url’, window, ‘variableMethod’)
url - The URL from which to obtain the document.
window - An optional parameter specifying the window or HTML frame that the document should
load into. You can enter the name of a specific window or choose from the following reserved
target names:
_self specifies the current frame in the current window.
_blank specifies a new window.
_parent specifies the parent of the current frame.
_top specifies the top-level frame in the current window.
variableMethod - A GET or POST method for sending variables. If there are no variables, omit
this parameter. The GET method appends the variables to the end of the URL, and is used for
small numbers of variables. The POST method sends the variables in a separate HTTP header
and is used for sending long strings of variables.
Step 4.
4.1. Repeat steps 3 for other buttons. E.g. for Central Region Button.
4.2. Lock the Cities Layer and the City Buttons Layer.
Step 5.
Save the file (File > Save) and publish it (File > Publish).
|