1.11M Members

How to link my flash banner to a webpage?

 
0
 

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????

 
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.

 
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.

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

 
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.

 
0
 

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

 
0
 

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!

 
0
 

That's exactly what the post above yours said.

 
0
 

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

 
0
 

Thanks to vishesh my flash banner is linked too!

 
0
 

thanks vishesh my flash also target to my website sucessfully
thanks so much for shair this information

 
0
 

The internet is a very helpful tool nowadays! Especially with forums, and people that join tend to know something another user didn't! Lets keep the help coming!

 
0
 

You must design a lightweight Flash banner for faster loading. Some of your target audience may use low speed internet connection and if the banner ad is too heavy, they will skip it. For instance, you may think that audio effects can be helpful to capture your target audience's attention, but make sure that it does not increase the file size too much.

 
0
 

Make sure the symbol you want to make 'clickable' is a button. Select you're button and open up the action script and paste in the following:

on (release) {
//Goto Webpage Behavior
getURL("http://www.WEBSITEHERE.com","_…
//End Behavior
}
******

An other way to do this is go to. Window > Behaviors > Web

 
0
 

Hi there, I am able to link the hyperlink to the swf and it works fine. but when I publish it to html the hyperlink does not work. Is there any simple way to just insert hyperlink like in word or html softwares?

You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article