Hi Alex,
I think , I failed to communicate the real issue. Let me try to
explain it
The issue is with callBack ,what is happening is as soon you hide Flex
application by opening another application(any app) and then again you
come back to your flex app , call back does not work , they are
broken.I found following related jira for this.
http://bugs.adobe.com/jira/browse/FP-143
To solve this issue , I am re-registering all callBacks on ENTER_FRAME
event and issue appears to be solved but this is leading to memory
leak.
Neither Activate nor FocusEvent.FOCUS_IN does serve my purpose , both
required a mouse Clk before they dispached.
Workaroud for any of the above will solve my problem. I am wondering If
there is any event which gets fired when I swich back to the flex app
again.
My application is hosted as ActiveX control and I m calling callback
from Dot Net application.
Regard,
Dharmendra
--- In [email protected], Alex Harui <aha...@...> wrote:
>
> ExternalInteface.addCallback does lock whatever function you pass it
and the object associated with it. To avoid that you register a
function in the main app with ExternalInterface since you won't be
destroying the main app until you are truly done, then have it call
anybody you need.
>
> To deal with knowing when setFocus gets called try FocusEvent.FOCUS_IN
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
>
> From: [email protected] [mailto:[email protected]]
On Behalf Of Manish Jethani
> Sent: Wednesday, May 27, 2009 1:43 PM
> To: [email protected]
> Subject: Re: [flexcoders] Need Alternative for enterFrame event
(Causing Memory leak )
>
>
>
>
>
> On Thu, May 28, 2009 at 1:38 AM, Dharmendra Chauhan
> chauhan_i...@...<mailto:chauhan_icse%40yahoo.com>> wrote:
>
> > Please , suggest some alternative for EnterFrame event which gets
fired on set focus event.
>
> activate?
>
> Manish
>