A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Question about Script

  1. #1
    Junior Member
    Join Date
    Jul 2004

    Question about Script

    I know in the older version of flash if you were making a button in which it was to link to something. You could make a square box and make the alpha to 0 then scrip it with GetURL (and something else lol forget the other script) to make it link.

    I'm having a hard time doing that with MX could someone tell me how they link their buttons?

    I need the whole button to link to a URL?

  2. #2
    Join Date
    Apr 2001
    Montréal, Québec.
    If you're already using a button symbol on stage, then simply right-click it and select actions. In the Actions -Button window add this script...

    getURL("http://www.google.com/", "_blank");

    Use "_self" instead of "_blank", if you want the link to open in the same window rather than in a new one.

    If you're not dealing with a button symbol to start with, you must first convert your shape, graphic or whatever to a button symbol... Under Insert->Convert to symbol, and to give it a button's behavior.

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