How do put in a web link in flash?

Discussion in 'HTML & Website Design' started by Lightingbird, Sep 23, 2009.

  1. #1
    Hello...

    I'm sure some of you remember from talking to me about editing Flash. I was helped and got that taken care of finally. Now my next problem.

    The flash image in on this template.

    http://osc.template-help.com/wt_25521/index.html

    Where it says, "enter" I cannot figure out how to point that to a website. I do not see the web address in the CSS code. Is it somewhere in the flash editing?

    I'm lost. I just want the "enter" button to work and lead to a page of my chosing. Any help?
     
    Lightingbird, Sep 23, 2009 IP
  2. extomas

    extomas Member

    Messages:
    237
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #2
    In CSS code you will never find links, first
    Other thing - link will be in index.html or in other file(.html, .htm, .fla), not in .swf or .css - depend what files you have there.
     
    extomas, Sep 23, 2009 IP
  3. rnc360

    rnc360 Greenhorn

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Are you sure? All header of this web page is made purely in flash, so if you want add link to the button "Enter here" you should edit flash itself!

    By the way - kick-ass design ;)
     
    rnc360, Sep 23, 2009 IP
  4. higreg7

    higreg7 Peon

    Messages:
    469
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Of course you can have links in flash.

    Lightingbird, this looks like a templatemonster template, or similar, which is not very good news as they are a bit of a pain to update due to their structure, i.e. everything is all over the place.

    What you need to do is open that file in flash, locate that button on stage and select it, open the actionscript panel and hopefully there should already be some code onto it, probably something similar to this:

    on(rollOver){
    gotoAndPlay(2);
    }

    on(rollOut){
    gotoAndPlay(6);
    }

    The numbers would probably be different though.

    Below that, just add the following:

    on(release){
    getURL("http://www.yourdomain.com", "_self");
    }
     
    higreg7, Sep 24, 2009 IP
  5. ViolentAJ

    ViolentAJ Well-Known Member

    Messages:
    581
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    128
    #5
    Are you using Actionscript 2 or 3?

    It's ActionScript that you need to use. Higreg's post will work if you're using AS2.
     
    ViolentAJ, Sep 24, 2009 IP
  6. Lightingbird

    Lightingbird Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6

    Thanks that was it. It works!
     
    Lightingbird, Sep 24, 2009 IP