You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The probelm was that the contextView was getting set twice, which seems to cause Robotlegs 1.5.0 to freak out.
I'm using Flex 4.5.1 and Flash Builder 4.5.
I created some tests and it seems that any class declared in the Declarations tag will get properties with binding expressions set twice. Always, even if the binding is to a property of a basic type, like Number, who's value does not change at any point.
Weirdly, if the class is declared in the root-tag/DispalyList (in my case I created a test that extended UIComponent, so it could exist outside the Declarations tag) this double setting of the properties with binding expressions does not seem to occur.
I don't know if this is some weird configuration thing with my Flex setup, or if this is a 4.5 only issue… but I thought I'd bring it up as it was very frustrating because I liked the style of declaring the context as a tag, instead of using raw Actionscript.
My workaround is to patch it when extending Context — my AppContext.as has this:
override public function set contextView(value:DisplayObjectContainer):void
{
if ( ! contextView ) super.contextView = value;
}
Basically it just ensures that if contextView has already been set, it doesn't get set again.
Let me know if I'm missing something.
The text was updated successfully, but these errors were encountered:
I was playing around with this HelloWorld example and I ran into a problem using Context inside the Declerations tag:
The probelm was that the
contextView
was getting set twice, which seems to cause Robotlegs 1.5.0 to freak out.I'm using Flex 4.5.1 and Flash Builder 4.5.
I created some tests and it seems that any class declared in the Declarations tag will get properties with binding expressions set twice. Always, even if the binding is to a property of a basic type, like Number, who's value does not change at any point.
Weirdly, if the class is declared in the root-tag/DispalyList (in my case I created a test that extended UIComponent, so it could exist outside the Declarations tag) this double setting of the properties with binding expressions does not seem to occur.
I don't know if this is some weird configuration thing with my Flex setup, or if this is a 4.5 only issue… but I thought I'd bring it up as it was very frustrating because I liked the style of declaring the context as a tag, instead of using raw Actionscript.
My workaround is to patch it when extending Context — my AppContext.as has this:
Basically it just ensures that if contextView has already been set, it doesn't get set again.
Let me know if I'm missing something.
The text was updated successfully, but these errors were encountered: