A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: script for getting url on mouse down

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Location
    redding, ct
    Posts
    2

    script for getting url on mouse down

    I use flash MX on a Mac.

    This is what I'm trying to do:
    I have a button on the stage. When a person clicks on it , I want
    a URL to be retrieved.

    When I use their action script panel it says the script should be
    .onRelease = getURL(http://www.little-men.com/bannedtest.html) {

    }

    When I render the scene I get the following error output comments
    Scene=•••INTRO/PLAY, Layer=ABOUT BOE, Frame=276: Line 1: Unexpected '.' encountered
    .onRelease = getURL(http://www.little-men.com/bannedtest.html) {

    Please give me the answer in simple baby terms, I'm not a programmer .

    Thank you very much inadvance.
    Trace Burroughs

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You forgot the " character. And your code seems to be for haveing button actios on a frame. Heres the code to put ON a button.

    on(release){
    getURL("http://www.little-men.com/bannedtest.html");
    }

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Junior Member
    Join Date
    Mar 2003
    Location
    redding, ct
    Posts
    2

    Thanks for the help

    Thank you for taking the time to help me.

    It worked great!!
    Trace Burroughs

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