Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / General Flash Topics / June 2008



Tip: Looking for answers? Try searching our database.

Is this Possible? How?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dak-Attack - 30 Jun 2008 04:02 GMT
is it possible, at the end of a flash animation, to then automatically launch a
website/or go to/launch a particular website? Is this possible in FLASH or is
this something that needs to be done in another program besides FLASH? If it is
possible in FLASH, how do you do it?
Noelbaland - 30 Jun 2008 04:42 GMT
Hello there,

Click on the last frame of the animation in the timeline and hit F6 to turn it
into a keyframe.  While the keyframe is still selected either hit F9 or open
the Actions panel and attach the following script to this frame.

[Actionscript 2]
stop();
getURL("http://www.somewebpage.html");

[In a new window]
stop();
getURL("http://www.somewebpage.html", "_blank");

[Actionscript 3]
import flash.net.*;

stop();
var url:String = "http://www.somewebpage.html";
var request:URLRequest = new URLRequest(url);
navigateToURL(request);

Hope that helps
Dak-Attack - 30 Jun 2008 05:08 GMT
THANK YOU! I will try this.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.