Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 26th, 2004, 02:49 AM
sirdk sirdk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 sirdk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Dont give the focus to flash

I use javascript to detect keys on the keyboard so that some buttons in the html are hotkeys. My script makes it so that if the user presses on an html button, it sends a command to flash and plays an animation. The hotkey for that button would be "e" for example.
Problem is, if the focus is on the swf, the user cannot use hotkeys until it clicks elsewhere in the html file. Let me mention that their is alot of changes of focus between html and swf.

So I thought about using a OnClick="window.document.somebutton.focus()" on the swf so I'm always focused on the html after the user clicked in the swf, but it won't set the focus anywhere else
Is there anyway to keep the focus on an html element all the time even when an swf was clicked?

Reply With Quote
  #2  
Old January 27th, 2004, 01:31 AM
rynoe's Avatar
rynoe rynoe is offline
_root.troubleMaker
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: Florida, USA
Posts: 638 rynoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 8 m 30 sec
Reputation Power: 5
Have you tried using javascript commands within the flash file?

Reply With Quote
  #3  
Old January 28th, 2004, 09:26 PM
sirdk sirdk is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 sirdk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I did try but to tell the truth not a lot Mainly because I didn't quite know where to go from there.

Would this mean sending a keycode from flash to javascript and call a js function? Sounds good to me but im not quite sure how...

Reply With Quote
  #4  
Old January 28th, 2004, 10:18 PM
rynoe's Avatar
rynoe rynoe is offline
_root.troubleMaker
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: Florida, USA
Posts: 638 rynoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 8 m 30 sec
Reputation Power: 5
actionscript:
getUrl("javascript: whateverFuntion")

here is a link for some detail
link

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Dont give the focus to flash


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT