all groups > flash (macromedia) > may 2007 >
You're in the

flash (macromedia)

group:

Hyperlinks in Flahs



Hyperlinks in Flahs Catalyst8487
5/18/2007 9:31:11 PM
flash (macromedia): I have just finished putting together my companies webpage, and my boss would
like the option of the flash banner to return to the home page.

I'm not a flash programmer, or a web programmer in general, but since we are a
small company I took the task on to putting together a new webpage. Anyway, is
there is a way to stretch a transparent button over the header flash file and
then have that link back to the mainpage?
Re: Hyperlinks in Flahs CBecker
5/18/2007 9:45:05 PM
Yes, create a new button (draw a box and hit F8 to create a button).
Edit the button (double click the box) and move the keyframe of the box to the
HIT frame.
Go back to the main stage and make sure your button is selected.
Go to the Actions panel. Now add this code in the Actions panel:
on(release) {
getURL("yourhomepage.html");
}

That should work.

Hope it helps. Chris
Re: Hyperlinks in Flahs Catalyst8487
5/18/2007 10:17:35 PM
I did what you said (or I think I did :P) but I got the error:

**Error** Scene=Page 1, layer=Layer 7, frame=10:Line 1: Mouse events are permitted only for button instances
on(release) {

AddThis Social Bookmark Button