Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
Actionscript/HTML
Reply
Posted 2008-04-10, 09:39 AM
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.
Old
Profile PM WWW Search
Wed-G is an uncelestial body of massWed-G is an uncelestial body of massWed-G is an uncelestial body of mass
 
 
Wed-G
 



 
Reply
Posted 2008-04-10, 09:40 AM in reply to Wed-G's post "Actionscript/HTML"
Which version of ActionScript are you using?

I only because ActionScript 3.0 doesn't support code beneath buttons, whilst ActionScript 2.0 does.
Old
Profile PM WWW Search
Lenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basicsLenny simplifies with no grasp of the basics
 
 
Lenny
 



 
Reply
Posted 2008-04-10, 10:53 AM in reply to Wed-G's post "Actionscript/HTML"
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.
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2008-04-10, 01:15 PM in reply to Wed-G's post "Actionscript/HTML"
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.
"Stephen Wolfram is the creator of Mathematica and is widely regarded as the most important innovator in scientific and technical computing today." - Stephen Wolfram

Last edited by Chruser; 2008-04-10 at 01:18 PM.
Old
Profile PM WWW Search
Chruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed itChruser shouldn't have fed it
 
 
Chruser
 



 
Reply
Posted 2008-04-10, 01:24 PM in reply to WetWired's post starting "Why don't you just set the focus on a..."
WetWired said:
Why don't you just set the focus on a link to the index page in HTML?
Well, it's an interactive splash page. That's why I'd like the button to be in the clip.

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.

Last edited by Wed-G; 2008-04-10 at 02:02 PM.
Old
Profile PM WWW Search
Wed-G is an uncelestial body of massWed-G is an uncelestial body of massWed-G is an uncelestial body of mass
 
 
Wed-G
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 04:58 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.