.SWF/.FLA related - How can I simply make a .swf with a href on it? - Will rep!

Discussion in 'Graphics & Multimedia' started by Scorpiono, Nov 16, 2007.

  1. #1
    I have a .swf file containing a banner.

    How do I link the banner with www.something.com

    I guess it's action script related - thank you - will rep!
     
    Scorpiono, Nov 16, 2007 IP
  2. maahan

    maahan Banned

    Messages:
    178
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    convert your banner to MovieClip.
    select the drawing and press [F8] and choose [Movie Clip] as the option.
    then select the converted MovieClip and press F9 to open the action panel.
    and then write this code..

    on(Release)
    {

    GetURL("http://www.example.com");

    }

    // GetURL("http://www.example.com","_blank");
    // _blank ... this will open the link in new window..

    let me know..
    thanks.
     
    maahan, Nov 16, 2007 IP
    Scorpiono likes this.
  3. Scorpiono

    Scorpiono Well-Known Member

    Messages:
    1,330
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    120
    #3
    Didn't seem to work, I have the HOVER mouse thingy, but when I click it does nothing.

    This is I have several layers in the movie, I have made a transparent one on top and made it movie clip..

    No luck
     
    Scorpiono, Nov 16, 2007 IP
  4. maahan

    maahan Banned

    Messages:
    178
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    maahan, Nov 16, 2007 IP
  5. Shittywall

    Shittywall Peon

    Messages:
    95
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try this:

    Convert your Vectors/whatever to a MC. Open the actions for MC, and type this:

    on (release) {
    getURL "http://www.google.com" "_blank"
    }

    If that doesnt work, try this:

    Copy your banner/button/whatever, Paste in place on top of the original art, break apart, change the filling to 0% Alpha of the color White. Then convert it to a Button, and type this in the Button actions:

    on (release) {
    getURL "http://www.google.com" "_blank"
    }
     
    Shittywall, Nov 17, 2007 IP
    Scorpiono likes this.
  6. Scorpiono

    Scorpiono Well-Known Member

    Messages:
    1,330
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    120
    #6
    THanks guys, the problem was CS3, I hate it

    Flash MX worked just fine, the syntax was correct and it helped out, I wonder still if there are any HTML variants.
     
    Scorpiono, Nov 17, 2007 IP
  7. Shittywall

    Shittywall Peon

    Messages:
    95
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Dude..

    You should've said that from the beginning.

    I hope that you went into CS3 setting and changed the Actionscript to 2.0

    ... *sigh
     
    Shittywall, Nov 17, 2007 IP
  8. maahan

    maahan Banned

    Messages:
    178
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    anyways , nice to hear that you got it solved !
     
    maahan, Nov 17, 2007 IP