Good to know you figured it out.  This is a good reminder about the risks
of using generic folder/package names like "components".

-Alex

On 12/5/17, 9:02 AM, "Fréderic Cox" <coxfrede...@gmail.com> wrote:

>Hi Alex,
>
>Thanks for helping me figuring this out! You were right (as always .. ;-))
>I was using a new theme and it has a built-in components.DashboardIcon
>which was different then the components.DashboardIcon class in this older
>project that now uses the new theme.
>
>Now it works as I deleted the old components.DashboardIcon.
>
>Thanks for the help!
>
>Best regards,
>
>Fréderic
>
>On Fri, Dec 1, 2017 at 6:41 PM, Alex Harui <aha...@adobe.com.invalid>
>wrote:
>
>> Hard to say for sure.  It looks like there is a binding to the width of
>> something.  If you don't have lots of binding expressions maybe you can
>> find the binding to width (probably from DashboardIcon.width)
>>
>> Also, further down in the stack trace, I see:
>>
>>    "Cannot create property icon on components.DashboardIcon."
>>
>>
>> That makes me wonder if you have a different DashboardIcon in the source
>> paths of your Mac build.  I think if you SWFDump the SWF it will show
>>you
>> the path to the actual DashboardIcon that was used.
>>
>> HTH,
>> -Alex
>>
>> On 12/1/17, 4:48 AM, "Fréderic Cox" <coxfrede...@gmail.com> wrote:
>>
>> >Hi,
>> >
>> >I'm having a strange issue with an existing project.
>> >The project is built with Flex 4.15 and AIR 20. In order to solve a
>> >particular issue I need to use AIR27.
>> >
>> >I re-added the project (which I didn't work on for 6 months) in Flash
>> >Builder and saw it was selecting 4.15 SDK with AIR20.
>> >
>> >I opened VMWare to check the Windows version and also there it uses
>>4.15
>> >SDK with AIR20.
>> >
>> >I then selected 4.15 SDK on Mac with AIR27 and noticed the following
>>error
>> >when opening the application:
>> >
>> >TypeError: Error #1010: A term is undefined and has no properties.
>> >    at
>> >mx.binding::Watcher/notifyListeners()[D:\flex_sdk\
>> Sources\flex-sdk\framewo
>> >rks\projects\framework\src\mx\binding\Watcher.as:317]
>> >    at
>> >mx.binding::PropertyWatcher/eventHandler()[D:\flex_sdk\
>> Sources\flex-sdk\fr
>> >ameworks\projects\framework\src\mx\binding\PropertyWatcher.as:385]
>> >    at flash.events::EventDispatcher/dispatchEventFunction()
>> >    at flash.events::EventDispatcher/dispatchEvent()
>> >    at
>> >mx.core::UIComponent/dispatchEvent()[D:\flex_sdk\
>> Sources\flex-sdk\framewor
>> >ks\projects\framework\src\mx\core\UIComponent.as:13688]
>> >    at mx.core::UIComponent/set
>> >width()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\
>> framework\src\mx\
>> >core\UIComponent.as:2883]
>> >    at spark.components::Group/set
>> >width()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\
>> spark\src\spark\c
>> >omponents\Group.as:362]
>> >    at
>> >components::DashboardIcon()[/Users/frederic/Desktop/Exuvis/
>> Mediahuis/MHCFl
>> >exLibrary/src/components/DashboardIcon.mxml:3]
>> >    at views::DashboardView/_DashboardView_DashboardIcon1_i()
>> >    at
>> >views::DashboardView/_DashboardView_Group1_i()[/
>> Users/frederic/Desktop/Exu
>> >vis/CityFashion/CityFashionTransferLib/src/views/DashboardView.mxml:3]
>> >    at views::DashboardView/_DashboardView_Array3_c()
>> >    at
>> >mx.core::DeferredInstanceFromFunction/getInstance()[D:\flex_sdk\
>> Sources\fl
>> >ex-sdk\frameworks\projects\framework\src\mx\core\
>> DeferredInstanceFromFunct
>> >ion.as:116]
>> >    at
>> >spark.components::SkinnableContainer/createDeferredContent()[D:\
>> flex_sdk\S
>> >ources\flex-sdk\frameworks\projects\spark\src\spark\
>> components\SkinnableCo
>> >ntainer.as:1091]
>> >    at
>> >spark.components::SkinnableContainer/createContentIfNeeded()[D:\
>> flex_sdk\S
>> >ources\flex-sdk\frameworks\projects\spark\src\spark\
>> components\SkinnableCo
>> >ntainer.as:1120]
>> >    at
>> >spark.components::SkinnableContainer/createChildren()[D:\flex_sdk\
>> Sources\
>> >flex-sdk\frameworks\projects\spark\src\spark\components\
>> SkinnableContainer
>> >.as:915]
>> >    at
>> >mx.core::UIComponent/initialize()[D:\flex_sdk\
>> Sources\flex-sdk\frameworks\
>> >projects\framework\src\mx\core\UIComponent.as:7695]
>> >    at
>> >spark.components::View/initialize()[D:\flex_sdk\
>> Sources\flex-sdk\framework
>> >s\projects\mobilecomponents\src\spark\components\View.as:1008]
>> >    at views::DashboardView/initialize()
>> >    at mx.core::UIComponent/
>> >http://www.adobe.com/2006/flex/mx/internal::childAdded()[D
>> >:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\
>> src\mx\core\UICo
>> >mponent.as:7556]
>> >    at
>> >mx.core::UIComponent/addChildAt()[D:\flex_sdk\
>> Sources\flex-sdk\frameworks\
>> >projects\framework\src\mx\core\UIComponent.as:7260]
>> >    at
>> >spark.components::Group/addDisplayObjectToDisplayList(
>> )[D:\flex_sdk\Source
>> 
>>>s\flex-sdk\frameworks\projects\spark\src\spark\components\Group.as:2116]
>> >    at spark.components::Group/
>> >http://www.adobe.com/2006/flex/mx/internal::elementAdded()[D
>> >:\flex_sdk\Sources\flex-sdk\frameworks\projects\spark\src\
>> spark\components
>> >\Group.as:1707]
>> >    at
>> >spark.components::Group/addElementAt()[D:\flex_sdk\
>> Sources\flex-sdk\framew
>> >orks\projects\spark\src\spark\components\Group.as:1466]
>> >    at
>> >spark.components::Group/addElement()[D:\flex_sdk\
>> Sources\flex-sdk\framewor
>> >ks\projects\spark\src\spark\components\Group.as:1424]
>> >    at
>> >spark.components::SkinnableContainer/addElement(
>> )[D:\flex_sdk\Sources\flex
>> >-sdk\frameworks\projects\spark\src\spark\components\
>> SkinnableContainer.as:
>> >777]
>> >    at
>> >spark.components::ViewNavigator/createViewInstance()[D:\flex_
>> sdk\Sources\f
>> >lex-sdk\frameworks\projects\mobilecomponents\src\spark\
>> components\ViewNavi
>> >gator.as:2026]
>> >    at
>> >spark.components::ViewNavigator/commitNavigatorAction()[D:\
>> flex_sdk\Source
>> >s\flex-sdk\frameworks\projects\mobilecomponents\src\
>> spark\components\ViewN
>> >avigator.as:1940]
>> >    at
>> >spark.components::ViewNavigator/commitProperties()[D:\flex_
>> sdk\Sources\fle
>> >x-sdk\frameworks\projects\mobilecomponents\src\spark\
>> components\ViewNaviga
>> >tor.as:1309]
>> >    at
>> >mx.core::UIComponent/validateProperties()[D:\flex_
>> sdk\Sources\flex-sdk\fra
>> >meworks\projects\framework\src\mx\core\UIComponent.as:8751]
>> >    at
>> >mx.managers::LayoutManager/validateProperties()[D:\flex_
>> sdk\Sources\flex-s
>> >dk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:601]
>> >    at
>> >mx.managers::LayoutManager/doPhasedInstantiation()[D:\
>> flex_sdk\Sources\fle
>> 
>>>x-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:817
>>>]
>> >    at
>> >mx.managers::LayoutManager/doPhasedInstantiationCallback(
>> )[D:\flex_sdk\Sou
>> >rces\flex-sdk\frameworks\projects\framework\src\mx\
>> managers\LayoutManager.
>> >as:1191]
>> >    at flash.utils::Timer/_timerDispatch()
>> >    at flash.utils::Timer/tick()
>> >ReferenceError: Error #1056: Cannot create property icon on
>> >components.DashboardIcon.
>> >    at
>> >views::DashboardView/_DashboardView_DashboardIcon1_
>> i()[/Users/frederic/Des
>> >ktop/Exuvis/CityFashion/CityFashionTransferLib/src/
>> views/DashboardView.mxm
>> >l:3]
>> >    at
>> >views::DashboardView/_DashboardView_Group1_i()[/
>> Users/frederic/Desktop/Exu
>> >vis/CityFashion/CityFashionTransferLib/src/views/DashboardView.mxml:3]
>> >    at views::DashboardView/_DashboardView_Array3_c()
>> >    at
>> >mx.core::DeferredInstanceFromFunction/getInstance()[D:\flex_sdk\
>> Sources\fl
>> >ex-sdk\frameworks\projects\framework\src\mx\core\
>> DeferredInstanceFromFunct
>> >ion.as:116]
>> >    at
>> >spark.components::SkinnableContainer/createDeferredContent()[D:\
>> flex_sdk\S
>> >ources\flex-sdk\frameworks\projects\spark\src\spark\
>> components\SkinnableCo
>> >ntainer.as:1091]
>> >    at
>> >spark.components::SkinnableContainer/createContentIfNeeded()[D:\
>> flex_sdk\S
>> >ources\flex-sdk\frameworks\projects\spark\src\spark\
>> components\SkinnableCo
>> >ntainer.as:1120]
>> >    at
>> >spark.components::SkinnableContainer/createChildren()[D:\flex_sdk\
>> Sources\
>> >flex-sdk\frameworks\projects\spark\src\spark\components\
>> SkinnableContainer
>> >.as:915]
>> >    at
>> >mx.core::UIComponent/initialize()[D:\flex_sdk\
>> Sources\flex-sdk\frameworks\
>> >projects\framework\src\mx\core\UIComponent.as:7695]
>> >    at
>> >spark.components::View/initialize()[D:\flex_sdk\
>> Sources\flex-sdk\framework
>> >s\projects\mobilecomponents\src\spark\components\View.as:1008]
>> >    at views::DashboardView/initialize()
>> >    at mx.core::UIComponent/
>> >http://www.adobe.com/2006/flex/mx/internal::childAdded()[D
>> >:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\
>> src\mx\core\UICo
>> >mponent.as:7556]
>> >    at
>> >mx.core::UIComponent/addChildAt()[D:\flex_sdk\
>> Sources\flex-sdk\frameworks\
>> >projects\framework\src\mx\core\UIComponent.as:7260]
>> >    at
>> >spark.components::Group/addDisplayObjectToDisplayList(
>> )[D:\flex_sdk\Source
>> 
>>>s\flex-sdk\frameworks\projects\spark\src\spark\components\Group.as:2116]
>> >    at spark.components::Group/
>> >http://www.adobe.com/2006/flex/mx/internal::elementAdded()[D
>> >:\flex_sdk\Sources\flex-sdk\frameworks\projects\spark\src\
>> spark\components
>> >\Group.as:1707]
>> >    at
>> >spark.components::Group/addElementAt()[D:\flex_sdk\
>> Sources\flex-sdk\framew
>> >orks\projects\spark\src\spark\components\Group.as:1466]
>> >    at
>> >spark.components::Group/addElement()[D:\flex_sdk\
>> Sources\flex-sdk\framewor
>> >ks\projects\spark\src\spark\components\Group.as:1424]
>> >    at
>> >spark.components::SkinnableContainer/addElement(
>> )[D:\flex_sdk\Sources\flex
>> >-sdk\frameworks\projects\spark\src\spark\components\
>> SkinnableContainer.as:
>> >777]
>> >    at
>> >spark.components::ViewNavigator/createViewInstance()[D:\flex_
>> sdk\Sources\f
>> >lex-sdk\frameworks\projects\mobilecomponents\src\spark\
>> components\ViewNavi
>> >gator.as:2026]
>> >    at
>> >spark.components::ViewNavigator/commitNavigatorAction()[D:\
>> flex_sdk\Source
>> >s\flex-sdk\frameworks\projects\mobilecomponents\src\
>> spark\components\ViewN
>> >avigator.as:1940]
>> >    at
>> >spark.components::ViewNavigator/commitProperties()[D:\flex_
>> sdk\Sources\fle
>> >x-sdk\frameworks\projects\mobilecomponents\src\spark\
>> components\ViewNaviga
>> >tor.as:1309]
>> >    at
>> >mx.core::UIComponent/validateProperties()[D:\flex_
>> sdk\Sources\flex-sdk\fra
>> >meworks\projects\framework\src\mx\core\UIComponent.as:8751]
>> >    at
>> >mx.managers::LayoutManager/validateProperties()[D:\flex_
>> sdk\Sources\flex-s
>> >dk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:601]
>> >    at
>> >mx.managers::LayoutManager/doPhasedInstantiation()[D:\
>> flex_sdk\Sources\fle
>> 
>>>x-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:817
>>>]
>> >    at
>> >mx.managers::LayoutManager/doPhasedInstantiationCallback(
>> )[D:\flex_sdk\Sou
>> >rces\flex-sdk\frameworks\projects\framework\src\mx\
>> managers\LayoutManager.
>> >as:1191]
>> >    at flash.utils::Timer/_timerDispatch()
>> >    at flash.utils::Timer/tick()
>> >
>> >So after that I checked with Flex 4.15 and AIR 20 but still the same
>>error
>> >occured.
>> >The strange thing is when I check the Windows version with SDK 4.15 no
>> >errors are coming .. so I don't know what the problem is.
>> >
>> >Can anyone help me on this? Codebases for Windows and Mac version are
>> >identical so I can't understand the problem, also not when looking at
>>the
>> >call stack.
>> >
>> >Any help is much appreciated
>>
>>

Reply via email to