Results 1 to 2 of 2

Thread: btn link to URL

  1. #1
    Join Date
    Apr 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default btn link to URL

    I'm new to ActionScript 3 - I'm trying to make a very basic link to a URL using a btn (yes, that really is all I'm after!)

    in the old script it was just the following action on the button itself:

    Code:
    on(release){
    getURL(http://www.blahblah.com,"_blank");
    }
    but this doesn't work anymore...please help!
    Last edited by Snookerman; 04-21-2009 at 09:39 AM. Reason: added [code] tags

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    1. You can't add actions to buttons in Flash CS3
    2. That syntax is AS2 not AS3

    There are literally hundreds of good tutorials about the differences between AS2 and AS3 on the web. Most cover mouse events as one of the first things. Try a Google search.

    http://scriptplayground.com/tutorial...ctionscript-3/

Bookmarks

Posting Permissions

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