954,595 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to link my flash banner to a webpage?

hi,i am new to flash.... i have made a simple flash banner which has 8 layers...now i wanna link it to a webpage...how????

divya9183
Newbie Poster
2 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

You need to save it as a .swf file. Then you need to embed it in the webpage using the HTML code Flash can generate for you.

stymiee
He's No Good To Me Dead
Moderator
3,360 posts since May 2006
Reputation Points: 161
Solved Threads: 38
 
You need to save it as a .swf file. Then you need to embed it in the webpage using the HTML code Flash can generate for you.

yeah i hav done that and now when i click on that .swf file it shud take me to new webpage say yahoo.com in a new window...
thanks for the reply

divya9183
Newbie Poster
2 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

Oh, you want to make the flash file load a webpage when you click on it. That's a different story. Sorry but I don't know enough about Flash to help you with that.

stymiee
He's No Good To Me Dead
Moderator
3,360 posts since May 2006
Reputation Points: 161
Solved Threads: 38
 

If you haven't added any action to any symbol, i.e. you flash movie is just a movie nothing dynamic, then this is the simples way.

1. Add a new layer, say "actions"
2. Make sure that the last frame(note: its frame not keyframe) number is equal to the last frame of whole movie. This is to ensure that the following code works throughout the movie
3. Now click on the first frame of actions layer and press F9 to open Action Panel and write this code:

_root.onMouseUp= function() {
    getURL("http://www.google.com", "_blank");
};

That's it

vishesh
Nearly a Posting Virtuoso
1,381 posts since Oct 2006
Reputation Points: 85
Solved Threads: 42
 

hey, if you want to link a piece of flash to a web site simply in the .fla . Insert a new layer , name this layer a (for actionscript/actions) . Inside type the following, say the thing you wanted someone to click on was a button which you named ,as a movie clip * mcbutton *
:

mcbutton.onRelease = function:void () {
getURL("http://www.yahoo.com");
};

and that will link you to yahoo!

Designer_101
Posting Whiz
314 posts since Jul 2007
Reputation Points: 12
Solved Threads: 16
 

That's exactly what the post above yours said.

stymiee
He's No Good To Me Dead
Moderator
3,360 posts since May 2006
Reputation Points: 161
Solved Threads: 38
 

yeh, but i tried to explain it without the root tags and gave examples so they could understand

Designer_101
Posting Whiz
314 posts since Jul 2007
Reputation Points: 12
Solved Threads: 16
 

Thanks to vishesh my flash banner is linked too!

hitech-girl
Newbie Poster
1 post since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You