:)
maybe i'm totally wrong but this always works on pc/mac - ie,
firefox, safari...
...
</HEAD>
<BODY bgcolor="#FFFFFF" OnLoad="self.movie.focus();"
leftmargin="0"
...
see here an working example http://iashido.com/showcase/addb/
flash have the focus without clicking inside...
On Mar 20, 2006, at 12:40 AM, David Rorex wrote:
On 3/19/06, Tolga H. Tatari <[EMAIL PROTECTED]> wrote:
I had been searching a solution to flash UI components mouse wheel
problem
on swf's longer than the page and that don't fit the browser.
I found a solution like this :
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function() {
getURL("javascript:focus(document);");
}
Mouse.addListener(mouseListener);
to give the focus to the html page when the mousewheel moves. IE and
firefox
crashes sometimes after i used this code. and the annoying click
sound of
IE. I have a little knowledge about javascript. Maybe anybody has
a better
solution.
1. If you are using Flash 8, use ExternalInterface.call instead of
getURL("javascript...
2. If you are using Flash 7 or lower, look into the javascript
integration
kit by macromedia. it eliminates the 'click' sound in IE
possible suggestion: Instead of doing 'focus(document)', maybe just
directly
scroll the page?
So in flash, if the user does scrollWheel -> down, you send a
command to
javascript like setScroll(+10), and if they do scrollWheel -> up,
you send a
command like setScroll(-10); I don't know much JS either, but I'm
sure there
is a command like this.
-David R
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
www.itseveryday.ro
www.iashido.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com