Forum Moderators: open

Message Too Old, No Replies

Newbie - How to link movie to a URL page

URL linking manually and automatically

         

leiter

12:59 pm on Jul 13, 2005 (gmt 0)

10+ Year Member



I'm a newbie and I wonder if someone could help sort this out. I have a nice intro in Flash MX and I would like to set it to automatically link to a URL page after it has played 30 seconds. Also, I would like to make it possible to redirect to an external URL when clicking on the movie. I tried, to no avail.

I would appreciate any help!

Richard_N

1:09 pm on Jul 13, 2005 (gmt 0)



the second one is easy, just create a new layer and put an invisble button over the movie. Invisible buttons are just a graphic button with the keyframes empty for all but the hit area.

First problem needs some script (you can do it in a more complex way but this is the easiest)

Work out which frame corresponds to the 30 second mark (assuming the movie is that long, this would be the last frame as well as if your pushing them away?) then place an onenterframe event handler on it

this.onenterFrame = function() {
getURL("http://www.whatever");
}
stop();

However..... redirecting someone without their permission may seriously p visitors off it would be better not done IMO

leiter

1:36 pm on Jul 13, 2005 (gmt 0)

10+ Year Member



Thank you for your help!