Select to view content in your preferred language

Question about letting my old widget (2.3 versin) pointing to new flex API 2.4

799
2
09-12-2011 06:48 AM
LeiZhou
Deactivated User
I tried to point my old widget (2.3 versin) to new flex API 2.4 --I add new swc file to the lib folder and delete the old one.

But it throws ActionScript errors as the following:  I was wondering, is it possible to let 2.3 widgets pointing to Flex API 2.4? Thanks!

TypeError: Error #1034: Type Coercion failed: cannot convert mx.controls::VSlider@cd68c29 to spark.components.supportClasses.SliderBase.
 at spark.components.supportClasses::SkinnableComponent/skin_propertyChangeHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at widgets.Navigation::NavigationSkin/set slider()
 at widgets.Navigation::NavigationSkin/_NavigationSkin_VSlider1_i()
 at mx.core::DeferredInstanceFromFunction/getInstance()
 at mx.states::AddItems/createInstance()
 at mx.states::AddItems/initialize()
 at mx.states::State/http://www.adobe.com/2006/flex/mx/internal::initialize()
 at mx.core::UIComponent/initializeState()
 at mx.core::UIComponent/commitCurrentState()
 at mx.core::UIComponent/commitProperties()
 at spark.components.supportClasses::GroupBase/commitProperties()
 at spark.components::Group/commitProperties()
 at mx.core::UIComponent/validateProperties()
 at mx.managers::LayoutManager/validateProperties()
 at mx.managers::LayoutManager/doPhasedInstantiation()
 at mx.managers::LayoutManager/doPhasedInstantiationCallback()
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Steven,

  No the NavigationWidget was updated to use Skins in 2.4 so it is not backwards compatible.
0 Kudos
LeiZhou
Deactivated User
Thanks a lot! I find the NatigationSkin.mxml file, and change the <mx:VSlider> to <s:VSlider>, then it works.



I tried to point my old widget (2.3 versin) to new flex API 2.4 --I add new swc file to the lib folder and delete the old one.

But it throws ActionScript errors as the following:  I was wondering, is it possible to let 2.3 widgets pointing to Flex API 2.4? Thanks!

TypeError: Error #1034: Type Coercion failed: cannot convert mx.controls::VSlider@cd68c29 to spark.components.supportClasses.SliderBase.
 at spark.components.supportClasses::SkinnableComponent/skin_propertyChangeHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at widgets.Navigation::NavigationSkin/set slider()
 at widgets.Navigation::NavigationSkin/_NavigationSkin_VSlider1_i()
 at mx.core::DeferredInstanceFromFunction/getInstance()
 at mx.states::AddItems/createInstance()
 at mx.states::AddItems/initialize()
 at mx.states::State/http://www.adobe.com/2006/flex/mx/internal::initialize()
 at mx.core::UIComponent/initializeState()
 at mx.core::UIComponent/commitCurrentState()
 at mx.core::UIComponent/commitProperties()
 at spark.components.supportClasses::GroupBase/commitProperties()
 at spark.components::Group/commitProperties()
 at mx.core::UIComponent/validateProperties()
 at mx.managers::LayoutManager/validateProperties()
 at mx.managers::LayoutManager/doPhasedInstantiation()
 at mx.managers::LayoutManager/doPhasedInstantiationCallback()
0 Kudos