Is the banner in flash? Create an invisible button over thewhole banner with
on(press){
getURL(''http://www.yourwebsite.com'')
}
when a user clicks on the banner, the button, or movie clipwith code attached will link to your site. if you want a new windowto open use:
getURL(''http://www.yourwebsite.com'',''_blank'');Flash Link
Yes I am in flash. How do I create an invisible button? Do Ijust draw a box with no fill in it?
quote:
Originally posted by: wwscoper
Is the banner in flash? Create an invisible button over thewhole banner with
on(press){
getURL(''http://www.yourwebsite.com'')
}
when a user clicks on the banner, the button, or movie clipwith code attached will link to your site. if you want a new windowto open use:
getURL(''http://www.yourwebsite.com'',''_blank'');
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 buttoninstances
on(press){
Total ActionScript Errors: 1 Reported Errors: 1''
You need to create a button to use mouse events, not just adrawn object or a normal symbol. You need to start by creating anew symbol. When you do this, you can select either Movie clip,Button, or Graphic. Select Button. Then, double click on the newbutton 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 thebutton to the stage. Select the button on the stage and then addthe actionscript. Also, make sure that your button uses a fill (youdon't need a border), or it won't work correctly. To hide thebutton, 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 itas a link when I click on it nothing happens.
hope you can help?
regards
That might be a Flash text that you are seeing. Some flashtext is just to look good. I don't know why they have the cursorchange, but some of the is just for looks.
No comments:
Post a Comment