[jira] [Updated] (FLEX-33120) Please check support for ExactValue initializer

2013-05-23 Thread Justin Mclean (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-33120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean updated FLEX-33120:
-

Attachment: patch.diff

Modifies patch that supports @Once and @TwoWay.

 Please check support for ExactValue initializer
 ---

 Key: FLEX-33120
 URL: https://issues.apache.org/jira/browse/FLEX-33120
 Project: Apache Flex
  Issue Type: Improvement
  Components: MXML Compiler
Reporter: Alex Harui
Priority: Minor
  Labels: easyfix
 Attachments: exactValue.patch, patch.diff, screenshot-1.jpg, 
 workiingExample.jpg


 I've done my own improvement for MXML to support any values for property 
 initializer WITHOUT bindings, for example:
 Was:
 TextField xmlns=flash.text.* autoSize={TextFieldAutoSize.CENTER} /
 is generated into:
 private function _MyOwnFlexFrameworkTest_TextField1_i() : flash.text.TextField
 {
 var temp : flash.text.TextField = new flash.text.TextField();
 _MyOwnFlexFrameworkTest_TextField1 = temp;
 mx.binding.BindingManager.executeBindings(this, 
 _MyOwnFlexFrameworkTest_TextField1, _MyOwnFlexFrameworkTest_TextField1);
 return temp;
 }
 //  binding mgmt
 private function _MyOwnFlexFrameworkTest_bindingsSetup():Array
 {
 var result:Array = [];
 result[0] = new mx.binding.Binding(this,
 function():String
 {
 var result:* = (TextFieldAutoSize.CENTER);
 return (result == undefined ? null : String(result));
 },
 null,
 _MyOwnFlexFrameworkTest_TextField1.autoSize
 );
 return result;
 }
 now:
 TextField xmlns=flash.text.* autoSize=${TextFieldAutoSize.CENTER} /
 give us such result:
 private function _MyOwnFlexFrameworkTest_TextField1_i() : flash.text.TextField
 {
 var temp : flash.text.TextField = new flash.text.TextField();
 temp.autoSize = TextFieldAutoSize.CENTER;
 _MyOwnFlexFrameworkTest_TextField1 = temp;
 mx.binding.BindingManager.executeBindings(this, 
 _MyOwnFlexFrameworkTest_TextField1, _MyOwnFlexFrameworkTest_TextField1);
 return temp;
 }
 this implementation is similar to twoWay bindings and written in the same way.
 btw, sorry for my English, I'm Russian.
 Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (FLEX-33120) Please check support for ExactValue initializer

2013-04-13 Thread Cyrill Zadra (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-33120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cyrill Zadra updated FLEX-33120:


Attachment: workiingExample.jpg

Adding compiler option -keep-generated-actionscript=true solves the problem.

 Please check support for ExactValue initializer
 ---

 Key: FLEX-33120
 URL: https://issues.apache.org/jira/browse/FLEX-33120
 Project: Apache Flex
  Issue Type: Improvement
Reporter: Alex Harui
Priority: Minor
  Labels: easyfix
 Attachments: exactValue.patch, screenshot-1.jpg, workiingExample.jpg


 I've done my own improvement for MXML to support any values for property 
 initializer WITHOUT bindings, for example:
 Was:
 TextField xmlns=flash.text.* autoSize={TextFieldAutoSize.CENTER} /
 is generated into:
 private function _MyOwnFlexFrameworkTest_TextField1_i() : flash.text.TextField
 {
 var temp : flash.text.TextField = new flash.text.TextField();
 _MyOwnFlexFrameworkTest_TextField1 = temp;
 mx.binding.BindingManager.executeBindings(this, 
 _MyOwnFlexFrameworkTest_TextField1, _MyOwnFlexFrameworkTest_TextField1);
 return temp;
 }
 //  binding mgmt
 private function _MyOwnFlexFrameworkTest_bindingsSetup():Array
 {
 var result:Array = [];
 result[0] = new mx.binding.Binding(this,
 function():String
 {
 var result:* = (TextFieldAutoSize.CENTER);
 return (result == undefined ? null : String(result));
 },
 null,
 _MyOwnFlexFrameworkTest_TextField1.autoSize
 );
 return result;
 }
 now:
 TextField xmlns=flash.text.* autoSize=${TextFieldAutoSize.CENTER} /
 give us such result:
 private function _MyOwnFlexFrameworkTest_TextField1_i() : flash.text.TextField
 {
 var temp : flash.text.TextField = new flash.text.TextField();
 temp.autoSize = TextFieldAutoSize.CENTER;
 _MyOwnFlexFrameworkTest_TextField1 = temp;
 mx.binding.BindingManager.executeBindings(this, 
 _MyOwnFlexFrameworkTest_TextField1, _MyOwnFlexFrameworkTest_TextField1);
 return temp;
 }
 this implementation is similar to twoWay bindings and written in the same way.
 btw, sorry for my English, I'm Russian.
 Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (FLEX-33120) Please check support for ExactValue initializer

2013-04-13 Thread Cyrill Zadra (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-33120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cyrill Zadra updated FLEX-33120:


Component/s: MXML Compiler

 Please check support for ExactValue initializer
 ---

 Key: FLEX-33120
 URL: https://issues.apache.org/jira/browse/FLEX-33120
 Project: Apache Flex
  Issue Type: Improvement
  Components: MXML Compiler
Reporter: Alex Harui
Priority: Minor
  Labels: easyfix
 Attachments: exactValue.patch, screenshot-1.jpg, workiingExample.jpg


 I've done my own improvement for MXML to support any values for property 
 initializer WITHOUT bindings, for example:
 Was:
 TextField xmlns=flash.text.* autoSize={TextFieldAutoSize.CENTER} /
 is generated into:
 private function _MyOwnFlexFrameworkTest_TextField1_i() : flash.text.TextField
 {
 var temp : flash.text.TextField = new flash.text.TextField();
 _MyOwnFlexFrameworkTest_TextField1 = temp;
 mx.binding.BindingManager.executeBindings(this, 
 _MyOwnFlexFrameworkTest_TextField1, _MyOwnFlexFrameworkTest_TextField1);
 return temp;
 }
 //  binding mgmt
 private function _MyOwnFlexFrameworkTest_bindingsSetup():Array
 {
 var result:Array = [];
 result[0] = new mx.binding.Binding(this,
 function():String
 {
 var result:* = (TextFieldAutoSize.CENTER);
 return (result == undefined ? null : String(result));
 },
 null,
 _MyOwnFlexFrameworkTest_TextField1.autoSize
 );
 return result;
 }
 now:
 TextField xmlns=flash.text.* autoSize=${TextFieldAutoSize.CENTER} /
 give us such result:
 private function _MyOwnFlexFrameworkTest_TextField1_i() : flash.text.TextField
 {
 var temp : flash.text.TextField = new flash.text.TextField();
 temp.autoSize = TextFieldAutoSize.CENTER;
 _MyOwnFlexFrameworkTest_TextField1 = temp;
 mx.binding.BindingManager.executeBindings(this, 
 _MyOwnFlexFrameworkTest_TextField1, _MyOwnFlexFrameworkTest_TextField1);
 return temp;
 }
 this implementation is similar to twoWay bindings and written in the same way.
 btw, sorry for my English, I'm Russian.
 Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (FLEX-33120) Please check support for ExactValue initializer

2013-03-10 Thread Justin Mclean (JIRA)

 [ 
https://issues.apache.org/jira/browse/FLEX-33120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Mclean updated FLEX-33120:
-

Labels: easyfix  (was: )

 Please check support for ExactValue initializer
 ---

 Key: FLEX-33120
 URL: https://issues.apache.org/jira/browse/FLEX-33120
 Project: Apache Flex
  Issue Type: Improvement
Reporter: Alex Harui
Priority: Minor
  Labels: easyfix
 Attachments: exactValue.patch


 I've done my own improvement for MXML to support any values for property 
 initializer WITHOUT bindings, for example:
 Was:
 TextField xmlns=flash.text.* autoSize={TextFieldAutoSize.CENTER} /
 is generated into:
 private function _MyOwnFlexFrameworkTest_TextField1_i() : flash.text.TextField
 {
 var temp : flash.text.TextField = new flash.text.TextField();
 _MyOwnFlexFrameworkTest_TextField1 = temp;
 mx.binding.BindingManager.executeBindings(this, 
 _MyOwnFlexFrameworkTest_TextField1, _MyOwnFlexFrameworkTest_TextField1);
 return temp;
 }
 //  binding mgmt
 private function _MyOwnFlexFrameworkTest_bindingsSetup():Array
 {
 var result:Array = [];
 result[0] = new mx.binding.Binding(this,
 function():String
 {
 var result:* = (TextFieldAutoSize.CENTER);
 return (result == undefined ? null : String(result));
 },
 null,
 _MyOwnFlexFrameworkTest_TextField1.autoSize
 );
 return result;
 }
 now:
 TextField xmlns=flash.text.* autoSize=${TextFieldAutoSize.CENTER} /
 give us such result:
 private function _MyOwnFlexFrameworkTest_TextField1_i() : flash.text.TextField
 {
 var temp : flash.text.TextField = new flash.text.TextField();
 temp.autoSize = TextFieldAutoSize.CENTER;
 _MyOwnFlexFrameworkTest_TextField1 = temp;
 mx.binding.BindingManager.executeBindings(this, 
 _MyOwnFlexFrameworkTest_TextField1, _MyOwnFlexFrameworkTest_TextField1);
 return temp;
 }
 this implementation is similar to twoWay bindings and written in the same way.
 btw, sorry for my English, I'm Russian.
 Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira