need help on this script for flash banner

Discussion in 'JavaScript' started by jskoh, Jun 29, 2009.

  1. #1
    hi, im starting to learn script. i have make a flash banner. however, i cant seem to get the banner link to my site. anybody?

    [​IMG]

    http://i80.servimg.com/u/f80/12/80/96/05/410.jpg
     
    jskoh, Jun 29, 2009 IP
  2. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #2
    Unni krishnan, Jun 30, 2009 IP
  3. jskoh

    jskoh Active Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #3
    btw how to change the action script? it seem when i export to movie, i cant seem to change the action scipt option.
     
    jskoh, Jun 30, 2009 IP
  4. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #4
    To start, I see this is the first time you are posting, but this post should have been started in the Graphics and multimedia forum(as it is related to flash).

    For the solution, first i didnt understand what u posted (make it clear).
    But i will tell you how to add script to a button in flash.
    In the banner, you will be having a button , which on clicked will redirect to a site.

    In Flash editor, click on the button and press F9.
    Actionscript window will appear. Type the following into it.

    Press Ctrl + T to check whether the script is without any errors.

    Now press Ctrl+Enter to play the flash movie.

    Check whether the link works fine there.

    Now click File>Publish Settings> and choose windows projector as option and then publish.

    This explains the process.
    If this is not what u want, do reply with the details (dont make it a one-liner..)
     
    Unni krishnan, Jun 30, 2009 IP
  5. jskoh

    jskoh Active Member

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    86
    #5
    i got.... how will the script be if i wanna keep track on the flash been click?
     
    jskoh, Jun 30, 2009 IP
  6. Unni krishnan

    Unni krishnan Peon

    Messages:
    237
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    0
    #6
    What you can do is create an invisible button, which occupies the whole flash stage.
    (Create a rectangle of the size of the stage and change its alpha value to 0.
    Now convert it to a button.)

    Now you can apply the above posted script for that button.
    Hope i have answered your query.
     
    Unni krishnan, Jun 30, 2009 IP