RE: [Flashcoders] Regain stage focus

2010-05-31 Thread Karina Steffens
Thanks for the replies guys.

Changing the wmode to window is not possible, because it's a drop down
menu over html elements - it has to remain transparent. Besides, I tried
that during testing, and it didn't help.

Hendrik is correct about the focus, it's in the web-browser, not Flash.  I
don't even think it's about focus anymore, the situation got weird. When the
top of the Flash is set to 0 (or even at 10 pixels), everything works. But
when I try to move it down a bit lower in the browser with CSS (in any way
possible: setting the top value, setting the top value of its parent,
setting various margins and paddings, you name it), the moment you scroll
down, the rollovers become inactive.

I did solve it in the end by keeping it at 0 and adding white space at the
top of the flash movie itself, but that's a bit of a kludge. The CSS is an
adaptation of an existing template for the CMS, so I have no idea what can
be causing the bug. Some kind of z-indexing problem? Anything else that
could be interfering? 

Mystified,
Karina



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Sumeet Kumar
 Sent: 31 May 2010 6:08
 To: Flash Coders List
 Subject: Re: [Flashcoders] Regain stage focus
 
 Hello :)
 
 
 In the object tag  try making wmode = window.
 
 Thanks
 Sumeet Kumar
 
 
 
 - Original Message -
 From: Henrik Andersson he...@henke37.cjb.net
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Sunday, May 30, 2010 1:47 PM
 Subject: Re: [Flashcoders] Regain stage focus
 
 
 Cor wrote:
  At any given moment:
 stage.focus = stage;
 
  or
 
 stage.focus = yourInputField;
 
 Wrong focus, I am certain that the issue is not about the focus
 internal
 to the player, but the focus in the full webbrowser. The full flash
 player is lacking the focus.
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Regain stage focus

2010-05-30 Thread Cor
At any given moment:
  stage.focus = stage;

or

  stage.focus = yourInputField;

HTH

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
Thompson
Sent: zaterdag 29 mei 2010 20:06
To: Flash Coders List
Subject: Re: [Flashcoders] Regain stage focus

Karina Steffens wrote:

 You mean rains, right? :P

Darn! My e-mail program drops keystrokes. Don't know why--I'm using
the GMail Web interface. I just type too fast.


 So, there's no way to regain (or at least to rain...) focus without
clicking
 at all? Not even by using a mouseover event or a timer inside flash?

No, not as far as I know. You can set the focus on an input field, of
course, but that won't take effect until the user gives your .swf
focus. You understand the security issues, so I won't belabor them.

I've run into the same problem. I'm writing a math game where the
user's response time is important. If they have to click on the
browser window before typing the answer, that skews the results. We
got around it by having the user log in, so the browser window should
have focus when the problem is presented. If the user switches to
another program--say, during the intoduction--we have no way of
getting focus back until the user clicks on the browser. I'm working
with a couple of the best in the business--Mark Jonkman and Raman
Pfaf--and they both tell me the same.

 And more rain on my parade: After uploading the flash movie to the server,
 some of the links in the dropdown menu have stopped working - clicking on
 the doesn't do anything, while others seem to be ok. And it's arbitrary
per
 click... And this appears to be cross browser, while locally it's fine.
Any
 ideas what I should be looking for here?

Not much. I assume you've checked the usual culprits--the URL is
formed correctly, your .swf isn't busy in a loop, no security issues
involved, etc. I'd use the debug Flash player and FlashDevelop to
trace out what happens when the button is clicked.

Cordially,

Kerry Thompson
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.819 / Virusdatabase: 271.1.1/2904 - datum van uitgifte: 05/29/10
20:25:00

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Regain stage focus

2010-05-30 Thread Henrik Andersson

Cor wrote:

At any given moment:
   stage.focus = stage;

or

   stage.focus = yourInputField;


Wrong focus, I am certain that the issue is not about the focus internal 
to the player, but the focus in the full webbrowser. The full flash 
player is lacking the focus.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Regain stage focus

2010-05-30 Thread Cor
OK, is this in a particular browser or multiple??

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: zondag 30 mei 2010 10:17
To: Flash Coders List
Subject: Re: [Flashcoders] Regain stage focus

Cor wrote:
 At any given moment:
stage.focus = stage;

 or

stage.focus = yourInputField;

Wrong focus, I am certain that the issue is not about the focus internal 
to the player, but the focus in the full webbrowser. The full flash 
player is lacking the focus.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.819 / Virusdatabase: 271.1.1/2904 - datum van uitgifte: 05/29/10
20:25:00

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Regain stage focus

