PDA

View Full Version : hyperlink around swf


mrboyer79
06-28-2006, 01:08 PM
Hello,
I'm trying to put a link around a swf. I've been trying this:

<a href="http://www...">
<embed src="location of swf">
</a>

but to no avail. Is there a way to put a link around the swf without changing the file itself? I don't have the ability to crack open the swf.

Thanks,
Mr.B.

mooska
06-28-2006, 01:14 PM
You can make an swf that is the same width and height and load that swf to yours, layer higher make an _alpha=0 mc and assign
on(release){
getURL("http://www.mydomain.com");
}
to it.

mrboyer79
06-28-2006, 01:19 PM
I'm sorry, I'm very new to this. I don't quite understand. Maybe I should explain more. The user comes to the home page. On the home page is this swf. They need to click on that swf to go to another page. Forgive my nube-ness! Thanks!

mooska
06-28-2006, 01:48 PM
View attachment

my_btn._x =0;
my_btn._y = 0;
my_btn._alpha = 0;
my_btn._width = Stage.width;
my_btn._height = Stage.height;
my_btn.onPress = function(){
getURL("http://www.online.com", "_self");
}
loadClip.loadMovie("your_swf_file.swf");
The basics thing is to change the url and swf name.
You have to set proper fps, width&height and background properties to make it work right

nashvillekurds
08-25-2008, 04:06 AM
i have a website that i was doing a banner for and i seem to have prob i have a flash swf without the fla ive been told to do some things but as you can see it dosent work for me do you happen to have a video clip on youtube that shows yoiu how its done or maby something similar to that if you do please pm me i was needing it by tomorrow monday 5:30 pm if you do please help me thanks