Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jan 2003
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts

    SWF Movies as Hyperlinks

    hi.
    How can i make it so that the entire .swf movie becomes a hyperlink. Ive tried surrounding the <object> and <embed> tags supplied by Flash with a hyperlink tag, but it does not seem to affect the movie itself, only the text arround it

    optimism_
    <?XML version="1.0" standalone="Yes" encoding="utf-8"?>
    <SIGNITURE>
    XML is the future - embrace it
    </SIGNITURE>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you could possibley place it between a set of <span> tags and have an onlcick event for the span tags and a little javascript to redirect.

    sound any good?

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #3
    Senior Coder
    Join Date
    Aug 2002
    Location
    A 4D universe
    Posts
    1,337
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Couldn't an link (<a>) tag placed outside the embed tags work?


    But I am pretty certain that scroots method will work.
    http://www.mudsplat.com - Web design, print, and marketing solutions.

  • #4
    New Coder
    Join Date
    Jan 2003
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i did already say that i had tried surrounding the generated code with < a > tags and that it didnt work.

    and scroots, your code doesnt seem to work either, unless ive got it wrong.

    Code:
    <span onClick="window.open('http://www.gillard.plus.com')">
    <embed src="resources/images/mcg.swf" width="128" height="50"></embed>
    </span>
    <?XML version="1.0" standalone="Yes" encoding="utf-8"?>
    <SIGNITURE>
    XML is the future - embrace it
    </SIGNITURE>

  • #5
    New Coder
    Join Date
    Jan 2003
    Posts
    79
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi again

    i have tried all of your suggestions, and included an onClick event in the object tag as well. None of them work.
    Surely there must be a way to make flash files link - isnt flash supposed to be used for making banner ads among other things?

    optimism_
    <?XML version="1.0" standalone="Yes" encoding="utf-8"?>
    <SIGNITURE>
    XML is the future - embrace it
    </SIGNITURE>

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    using flash MX make a button over the whole stage and make it open a new window with the on click


    P.S for any one old enough round here...i'm back
    photoshop too expensive? use the GIMP! www.gimp.org


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •