A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: linking a button

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Posts
    9

    linking a button

    for some reason im having major problems
    i have flash mx 2004
    i have a rollover button
    i simply want to link the button on the down state to a website
    this is what i used
    on (press) {
    }
    getURL(www.gamerzrevolution.com/chat);

    and im getting errors
    does anyone know what it should be

  2. #2
    dmacker = new Person()
    Join Date
    Jan 2005
    Location
    Woburn, MA
    Posts
    143
    try putting the getURL within the event handler block like this:

    Code:
    on (release) {
      getURL(http://www.gamerzrevolution.com/chat);
    }
    I am an instance of the Person class.

  3. #3
    FK's Geezer Mod Ask The Geezer's Avatar
    Join Date
    Jul 2002
    Location
    Out In The Pasture
    Posts
    20,490
    You should use on release. It gives people a second chance. And use the full path for the get url link;

    on(release){
    getURL("http://www.gamerzrevolution.com/chat", "_self");
    }

    Use _blank for a new window.

  4. #4
    Junior Member
    Join Date
    Oct 2004
    Posts
    9
    thanks that really helped
    i forgot the geturl code had to be
    before the last bracket

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