Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-28-2009, 08:29 PM   PM User | #1
Dharmendra
New to the CF scene

 
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Dharmendra is an unknown quantity at this point
Need Alternative for enterFrame event (Causing Memory leak )

I am facing a callBack lost issue ExternalInterface,what is happening is as soon as 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
Dharmendra is offline   Reply With Quote
Old 05-29-2009, 06:09 PM   PM User | #2
itsallkizza
Senior Coder

 
Join Date: Oct 2008
Location: Long Beach
Posts: 1,196
Thanks: 36
Thanked 164 Times in 164 Posts
itsallkizza will become famous soon enough
You can run an onEnterFrame that uses a JS call to the browser window hosting your app and requests the window's outerWidth/Height dimensions. If the dimensions fall below 200 it's likely the window has been minimized. If the browser is minimized, then maximized again, then you can re-initialize your handlers. This may cause less of a memory leak then re-reging all your handlers every frame, but then again it may not.

You could also consider re-reging every third frame or something. This would at least cut the script down considerably.
__________________
Feel free to e-mail me if I forget to respond ;)
ohsosexybrit@gmail.com
itsallkizza is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:52 PM.


Advertisement
Log in to turn off these ads.