Maybe you can test if getFocus() is contained within and move focus beforehand
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
florian.salihovic
Sent: Wednesday, December 10, 2008 10:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: UIMovieClip shows nondeterministic behaviour
Hi Alex,
yes indeed, the object gets removed but i don't know how to identify which
component
actually is the source of the problem.
What gets removed is a composite of components, each skind with a UIMovieClip.
Sometimes, when i want to remove it, the error occours. but it is the
sometimes, that bugs
me.
Best regards, Florian
--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex
Harui [EMAIL PROTECTED] wrote:
The indication is that the object somehow got removed from the displaylist on
the
mouseDown.
From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On
Behalf Of
florian.salihovic
Sent: Wednesday, December 10, 2008 4:11 AM
To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] UIMovieClip shows nondeterministic behaviour
I have a pretty big application. The app uses various in Flash created
components.
Everything works fine untill some certain point, which varies from test to
test. At some point, my app crashes with a typeerror:
TypeError: Error #1009: Cannot access a property or method of a null object
reference.
at
mx.flash::UIMovieClip/removeFocusEventListeners()[E:\dev\trunk\frameworks\projects\fla
sh-integration\src\mx\flash\UIMovieClip.as:2466]
at
mx.flash::UIMovieClip/focusOutHandler()[E:\dev\trunk\frameworks\projects\flash-
integration\src\mx\flash\UIMovieClip.as:2509]
at flash.display::Stage/set focus()
at
mx.core::UIComponent/setFocus()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\
core\UIComponent.as:6797]
at
mx.managers::FocusManager/setFocus()[E:\dev\3.1.0\frameworks\projects\framework\sr
c\mx\managers\FocusManager.as:396]
at
mx.managers::FocusManager/mouseDownHandler()[E:\dev\3.1.0\frameworks\projects\fra
mework\src\mx\managers\FocusManager.as:1388]
The stacktrace is not that helpfull to me... seems a similar problem like:
http://bugs.adobe.com/jira/browse/SDK-13182
The error is not reproduceable/hard to reproduce, since it happens randomly
when
trying to remove some displayobjects...
Any infos or help would be appreciated!