Closed GoogleCodeExporter closed 8 years ago
Managed to resolve it somewhat, now after Iframe is removed it's being GC-ed.
However debug shows that hide for Iframe is still called twice for same object
-
first with null _frameId and then with correct _frameId.
/**
* Triggered by removal of this object from the stage.
*
* @param event Event trigger
*/
protected function handleRemove(event:Event = null):void
{
logger.debug("The component for the IFrame with id '{0}' has been
removed from the stage.", _frameId);
var current:DisplayObjectContainer = parent;
// Remove all event listeners to allow GC to collect this object
this.removeEventListener(Event.REMOVED_FROM_STAGE, handleRemove);
this.removeEventListener(Event.ADDED_TO_STAGE, handleAdd);
systemManager.removeEventListener(Event.ADDED,
systemManager_addedHandler);
systemManager.removeEventListener(Event.REMOVED,
systemManager_removedHandler);
current.removeEventListener(IndexChangedEvent.CHANGE, handleChange);
current.removeEventListener(MoveEvent.MOVE, handleMove);
//Alert.show("Calling updateFrameVisibility from handleRemove with
false");
updateFrameVisibility(false);
}
Original comment by andrei.i...@gmail.com
on 31 Dec 2009 at 12:07
Original comment by Julien.N...@gmail.com
on 14 May 2010 at 4:59
Moved to https://github.com/nicoulaj/flex-iframe/issues/43
Original comment by Julien.N...@gmail.com
on 8 May 2011 at 1:25
Original comment by Julien.N...@gmail.com
on 8 May 2011 at 1:25
Original comment by Julien.N...@gmail.com
on 8 May 2011 at 1:25
Original issue reported on code.google.com by
andrei.i...@gmail.com
on 30 Dec 2009 at 5:04