Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How do I make an FLV a clickable link?

Explorer ,
Aug 12, 2010 Aug 12, 2010
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");

}
TOPICS
ActionScript
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 12, 2010 Aug 12, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 12, 2010 Aug 12, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines