Copy link to clipboard
Copied
Hi-
I have a small (220x123) Fla file with only one small FLV video file in it. I
want to embed this video into an html and make it so that it acts like
a button - when the user clicks, another html page is launched.
Inside Flash I imported the FLV, I made an invisible button on a separate
layer (btn_cover_all) that covers the flv. On the Actions layer I put
the code below.
After publishing and embedding the code into the html - the video plays and responds to mouse-over
but the link doesn't work.
How do I make this FLV act like a link or button that launches another html page?
I'm sure this is simple for everyone but me. Therein lies the evidence of the level of my Flash chops.
d2
|*|*|*|*|*|*|
function () {
this.btn_cover_all.getURL("v/index.html");
}
Copy link to clipboard
Copied
HI - update here...
I figured out that my code was wrong but even after changing and double checking it I'm not getting the result I want. This code is in the Actions panel:
this.btn_cover_all.onRelease = functions()
{
getURL("v/index.html");
}
I even tried linking to an HTML file in the same directroy rather than jumping into the "v" folder.
Any ideas??
Copy link to clipboard
Copied
HI -
another update.
I found out that a target must be named but the ONLY one that works is "_blank"... which is not optimal. "_self", "_parent"," _top" do not work at all despite what the AS2 Help file says.
Here's the code that does work - albeit not completely because I don't want a _blank window - I prefer _self :
this.btn_cover_all.onRelease = function()
{
getURL("v/index.html", "_blank");
}
Can anyone tell me if I'm getting warmer??
Find more inspiration, events, and resources on the new Adobe Community
Explore Now