macromedia flash sitedesign:
Is the banner in flash? Create an invisible button over the whole banner with on(press){ getURL("http://www.yourwebsite.com") } when a user clicks on the banner, the button, or movie clip with code attached will link to your site. if you want a new window to open use: getURL("http://www.yourwebsite.com", "_blank");
[q][i]Originally posted by: [b][b]wwscoper[/b][/b][/i] Is the banner in flash? Create an invisible button over the whole banner with on(press){ getURL("http://www.yourwebsite.com") } when a user clicks on the banner, the button, or movie clip with code attached will link to your site. if you want a new window to open use: getURL("http://www.yourwebsite.com", "_blank");[/q] I keep getting error msg on the first line for the on(press). It says "**Error** Scene=Scene 1, layer=Invisible Button, frame=1:Line 1: Mouse events are permitted only for button instances on(press){ Total ActionScript Errors: 1 Reported Errors: 1"
You need to create a button to use mouse events, not just a drawn object or a normal symbol. You need to start by creating a new symbol. When you do this, you can select either Movie clip, Button, or Graphic. Select Button. Then, double click on the new button in your library to enter the edit screen for the button. There you can draw the actual button. After you've made the button, go back to your main timeline. Once there, drag an instance of the button to the stage. Select the button on the stage and then add the actionscript. Also, make sure that your button uses a fill (you don't need a border), or it won't work correctly. To hide the button, once it's on the main stage, adjust the alpha to 0.
Hi, I've followed your instructions and got a button on my page, but when I check it although I see the little hand identifying it as a link when I click on it nothing happens. hope you can help? regards
Don't see what you're looking for? Try a search.
|