1009 error with a simple implementation

7 views
Skip to first unread message

Alphaflex

unread,
Nov 17, 2009, 8:42:45 AM11/17/09
to Flex-IFrame
Hello yesterday i found your package, this is a great idea, i want to
try it with an FCKEditor inside... but

I try it as implementation you give in the doc and Iframe give me an
error

The iFrame is on a ViewStack (bad issue?)

<flexiframe:IFrame id="googleIFrame" label="Google" source="http://
www.google.com" width="80%" height="80%"/>

This is the error -->
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou
à la méthode d'une référence d'objet nul.
at com.google.code.flexiframe::IFrame/createChildren()[/home/nicoulaj/
workspaces/flexiframe/flexiframe/src/com/google/code/flexiframe/
IFrame.as:252]
at mx.core::UIComponent/initialize()[E:\dev\gumbo_beta2\frameworks
\projects\framework\src\mx\core\UIComponent.as:6874]
at mx.core::Container/initialize()[E:\dev\gumbo_beta2\frameworks
\projects\framework\src\mx\core\Container.as:3090]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/
internal::childAdded()[E:\dev\gumbo_beta2\frameworks\projects\framework
\src\mx\core\UIComponent.as:6766]
at mx.core::UIComponent/addChildAt()[E:\dev\gumbo_beta2\frameworks
\projects\framework\src\mx\core\UIComponent.as:6473]
at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components\Group.as:
1711]
at spark.components::Group/http://www.adobe.com/2006/flex/mx/
internal::elementAdded()[E:\dev\gumbo_beta2\frameworks\projects\spark
\src\spark\components\Group.as:1308]
at spark.components::Group/setMXMLContent()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components\Group.as:
503]
at spark.components::Group/set mxmlContent()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components\Group.as:
443]
at spark.components::SkinnableContainer/set mxmlContent()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components
\SkinnableContainer.as:462]
at spark.components::SkinnableContainer/createDeferredContent()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components
\SkinnableContainer.as:847]
at spark.components::SkinnableContainer/createContentIfNeeded()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components
\SkinnableContainer.as:877]
at spark.components::SkinnableContainer/createChildren()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components
\SkinnableContainer.as:685]
at mx.core::UIComponent/initialize()[E:\dev\gumbo_beta2\frameworks
\projects\framework\src\mx\core\UIComponent.as:6874]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/
internal::childAdded()[E:\dev\gumbo_beta2\frameworks\projects\framework
\src\mx\core\UIComponent.as:6766]
at mx.core::UIComponent/addChildAt()[E:\dev\gumbo_beta2\frameworks
\projects\framework\src\mx\core\UIComponent.as:6473]
at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components\Group.as:
1711]
at spark.components::Group/http://www.adobe.com/2006/flex/mx/
internal::elementAdded()[E:\dev\gumbo_beta2\frameworks\projects\spark
\src\spark\components\Group.as:1308]
at spark.components::Group/setMXMLContent()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components\Group.as:
503]
at spark.components::Group/set mxmlContent()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components\Group.as:
443]
at spark.components::SkinnableContainer/set mxmlContent()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components
\SkinnableContainer.as:462]
at spark.components::SkinnableContainer/createDeferredContent()[E:\dev
\gumbo_beta2\frameworks\projects\spark\src\spark\components
\SkinnableContainer.as:847]
at mx.containers::ViewStack/instantiateSelectedChild()[E:\dev
\gumbo_beta2\frameworks\projects\framework\src\mx\containers
\ViewStack.as:1247]
at mx.containers::ViewStack/commitProperties()[E:\dev
\gumbo_beta2\frameworks\projects\framework\src\mx\containers
\ViewStack.as:746]
at mx.core::UIComponent/validateProperties()[E:\dev
\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:
7387]
at mx.managers::LayoutManager/validateProperties()[E:\dev
\gumbo_beta2\frameworks\projects\framework\src\mx\managers
\LayoutManager.as:572]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev
\gumbo_beta2\frameworks\projects\framework\src\mx\managers
\LayoutManager.as:730]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev
\gumbo_beta2\frameworks\projects\framework\src\mx\managers
\LayoutManager.as:1069]

Maybee is an simple issue but can you help me to understand how to
correct this ?

Thank.

Julien Nicoulaud

unread,
Nov 17, 2009, 9:10:32 AM11/17/09
to flex-...@googlegroups.com
Hi, I think this is because flex-iframe is not ready for Flex 4 yet, see this issue:
http://code.google.com/p/flex-iframe/issues/detail?id=42
The component uses a property that is deprecated in Flex Gumbo. It should not be a big work to correct it looking at the comments.

By the way, this is weird, your stacktrace mentions the path where the library was compiled:
at com.google.code.flexiframe::
IFrame/createChildren()[/home/nicoulaj/workspaces/flexiframe/flexiframe/src/com/google/code/flexiframe/IFrame.as:252]
I had never noticed that.

Another thing: I did not try it with FCKEditor or TinyMCE yet, which are quite Javascript-heavy, some surprises are expectable... If you try it, please tell us how it went and give us some feedback !


2009/11/17 Alphaflex <flex...@gmail.com>

Reply all
Reply to author
Forward
0 new messages