Spark lifecycle changes between Flex 4.5 and 4.6

前端 未结 1 1523
醉酒成梦
醉酒成梦 2020-12-16 21:21

I have recently migrated some of my projects to the shiny new Flex 4.6 SDK. I wasn\'t expecting much trouble since it was only a minor release. But as a matter of fact I got

1条回答
  •  时光说笑
    2020-12-16 21:36

    I think there are two questions in there.

    1 ) The real issue is that if the component lifecycle has changed, I'd like to know exactly what has changed and what parts of my projects might be affected.

    I haven't seen a comprehensive low-level analysis of the differences between the two version. If you are really concerned, and you have the time to spare, you could use a diff tool to compare the source code for the two SDK's. There shouldn't be too many major structural changes - e.g. renamed classes or packages, so it might not be so bad. I expect a lot of classes won't have changed at all.

    2 ) Another issue I just ran into: the dynamic modifier seems to no longer be inherited by subclasses. This is a pure ActionScript issue, so I guess it's the compiler that treats it differently.

    This one is easier. dynamic has never been inherited. Object is dynamic, so if the attribute was inherited every class would have to be dynamic too.

    If there appears to be a change in behaviour related to dynamic class instances, then there is something else going on in your code.

    0 讨论(0)
提交回复
热议问题