![]() |
Actionscript/HTML
I need flash help.
Making a website for my towns fire department and I'm making a flash splash screen. I need the enter button to proceed to the index page. Any idea how I would do that? No matter how hard, I'd like to do it. I've seen it done before. |
Which version of ActionScript are you using?
I only because ActionScript 3.0 doesn't support code beneath buttons, whilst ActionScript 2.0 does. |
Why don't you just set the focus on a link to the index page in HTML?
<a id="thelink" href="index.php">Click here or press enter to continue</a> <script type="text/javascript"> <-- document.getElementById('thelink').focus(); //--> </script> IE7 requires a click to accept keyboard input to a flash object, anyway, so just doing it with JS and HTML is a better solution. |
getURL(url [, window [, "variables"]]) should be of some avail, e.g.:
on(release) { getURL("www.zelaron.com", "_blank"); } to open www.zelaron.com in a new window when clicking the relevant button(s). onRelease=function(){ as the first line may be of some avail as well. I haven't touched AS2.0 in a while, and I never learnt AS3.0 properly. |
Quote:
And the code you provided, Chruser, helped to open in a new window, but I want it to open in the same window. (EDIT: changed the "_blank" and it works fine.) Thanks. |
All times are GMT -6. The time now is 05:22 PM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.