homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

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)

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)

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)

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)



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

You would leave out the semicolon?

I left it in and it worked...


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

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


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved