Hello,
I think I have a problem with my action script in Flash 8 when I try and add a URL to a button.
I have tried a few different tutorials to teach me how to add a URL to a button, and the latest one I am using is:
Under section 7 it shows me how to add a URL. Section 8 however shows another pop up box where I should be adding URL details. I do not get the box shown in section 8, only some code in the action script box which is:
getURL();
I tried typing the code in manually as:
getURL(" "_blank");
but then I receive the following error:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on handler
getURL(" "_blank");
Total ActionScript Errors: 1 Reported Errors: 1
Does anyone know why this may be happening?
I think I have a problem with my action script in Flash 8 when I try and add a URL to a button.
I have tried a few different tutorials to teach me how to add a URL to a button, and the latest one I am using is:
Under section 7 it shows me how to add a URL. Section 8 however shows another pop up box where I should be adding URL details. I do not get the box shown in section 8, only some code in the action script box which is:
getURL();
I tried typing the code in manually as:
getURL(" "_blank");
but then I receive the following error:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must appear within on handler
getURL(" "_blank");
Total ActionScript Errors: 1 Reported Errors: 1
Does anyone know why this may be happening?