Flash Banner Command

Discussion in 'Graphics & Multimedia' started by Casper911, Aug 13, 2007.

  1. #1
    Can Anyone Tell me the command to make a flash banner open in a new window? and where in the script it should go

    thanks
     
    Casper911, Aug 13, 2007 IP
  2. The_Chemist

    The_Chemist Peon

    Messages:
    96
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you mean the actionscript for a pop-up window?
     
    The_Chemist, Aug 14, 2007 IP
  3. Casper911

    Casper911 Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    YES, thats IT
     
    Casper911, Aug 14, 2007 IP
  4. Cosmo Designs

    Cosmo Designs Peon

    Messages:
    247
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    you can put a target="_blank" to see if it works ;)
     
    Cosmo Designs, Aug 14, 2007 IP
  5. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You need to make an invisible rectangle the size of the banner first. It sits on top of all the others (top layer).


    On your banner, make a rectangle the same size as your banner on the top layer. Forget the color or anything, just so long as it has no stroke. Make it a symbol, BUTTON type, and call it "click." Double-click the rectangle symbol to get "inside" it, and where the timeframe window sits, there are four choices: UP, OVER, DOWN and HIT. Drag the black dot from UP to HIT. This makes it invisible : )

    While you're still in your button's symbol, look at the Properties window, and make sure it says Button. Go to Window > Action or F9 or whatever you do. You'll see a window to type script in-- make sure it says "Actions - button" on the top left corner (so that you put the script in the right area... it can't be on Frame 1 of Scene 1).
    Type
    
    on release {
    getURL ("http://yoursite.com", "_blank");
    }
    Code (markup):
    The _blank is like what Cosmo said-- it opens the link in a new window.

    Was this what you were looking for?
     
    Stomme poes, Aug 14, 2007 IP
  6. Casper911

    Casper911 Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    YEs is was, thanks very much
     
    Casper911, Aug 14, 2007 IP