all groups > flash actionscript > july 2004 >
You're in the

flash actionscript

group:

hyperlinks in flash


hyperlinks in flash new_to_flash
7/13/2004 9:26:33 PM
flash actionscript:
It's so simple it's probably right in front of me. I'm new to flash and I want
a hyperlink. I have a flash template that has buttons. I simply want to
navigation to a URL when the button is clicked. So, I figured that the on event
needed one line: getURL("..."); -- but that doesn't work. How do I do this?
The top navigation has buttons: Company, Hosting, Support, etc... that need to
navigation to a new web page when clicked.
Re: hyperlinks in flash rlc5611
7/13/2004 9:37:05 PM
If it is a button then you could use an on(release)

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

Re: hyperlinks in flash new_to_flash
7/13/2004 9:49:30 PM
Okay, sound good but when I begin to edit the ActionScript. the code window
says:

<not set yet>.onRelease = function() {
getURL("http://www.mycompany.com/index.php");
}

What do I do with <not set yet>. I guess I need to give the button a name
some where?

Thanks for you reply! ;-)

Re: hyperlinks in flash rlc5611
7/13/2004 9:59:32 PM
with on(release) you apply the script to the button itself. with onRelease, you
are applying it in the timeline or in another clip to something that has a name
so you do have to name your button/mc to use onRelease. Using on(release)
applied to the button directly does not require a name but either method is
valid.
Re: hyperlinks in flash new_to_flash
7/13/2004 10:23:49 PM
AddThis Social Bookmark Button