Jump to content


Photo

Flash AS3 Hyperlink


  • Please log in to reply
3 replies to this topic

#1 Druss

Druss

    Young Padawan

  • Members
  • Pip
  • 17 posts
  • Gender:Male
  • Location:Essex, UK

Posted 08 August 2007 - 03:38 AM

Ok I'm really just getting start with Flash and have looked for a tut and couldn't find something quickly enough for what I need...

Basically I have a movie, it gets to the end and stops using a bit of action script on the last frame. However I also want there to be a simple hyperlink on a bit of text which I have converted to a symbol (button). What is the process for doing this? Or can someone point me in the direction of a useful tut?

I've tried using

on(release) {
getURL ("http://www.website.com");
}

But get an error saying call to an undefined function.

#2 dcpweb

dcpweb

    Young Padawan

  • Members
  • Pip
  • 60 posts
  • Gender:Male
  • Location:London

Posted 13 August 2007 - 05:02 PM

Hi,

on(release) {
getURL ("http://www.website.c...e.com","_blank");
}

Click on the button and then add the action script to this button, seems like you are adding the code to the timeline.


regards

#3 Ben

Ben

    P2L Jedi Master

  • Publishing Betazoids
  • PipPipPipPip
  • 1,366 posts
  • Gender:Male
  • Location:VIC, Australia

Posted 14 August 2007 - 07:20 AM

Hi,

on(release) {
getURL ("http://www.website.c...e.com","_blank");
}

Click on the button and then add the action script to this button, seems like you are adding the code to the timeline.


regards

Nope, he's got a space between getURL and the brackets.

#4 Pax

Pax

    P2L Jedi

  • Members
  • PipPipPip
  • 911 posts
  • Gender:Male
  • Location:Windsor, ON, Canada

Posted 20 August 2007 - 10:49 AM

Hi,

on(release) {
getURL ("http://www.website.c...e.com","_blank");
}

Click on the button and then add the action script to this button, seems like you are adding the code to the timeline.


regards

Nope, he's got a space between getURL and the brackets.


Flash has no issues with spaces between function/method names and the brackets.

If he is actually using AS3 like the topic says, that code wont work. It's AS2.

You'll want to do a google search for buttons in AS3. It's a whole different ballgame compared to AS2.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users