all groups > macromedia flash sitedesign > march 2007 >
You're in the

macromedia flash sitedesign

group:

Flash Link


Flash Link M-ManLA
3/29/2007 12:00:00 AM
macromedia flash sitedesign:
Re: Flash Link wwscoper
3/31/2007 2:25:02 AM
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");
Re: Flash Link M-ManLA
4/2/2007 5:55:53 PM
Re: Flash Link M-ManLA
4/2/2007 6:18:43 PM
[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"


Re: Flash Link mjjp
4/2/2007 7:26:46 PM
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.
Re: Flash Link littleredwagon
4/22/2007 12:00:00 AM
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
Re: Flash Link M-ManLA
4/26/2007 12:00:00 AM
AddThis Social Bookmark Button