Skip to main content
Participant
February 15, 2011
Question

Hyperlink in flash animation

  • February 15, 2011
  • 1 reply
  • 816 views

Hi there.Currently i'm working on web site.Actually,i need to make a clicking flash banner.

i found this codes on internet,but can't make this to be working.

now you can put this code on the movie clip:
on (release) {
getURL("http://www.actionscript.org", _blank);
}


or in the timeline this:
my_mc.onRelease = function() {
getURL("http://www.actionscript.org", _blank);
};

2nd solution:


on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG, "_blank");
}
}

this is link for animation in .FLA format.

http://www.speedyshare.com/files/26889917/banner_048.fla

Any help is appreciated.

This topic has been closed for replies.

1 reply

Inspiring
February 15, 2011

click on a keyframe on your timeline (where the banner is) then open Actions panel and paste


my_mc.onRelease = function() {
getURL("http://www.actionscript.org", _blank);
};

make sure

my_mc is the instance of your banner movieclip.

replace http://www.actionscript.org with your own URL (where you want the user to go when the banner is being clicked)

Participant
February 15, 2011

thx

this was helpful.

but i just can't get this working.

don't know why..

i tryed everything.....

can you check this file at speedyshare,pls .     

Inspiring
February 15, 2011

I don't see any link.

my_mc should be a button.

create a button in the size of your banner. give it an instance name of my_mc. Then Double click on the button and drag the UP keyframe to the HIT state (in the Timeline). Now place this button over your banner.