What do you mean by “doesn’t work”?

Components cannot depend on the order the properties will be set.  That’s
why the component lifecycle has the commitProperties method.

-Alex

On 2/24/15, 3:21 AM, "pol2095" <[email protected]> wrote:

>Hello,
>
><s:MyComponents var1="test1" var2="test2"/>
>
>and in my components
>
><s:MyComponents>
><fx:script>
><[[cdata
>public var var1:String;
>public function set var2(value:String) {
>  if(value == "test2") trace("it work");
>}
>]]>
></fx:script>
></s:MyComponents>
>
>this example work but it doesn't work when
>
><s:MyComponents var2="test2" var1="test1"/>
>
>Thanks
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/mxml-and-variables-priority
>-tp9666.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to