Multiple modules with Flex Iframe

75 views
Skip to first unread message

dmacs

unread,
Apr 5, 2011, 12:17:04 PM4/5/11
to Flex-IFrame
Hi.

I have a Flex 4 Application and several modules, two of them use a
FlexIFrame (A and B). These modules are in a viewstack to keep a
navigation history.

- I try to switch from A to B, but sometimes I have the A FlexIFrame
on the B module.
What is the good method to show or hide a FlexIFrame ? ->
removeIFrame() method ? remove the IFrame component from his
container ?

- To fixe some bugs, I create IFrames dynamicaly : I add an IFrame
component when i show A or B and i remove it i leave the module. => i
have less display errors but more javascript and FlexIFrame errors.
These errors are javascript null pointer and frameIds set to null.


Have you used FlexIFrame with modules ?
What is the good method to clean a flexIframe (erase html content and
remove the html iframe from Dom) and to remove its container (the
flexIFrame component in actionscript)

Thanks

dmacs

unread,
Apr 6, 2011, 11:03:10 AM4/6/11
to Flex-IFrame
For information, I have this structure :
<container id="container">
<FlexIFrame>
</container>

When i have displayed a flexIframe, a reference of FlexIFrame Object
is kept unless this line : container.removeAllElements()
I try to manually remove eventListeners (REMOVED_FROM_STAGE and
ADDED_TO_STAGE), but without any changes ...

Sanky

unread,
Jul 23, 2012, 8:37:09 AM7/23/12
to flex-...@googlegroups.com

Even i am facing the same problem that the Iframe stays when we switch to other module.
Any success please let me know about the same.

Thanks in advance
Reply all
Reply to author
Forward
0 new messages