Click to See Complete Forum and Search --> : Quick Flash question...
I'm a beginner. How do I get the url of the page to change the instant a flash animation ends?
I mean, what Actionscript or whatever do I need in order for, I guess, a javascript function with window.location="new url" to be triggered to run?
Robogd
01-25-2008, 04:12 PM
At the last keyframe of the animation, insert this and replace "thewebsiteyouwant" with the web site you want to go to.
stop();
this.getURL("http://www.thewebsiteyouwant.com", "_blank");
Boasberg-Carlton Web Developers (http://www.boasberg-carlton.com)
THanks for the quick response. It doesn't seem to be working though. I selected the last frame in a layer, went to Window>Actions and typed in
stop();
this.getURL("JungleCareHome.htm");
into the little text editor window, observed that the frame in timeline now showed it little alpha symbol, but when I actually run it the url never changes. It just acts the same as before adding the code.
I did get a little error message when publishing which said that this.getURL() is no longer supported.
Any further suggestions?
I'd say it is definitely that the getUrl() function is no longer supported.
Anyone know of any other ways of accomplishing the same thing?
a.g.r.c
01-26-2008, 12:52 PM
I'd say....
Dont put stop before get url...
Put it after.... duh
getURL("http://domain.com", "_blank");
stop();