| |
Before you can add a clicktag, you must create a button & add it to the timeline. If you have not yet created a button, please see: "How To Create a Button in Flash" |
| 1. |
Open your "Actions" palette. You will then see an area to paste in the code. |
| 2. |
Select the button on the workspace (with the actions palette open). |
| 3. |
Normally you would paste in the following clicktag code:
on (release) {
if (_level0.clicktag.substr(0,5) == "http:") {
getURL(_level0.clicktag, "_blank");
}
}
In this case though, you will replace that code (or the empty space in the actions palette) with this code:
on (release) {
getURL("javascript:popTheAd()");
}
|
| 4. |
Now save your flash file. |
| 5. |
Export your file as a .swf (version 6). |