将Flex 4.5预览版手机应用迁移到正式版的问题

如果你以前用Hero或Flash Builder Burrito开发过手机应用,现在迁移到Flex 4.5正式版上会运行不了。总结了一下,主要有以下问题:

  • 应用描述文件中,AIR的版本从2.5升级2.6;
  • spark.components.MobileApplication被spark.components.ViewNavigatorApplication代替;
  • spark.components.TabbedMobileApplication被spark.components.TabbedViewNavigatorApplication代替;
  • spark.components.MobileIconItemRenderer被now spark.components.IconItemRenderer代替;
  • MobileIconItemRenderer的decoratorClass属性被IconItemRenderericonField的属性代替;
  • FlexEvent.REMOVINGView被NavigatorEvent.REMOVIN代替;
  • FlexEvent.VIEW_ACTIVATE被ViewNavigatorEvent.VIEW_ACTIVATE代替;
  • spark.components.supportClasses.MobileTextField被spark.components.supportClasses.StyleableTextField代替;
  • spark.effects.ViewTransition被spark.transitions.ViewTransitionBase代
  • spark.effects.SlideViewTransition被spark.transitions.SlideViewTransition代替;
  • lineBreak不再是Spark DataGrid的属性;

对于数据持有化,有以下变化:

  • sessionCachingEnabled属性被persistNavigatorState属性代替;
  • FlexEvent.APPLICATION_PERSISTING被FlexEvent.NAVIGATOR_STATE_SAVING代替;
  • FlexEvent.APPLICATION_RESTORING被FlexEvent.NAVIGATOR_STATE_LOADING代替;

发表评论