Re: Strange error for existing project on Mac while Windows version works with same SDK version
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"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 >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" 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/ >>
Re: Strange error for existing project on Mac while Windows version works with same SDK version
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 Haruiwrote: > 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" 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 >
Re: Strange error for existing project on Mac while Windows version works with same SDK version
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"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
Strange error for existing project on Mac while Windows version works with same SDK version
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\frameworks\projects\framework\src\mx\binding\Watcher.as:317] at mx.binding::PropertyWatcher/eventHandler()[D:\flex_sdk\Sources\flex-sdk\frameworks\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\frameworks\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\components\Group.as:362] at components::DashboardIcon()[/Users/frederic/Desktop/Exuvis/Mediahuis/MHCFlexLibrary/src/components/DashboardIcon.mxml:3] at views::DashboardView/_DashboardView_DashboardIcon1_i() at views::DashboardView/_DashboardView_Group1_i()[/Users/frederic/Desktop/Exuvis/CityFashion/CityFashionTransferLib/src/views/DashboardView.mxml:3] at views::DashboardView/_DashboardView_Array3_c() at mx.core::DeferredInstanceFromFunction/getInstance()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\core\DeferredInstanceFromFunction.as:116] at spark.components::SkinnableContainer/createDeferredContent()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\spark\src\spark\components\SkinnableContainer.as:1091] at spark.components::SkinnableContainer/createContentIfNeeded()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\spark\src\spark\components\SkinnableContainer.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\frameworks\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\UIComponent.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\Sources\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\frameworks\projects\spark\src\spark\components\Group.as:1466] at spark.components::Group/addElement()[D:\flex_sdk\Sources\flex-sdk\frameworks\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\flex-sdk\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:2026] at spark.components::ViewNavigator/commitNavigatorAction()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:1940] at spark.components::ViewNavigator/commitProperties()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\mobilecomponents\src\spark\components\ViewNavigator.as:1309] at mx.core::UIComponent/validateProperties()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:8751] at mx.managers::LayoutManager/validateProperties()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:601] at mx.managers::LayoutManager/doPhasedInstantiation()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:817] at mx.managers::LayoutManager/doPhasedInstantiationCallback()[D:\flex_sdk\Sources\flex-sdk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1191] at flash.utils::Timer/_timerDispatch() at