I needed to know which object was in Focus, so I imported the FocusManager
from the fl.managers package which is not included in AS projects in Flex.
The whole library is rather bloated, and contains loads of warnings.
Is there some other FocusManager I should be using for an AS3 project in
Flex?
I needed to know which object was in Focus, so I imported the FocusManager
from the fl.managers package which is not included in AS projects in Flex.
The whole library is rather bloated, and contains loads of warnings.
Is there some other FocusManager I should be using for an AS3 project in
Flex?
Never encountered it; but try compiling a reference to FocusManager
into swf A. This sometimes solves that sort of odd problem with Adobe
code.
i.e. in SWF A, something like:
import fl.managers.FocusManager;
:
// in class def
private static var _dummy:FocusManager;
On Thu, Oct 30, 2008 at 4:19
Hey people,
Light please?
-- Forwarded message --
From: Daniel Boey <[EMAIL PROTECTED]>
Date: Wed, Oct 29, 2008 at 11:30 PM
Subject: FocusManager in External SWF
To: flashcoders@chattyfig.figleaf.com
Hi people,
I was able to get FocusManager to work properly in let's call it, S
Hi people,
I was able to get FocusManager to work properly in let's call it, SWF B.
But when I load SWF B into SWF A, I get an error,
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at fl.managers::FocusManager/activate()
at fl.managers::FocusManager
I finally figured it out!
When you press on an element in a component you don't call setFocus,
but pressFocus() instead! And don't forget the releaseFocus() as well.
This sets a fake focus on component and a true focus on the element so
that you're still able to interact with the element.
Man tha
Well, I'd be truly surprised if that would work, but I'l try tomorrow
when I'm at work again :)
Thanks for the tip.
Bart
2007/8/21, John laPlante <[EMAIL PROTECTED]>:
> Go ahead and try that and I bet it will work.
>
> Bart Wttewaall wrote:
> > Thanks for replying John,
> >
> > But no, I never us
Go ahead and try that and I bet it will work.
Bart Wttewaall wrote:
Thanks for replying John,
But no, I never use _root, nor _level.
I'm calling this from a clickHandler within my component's class.
Like this (pseudocode):
class Joystick extends UIComponent {
...
public function init() {
...
Thanks for replying John,
But no, I never use _root, nor _level.
I'm calling this from a clickHandler within my component's class.
Like this (pseudocode):
class Joystick extends UIComponent {
...
public function init() {
...
tabEnabled = true;
tabChildren = false;
...
}
private function onRele
Are you using calling this relative to _root or _level0?
_root.focusManager.setFocus
Bart Wttewaall wrote:
Hi list,
I'm having trouble with the focusmanager. I created a Joystick
component that should be able to receive focus using the tab-key
(tabIndex) or by clicking it.
Since it extends UIC
Hi list,
I'm having trouble with the focusmanager. I created a Joystick
component that should be able to receive focus using the tab-key
(tabIndex) or by clicking it.
Since it extends UIComponent, implementing the tabIndex version is
easy; at init, set tabEnabled to true and tabChildren to false.
11 matches
Mail list logo