Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

making a .swf a hyperlink (again)

Want to have a flash movie clickable to take user to another website

7:27 pm on May 11, 2005 (gmt 0)

10+ Year Member

Hi everyone. I know this has been discussed before in various ways. I've followed everything exactly, so that my flash movie can be clickable. The movie shows up just fine, but is NOT clickable! I'd like to make the whole .swf (embedded into an HTML page) a hyperlink so that when the viewer clicks on the flash movie it will take them to a URL I have specified.

So far I have:

1. Created a new layer (it's been the first and last layer, resaved individually of course);

2. Used the rectangle tool with to draw a rectangle around the whole movie on the stage. Tried keeping the rectangle inside as well as outside the stage - made no difference);

3. Converted it to a movie clip (also tried to convert it to a graphic - didn't work);

4. Under Actions, I used this:

on (release) {


And, it... just... doesn't... work! I drop the .swf into a webpage and it's not clickable, but the movie does play. From everything I've read, this "should" work just fine. What am I doing wrong?

6:18 am on May 12, 2005 (gmt 0)

10+ Year Member

Hi Bro,
Convert your Rectangle to a button

1. select the rectangle
2. click insert > convert to symbol or press F8
3. then give a name ("button 1") and select the Behavior as Button
4. click on the "OK" button

then you can use this code

on (release) {


basically you cant use on (release), on (press) actions to a movie clip...


11:43 am on May 12, 2005 (gmt 0)

10+ Year Member

Perfect! Thanks! That was the only thing I didn't try - making it a button. I used the on release feature, and it's working great.
1:06 pm on May 12, 2005 (gmt 0)

10+ Year Member

1:33 pm on May 12, 2005 (gmt 0)

10+ Year Member

You would leave out the semicolon?

I left it in and it worked...

7:16 am on May 13, 2005 (gmt 0)

10+ Year Member

I think semi colan is a standard of action scripting, it say this is the END of this line...



Featured Threads

Hot Threads This Week

Hot Threads This Month