2010-05-30 Thread Cor
Is Javascript like this:

body onLoad=document.yourElementName.focus()

a solution for you?


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: zondag 30 mei 2010 10:17
To: Flash Coders List
Subject: Re: [Flashcoders] Regain stage focus

Cor wrote:
 At any given moment:
stage.focus = stage;

 or

stage.focus = yourInputField;

Wrong focus, I am certain that the issue is not about the focus internal 
to the player, but the focus in the full webbrowser. The full flash 
player is lacking the focus.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.819 / Virusdatabase: 271.1.1/2904 - datum van uitgifte: 05/29/10
20:25:00

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Regain stage focus

2010-05-30 Thread Cor
Here is a discussion which is about the focus issue:

http://www.actionscript.org/forums/archive/index.php3/t-120307.html

HTH
Cor

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: zondag 30 mei 2010 10:17
To: Flash Coders List
Subject: Re: [Flashcoders] Regain stage focus

Cor wrote:
 At any given moment:
stage.focus = stage;

 or

stage.focus = yourInputField;

Wrong focus, I am certain that the issue is not about the focus internal 
to the player, but the focus in the full webbrowser. The full flash 
player is lacking the focus.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Geen virus gevonden in het binnenkomende-bericht.
Gecontroleerd door AVG - www.avg.com 
Versie: 9.0.819 / Virusdatabase: 271.1.1/2904 - datum van uitgifte: 05/29/10
20:25:00

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Regain stage focus

2010-05-30 Thread Sumeet Kumar

Hello :)


In the object tag  try making wmode = window. 


Thanks
Sumeet Kumar



- Original Message - 
From: Henrik Andersson he...@henke37.cjb.net

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Sunday, May 30, 2010 1:47 PM
Subject: Re: [Flashcoders] Regain stage focus


Cor wrote:

At any given moment:
   stage.focus = stage;

or

   stage.focus = yourInputField;


Wrong focus, I am certain that the issue is not about the focus internal 
to the player, but the focus in the full webbrowser. The full flash 
player is lacking the focus.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Regain stage focus

2010-05-29 Thread Karina Steffens

Hi List,

I'm working on a flash dropdown menu for an html site (AS3 FP10). After a
wasted Friday and Saturday morning I finally figured out how to get the
menus appear above html items in Firefox without obscuring mouse input on
items below them (in case anyone's interested, using ExternalIntertface to
change the height of the menu bar Object with JavaScript seems to be the
only way).

(And yes, it would have been better to use a CSS menu, or even dhtml for the
animation, but my client insisted on Flash).

But now I'm having another Firefox related issue - sometimes interacting
with other page elements, or even scrolling the page, seems to lose the
focus on the Flash object, and the rollovers stop working until the swf
receives a click. It only seems to happen in Firefox, so far - IE8 behaves
as expected, and I've yet to test on other browsers (oh joy...).

So the question is, what's the best way to regain stage focus without
clicking on it? Is it even possible?

Thanks,
Karina


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Regain stage focus

2010-05-29 Thread Kerry Thompson
Karina Steffens  wrote:

 So the question is, what's the best way to regain stage focus without
 clicking on it? Is it even possible?

AFAIK, no, it's not possible. It's a security issue--less scrupulous
people could wreak havoc by forcing focus on a .swf. Anyway, it rais
too much in Dublin ;-)

Cordially,

Kerry Thompson
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Regain stage focus

2010-05-29 Thread Karina Steffens
You mean rains, right? :P 

So, there's no way to regain (or at least to rain...) focus without clicking
at all? Not even by using a mouseover event or a timer inside flash?

And more rain on my parade: After uploading the flash movie to the server,
some of the links in the dropdown menu have stopped working - clicking on
the doesn't do anything, while others seem to be ok. And it's arbitrary per
click... And this appears to be cross browser, while locally it's fine. Any
ideas what I should be looking for here?

Karina


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
 Sent: 29 May 2010 6:29
 To: Flash Coders List
 Subject: Re: [Flashcoders] Regain stage focus
 
 Karina Steffens  wrote:
 
  So the question is, what's the best way to regain stage focus without
  clicking on it? Is it even possible?
 
 AFAIK, no, it's not possible. It's a security issue--less scrupulous
 people could wreak havoc by forcing focus on a .swf. Anyway, it rais
 too much in Dublin ;-)
 
 Cordially,
 
 Kerry Thompson
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Regain stage focus

2010-05-29 Thread Kerry Thompson
Karina Steffens wrote:

 You mean rains, right? :P

