A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: on release-Get URL?

  1. #1
    I want to be able to click anywhere on my movie to get another URL in a new window. For instance in a flash footer. Any Help?

  2. #2
    HELP>>>ACTIONSCRIPT DICTIONARY
    Join Date
    Feb 2000
    Location
    In the Present Moment
    Posts
    1,041
    One way to do it would be to make an "invisible button" that has only a hitstate defined that is a rectangle the size of your movie. Put this on the background layer with the following AS:


    Code:
    on (release) {
        getURL ("www.yoursite.com", "_blank");
    }
    this will open the URL in a new window by clicking anywhere in your footer.

    Hope this helps.

  3. #3
    Junior Member
    Join Date
    Sep 2008
    Posts
    7

    On Release Get URL error

    Using this exact syntax:



    on (release) {
    getURL ("www.yoursite.com", "_blank");
    }


    I get the follwing error in Flash CS3:



    1087: Syntax error: extra characters found after end of program.

    Any suggestions?

    Thanks,
    Corbin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center