I've recently (been forced to..) move from fb4 beta 1 to beta 2.
The project I've been working on no longer compiles in beta 2 it seems. The error is that the setStyle method is undefined on the INavigatorContent interface. This worked fine with beta 1.
Basically, I'm extending a ViewStack and want to set a style on the selectedChild. Kinda like so: this.selectedChild.setStyle("hideEffect", hideEffect);
How can this be worked around? Do I need to cast specifically to the underlying objects or something?
What changed is that selectedChild is now an INavigatorContent. It used to be Container. If you know that all your viewstack children have setStyle methods, find a common class or interface and cast to it. Probably
Flex SDK Developer
Adobe Systems Inc.
All the components in my view stack are canvases, so, as you say, I'm now casting down to a canvas and executing setStyle like that.
It's a shame that so many things have changed that don't seem to be documented between the releases of beta 1 and beta 2. Or else I'm not looking in the right place.