Darn! My e-mail program drops keystrokes. Don't know why--I'm using
the GMail Web interface. I just type too fast.


 So, there's no way to regain (or at least to rain...) focus without clicking
 at all? Not even by using a mouseover event or a timer inside flash?

No, not as far as I know. You can set the focus on an input field, of
course, but that won't take effect until the user gives your .swf
focus. You understand the security issues, so I won't belabor them.

I've run into the same problem. I'm writing a math game where the
user's response time is important. If they have to click on the
browser window before typing the answer, that skews the results. We
got around it by having the user log in, so the browser window should
have focus when the problem is presented. If the user switches to
another program--say, during the intoduction--we have no way of
getting focus back until the user clicks on the browser. I'm working
with a couple of the best in the business--Mark Jonkman and Raman
Pfaf--and they both tell me the same.

 And more rain on my parade: After uploading the flash movie to the server,
 some of the links in the dropdown menu have stopped working - clicking on
 the doesn't do anything, while others seem to be ok. And it's arbitrary per
 click... And this appears to be cross browser, while locally it's fine. Any
 ideas what I should be looking for here?

Not much. I assume you've checked the usual culprits--the URL is
formed correctly, your .swf isn't busy in a loop, no security issues
involved, etc. I'd use the debug Flash player and FlashDevelop to
trace out what happens when the button is clicked.

Cordially,

Kerry Thompson
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Regain stage focus

2010-05-29 Thread Karina Steffens
This is getting weirder by the moment...

It's not even a question of regaining focus anymore, but why is it losing it
in the first place?

When first going to the page, the rollovers work fine with no need to
activate. 
Then if you click somewhere on the page (or even a different window) without
scrolling, it's still ok. 
But after scrolling the page (scrollbar or scroll wheel), the rollovers stop
responding until you click somewhere in the movie. 
More than that, in Safari (Windows) I can't even click anywhere anymore -
it becomes completely unresponsive.

HOWEVER - I found plenty of examples of flash movies embedded in html that
didn't do it, including some of my own.
 
I'm using SwfObject2 to embed the flash (in a CMS Made Simple Framework).
Could that have anything to do with it? 

The generated object looks like this:

object style=visibility: visible; data=uploads/theme/menu.swf
name=menu id=flash-menu type=application/x-shockwave-flash width=900
align=left height=35param value=true name=playparam value=true
name=loopparam value=false name=menuparam value=high
name=qualityparam value=showall name=scaleparam value=t
name=salignparam value=transparent name=wmodeparam value=#FF
name=bgcolorparam value=false name=devicefontparam value=true
name=seamlesstabbingparam value=false name=swliveconnectparam
value=false name=allowfullscreenparam value=sameDomain
name=allowscriptaccessparam value=all name=allownetworking/object
script type=text/javascript


Karina

PS: The links problem is solved. Using an attribute instead of an element in
the XML to store the url did it. 




 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Kerry Thompson
 Sent: 29 May 2010 7:06
 To: Flash Coders List
 Subject: Re: [Flashcoders] Regain stage focus
 
 Karina Steffens wrote:
 
  You mean rains, right? :P
 
 Darn! My e-mail program drops keystrokes. Don't know why--I'm using
 the GMail Web interface. I just type too fast.
 
 
  So, there's no way to regain (or at least to rain...) focus without
 clicking
  at all? Not even by using a mouseover event or a timer inside flash?
 
 No, not as far as I know. You can set the focus on an input field, of
 course, but that won't take effect until the user gives your .swf
 focus. You understand the security issues, so I won't belabor them.
 
 I've run into the same problem. I'm writing a math game where the
 user's response time is important. If they have to click on the
 browser window before typing the answer, that skews the results. We
 got around it by having the user log in, so the browser window should
 have focus when the problem is presented. If the user switches to
 another program--say, during the intoduction--we have no way of
 getting focus back until the user clicks on the browser. I'm working
 with a couple of the best in the business--Mark Jonkman and Raman
 Pfaf--and they both tell me the same.
 
  And more rain on my parade: After uploading the flash movie to the
 server,
  some of the links in the dropdown menu have stopped working -
 clicking on
  the doesn't do anything, while others seem to be ok. And it's
 arbitrary per
  click... And this appears to be cross browser, while locally it's
 fine. Any
  ideas what I should be looking for here?
 
 Not much. I assume you've checked the usual culprits--the URL is
 formed correctly, your .swf isn't busy in a loop, no security issues
 involved, etc. I'd use the debug Flash player and FlashDevelop to
 trace out what happens when the button is clicked.
 
 Cordially,
 
 Kerry Thompson
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders