rldjrsksl / flex-iframe

Automatically exported from code.google.com/p/flex-iframe
0 stars 0 forks source link

Doesn't work with MDIWindows project - http://code.google.com/p/flexmdi/ #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Added the IFrame to the main mxml file and referenced the IFrame.as file
2. Added wmode and opaque to the index.template.html file
3.

What is the expected output? What do you see instead?
Expected to see an IFrame inside of the MDIWindow. Instead for IE 6 it
brings up Initializing and freezes. For Mozilla/5.0 I get the following error:

TypeError: Error #1009: Cannot access a property or method of a null object
reference.
    at
mx.utils::URLUtil$/getProtocol()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\uti
ls\URLUtil.as:199]
    at
IFrame/createChildren()[C:\april2008prefuseflare_workspace\CairngormRST\src\IFra
me.as:353]
    at
mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src
\mx\core\UIComponent.as:5262]
    at
mx.core::Container/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\m
x\core\Container.as:2524]
    at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:
\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5159]
    at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\d
ev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3297]
    at
mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\m
x\core\Container.as:2210]
    at
mx.core::Container/addChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\
core\Container.as:2140]
    at
mx.core::Container/createComponentFromDescriptor()[E:\dev\3.0.x\frameworks\proje
cts\framework\src\mx\core\Container.as:3673]
    at
mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.0.x\frameworks\pro
jects\framework\src\mx\core\Container.as:3485]
    at
mx.containers::Panel/createComponentsFromDescriptors()[E:\dev\3.0.x\frameworks\p
rojects\framework\src\mx\containers\Panel.as:1526]
    at
mx.core::Container/createChildren()[E:\dev\3.0.x\frameworks\projects\framework\s
rc\mx\core\Container.as:2587]
    at
mx.containers::Panel/createChildren()[E:\dev\3.0.x\frameworks\projects\framework
\src\mx\containers\Panel.as:1054]
    at
flexmdi.containers::MDIWindow/createChildren()[C:\april2008prefuseflare_workspac
e\flexmdi\flexmdi\containers\MDIWindow.as:777]
    at
mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src
\mx\core\UIComponent.as:5262]
    at
mx.core::Container/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\m
x\core\Container.as:2524]
    at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:
\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5159]
    at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\d
ev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3297]
    at
mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\m
x\core\Container.as:2210]
    at
mx.core::Container/addChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\
core\Container.as:2140]
    at
mx.core::Container/createComponentFromDescriptor()[E:\dev\3.0.x\frameworks\proje
cts\framework\src\mx\core\Container.as:3673]
    at
mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.0.x\frameworks\pro
jects\framework\src\mx\core\Container.as:3485]
    at
mx.core::Container/createChildren()[E:\dev\3.0.x\frameworks\projects\framework\s
rc\mx\core\Container.as:2587]
    at
mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src
\mx\core\UIComponent.as:5262]
    at
mx.core::Container/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\m
x\core\Container.as:2524]
    at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:
\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5159]
    at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\d
ev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3297]
    at
mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\m
x\core\Container.as:2210]
    at
mx.core::Container/addChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\
core\Container.as:2140]
    at
mx.core::Container/createComponentFromDescriptor()[E:\dev\3.0.x\frameworks\proje
cts\framework\src\mx\core\Container.as:3673]
    at
mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.0.x\frameworks\pro
jects\framework\src\mx\core\Container.as:3485]
    at
mx.core::Container/createChildren()[E:\dev\3.0.x\frameworks\projects\framework\s
rc\mx\core\Container.as:2587]
    at
mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src
\mx\core\UIComponent.as:5262]
    at
mx.core::Container/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\m
x\core\Container.as:2524]
    at
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:
\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5159]
    at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\d
ev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:3297]
    at
mx.core::Container/addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\m
x\core\Container.as:2210]
    at
mx.core::Container/addChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\
core\Container.as:2140]
    at
mx.core::Container/createComponentFromDescriptor()[E:\dev\3.0.x\frameworks\proje
cts\framework\src\mx\core\Container.as:3673]
    at
mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.0.x\frameworks\pro
jects\framework\src\mx\core\Container.as:3485]
    at
mx.core::Container/createChildren()[E:\dev\3.0.x\frameworks\projects\framework\s
rc\mx\core\Container.as:2587]
    at
mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src
\mx\core\UIComponent.as:5262]
    at
mx.core::Container/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\m
x\core\Container.as:2524]
    at
mx.core::Application/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src
\mx\core\Application.as:847]
    at
AppMainRST/initialize()[C:\april2008prefuseflare_workspace\CairngormRST\src\AppM
ainRST.mxml:0]
    at
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdde
d()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:
1625]
    at
mx.managers::SystemManager/initializeTopLevelWindow()[E:\dev\3.0.x\frameworks\pr
ojects\framework\src\mx\managers\SystemManager.as:2482]
    at
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameH
andler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManage
r.as:2330]

What version of the product are you using? On what operating system?
I'm using fb3_1_3_2.zip with Windows XP Enterprise.

Please provide any additional information below.

Original issue reported on code.google.com by happiebi...@gmail.com on 11 Nov 2008 at 10:24

GoogleCodeExporter commented 8 years ago
I get the same error message (or at least the beginning) every time I try to use
iFrames in Firefox (and sometimes IE just doesn't work). I'm not sure whether 
using
MDIWindows changes anything, but a quick fix I used is to simply set the String 
"url"
to the URL of your Flex application html instead of to
"BrowserManager.getInstance().url" in the function createChildren() (This is 
around
line 352 in the latest version of IFrame.as I think). However, you'll have to 
do this
for every page you have, so it's not a long-term fix. 

Original comment by ibwo...@yahoo.com on 18 Nov 2008 at 5:13

GoogleCodeExporter commented 8 years ago
I use it with MDIWindows without any problem.

Original comment by primo...@gmail.com on 4 Jul 2009 at 9:57

GoogleCodeExporter commented 8 years ago
Could you provide the code of a sample application reproducing the bug ?

Original comment by Julien.N...@gmail.com on 2 Oct 2009 at 7:48

GoogleCodeExporter commented 8 years ago
If there is a bug, this is not due to flexlib's MDI windows.
You can check out the project I'm working on, we made a full integration between
flex-iframe and Flelib's MDI windows: http://jasmine.ow2.org (sub-project 
Kerneos).

Original comment by Julien.N...@gmail.com on 7 Oct 2009 at 11:21