Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

How do I add a link in a swf (flash) movie file?

  • 11-02-2007 10:06PM
    #1
    Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭


    Hi guys,
    this is elementary to some of you, but I can't quite remember the way to make it a link as I would have been able to had I exported a gif movie instead. Can anyone enlighten me?

    Seanie.

    P.S. the Flash 8 tutorial is soooo long winded, I can't find much that helps in it!


Comments

  • Registered Users, Registered Users 2 Posts: 3,057 ✭✭✭kjt


    Hope this helps Seanie.
    on (release) {
    getURL("http://www.yourwebsite.com/");
    }
    


  • Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭Seanie M


    Thanks kjt, but unfortunately, it is bringing up a action script error when I export the swf movie. :mad:


  • Registered Users, Registered Users 2 Posts: 35,522 ✭✭✭✭Gordon


    -Create a new layer
    -Create a rectangle
    -delete the stroke from the rectangle (bear with me on this)
    -alter the height and width of the rectangle to cover the whole movie
    -convert the symbol to a button
    -double click the button
    -move the keyframe at the start to the fourth keyframe (this means that the rectangle is simply the HIT AREA (the area that the mouse has to hit to put the button into effect)
    -Double click outside the area/button;go up a level; exit the button - however you normally do this
    - Now select the button by single clicking it and type that code into the actions
    on (release) {
    getURL("http://www.yourwebsite.com/");
    }
    

    Maybe your actionscript was somewhere it shouldn't have been hence the error.

    * It is good practice to remove the strokes from buttons imo. I had major problems with button tweens when I edited a tween and it turned out that the stroke was f*cking things up for me - it took me hours to figure out! So it doesn't hurt to remove them always. Maybe someone else can shed light on why that happened (although I reckon I was probably just forgetting to select the stroke when I edited the tween).

    HTH


  • Registered Users, Registered Users 2 Posts: 1,795 ✭✭✭Seanie M


    Worked a treat Gordon, thanks for typing all that out!

    Seanie.


Advertisement