[flexcoders] RE: Form indentation
I have, but cannot seem to make any CSS changes that cause indentation. I have tried two forms as suggested, but then the logic for the items to be aligned to the longest label fails since they're no longer in the same form so all items are not properly aligned. *sigh* Michael J. Regert Software Development Sr. Engineer Dell | Enterprise Systems Management office +1 512 728 4483 fax +1 512 723 1952 Dell Inc. One Dell Way, MS RR5-32, Round Rock, TX 78682 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Davidson, Jerry Sent: Tuesday, April 09, 2013 8:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Form indentation Have you tried using CSS? From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of michael_reg...@dell.commailto:michael_reg...@dell.com Sent: Monday, April 08, 2013 5:06 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: [flexcoders] Form indentation Is there an easy with a Spark Form to accomplish indentation on some of the items' labels? I'm not seeing a good way unless I write a whole new skin... I want the text input boxes left and right aligned, but want the 2nd and third items to have their label indented from the top one. Thanks! Some File Directory:[] User Name: [] Password: [] Michael
[flexcoders] Form indentation
Is there an easy with a Spark Form to accomplish indentation on some of the items' labels? I'm not seeing a good way unless I write a whole new skin... I want the text input boxes left and right aligned, but want the 2nd and third items to have their label indented from the top one. Thanks! Some File Directory:[] User Name: [] Password: [] Michael
[flexcoders] New Spark DG vs. MX ADG
Now that Adobe released the new Spark DataGrid in 4.5+, what are the main differences with the MX AdvancedDataGrid, and why is there not an equivalent Spark AdvancedDataGrid component? When should I use one vs the other? Thanks for your time on this! Michael
RE: [flexcoders] Errors in flash.external::ExternalInterface$/call()
Changing the function use encoding (%3D in place of the =) causes the function to completely fail. I guess I can chalk this one up as an Adobe bug overall? ExternalInterface.call(window.open,urlString,_blank,status%3D1,scrollbars%3D1,toolbar%3D1,menubar%3D1,location%3D1,resizable%3D1); Michael J. Regert From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Saturday, July 07, 2012 11:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Errors in flash.external::ExternalInterface$/call() I'm just guessing here, but I get suspicious when I see non-alphas (equal signs, dashes) in a URL. See this link: http://www.w3schools.com/tags/ref_urlencode.asp On 7/6/12 6:22 AM, michael_reg...@dell.com michael_reg...@dell.com wrote: Thank you Alex for your reply. Can you further clarify what you mean by try encoding entities in the urlString and maybe the additional args. I guess I'm not understanding. The URLString I'm passing in is like https://hostname/resources/locale/en_US/help/GUID-1234567890.html and the args I'm passing are shown below... How do I encode them? Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message. From: flexcode! rs@yahoo groups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, July 05, 2012 11:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Errors in flash.external::ExternalInterface$/call() It appears that ExternalInterface.call takes its arguments and encodes them into XML before passing them to the HTML/JS wrapper. If there is something in the arguments that messes up the encoding then maybe you would get this error. I would try encoding entities in the urlString and maybe the additional args. On 7/5/12 12:46 PM, michael_reg...@dell.com michael_reg...@dell.com wrote: I'm working on a bug which has us puzzled and I'm looking for a bit of direction. When we launch our external help documents (HTML) with the following command, sometimes we get an array of XML parse errors. It is very inconsistent and sometimes requires clicking the help button multiple times before it appears. I cannot step into the ExternalInterface code to see what it is failing on. The help page DOES launch correctly, so I know the URL is fine. But when I close the HTML page, I get an error sometimes. The error is not consistent either. Any pointers on how to debug this? Is the XML it is trying to parse the actual HTML? I would think that Flex would just open a browser window, ignoring the content. We're using Flex 4.0 SDK. We're calling: ExternalInterface.call(window.open,urlStri! ng,_blank,status=1,scrollbars=1,toolbar=1,me! nubar=1, location=1,resizable=1); Errors seen include: TypeError: Error #1090: XML parser failure: element is malformed. at flash.external::ExternalInterface$/call() TypeError: Error #1095: XML parser failure: Unterminated attribute. at flash.external::ExternalInterface$/call() Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at flash.external::ExternalInterface$/_argumentsToXML() at flash.external::ExternalInterface$/call() - Michael J. Regert -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui
RE: [flexcoders] Errors in flash.external::ExternalInterface$/call()
Thank you Alex for your reply. Can you further clarify what you mean by try encoding entities in the urlString and maybe the additional args. I guess I'm not understanding. The URLString I'm passing in is like https://hostname/resources/locale/en_US/help/GUID-1234567890.html and the args I'm passing are shown below... How do I encode them? Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, July 05, 2012 11:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Errors in flash.external::ExternalInterface$/call() It appears that ExternalInterface.call takes its arguments and encodes them into XML before passing them to the HTML/JS wrapper. If there is something in the arguments that messes up the encoding then maybe you would get this error. I would try encoding entities in the urlString and maybe the additional args. On 7/5/12 12:46 PM, michael_reg...@dell.com michael_reg...@dell.com wrote: I'm working on a bug which has us puzzled and I'm looking for a bit of direction. When we launch our external help documents (HTML) with the following command, sometimes we get an array of XML parse errors. It is very inconsistent and sometimes requires clicking the help button multiple times before it appears. I cannot step into the ExternalInterface code to see what it is failing on. The help page DOES launch correctly, so I know the URL is fine. But when I close the HTML page, I get an error sometimes. The error is not consistent either. Any pointers on how to debug this? Is the XML it is trying to parse the actual HTML? I would think that Flex would just open a browser window, ignoring the content. We're using Flex 4.0 SDK. We're calling: ExternalInterface.call(window.open,urlString,_blank,status=1,scrollbars=1,toolbar=1,menubar=1,location=1,resizable=1); Errors seen include: TypeError: Error #1090: XML parser failure: element is malformed. at flash.external::ExternalInterface$/call() TypeError: Error #1095: XML parser failure: Unterminated attribute. at flash.external::ExternalInterface$/call() Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at flash.external::ExternalInterface$/_argumentsToXML() at flash.external::ExternalInterface$/call() - Michael J. Regert -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui inline: image001.jpginline: image002.jpg
RE: [flexcoders] Re: Errors in flash.external::ExternalInterface$/call()
Thanks. I'm not retrieving any XML content though. All we're doing is launching an external browser window to display a URL so no data is coming in. Michael J. Regert From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jameel Ahmad Sent: Friday, July 06, 2012 1:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Errors in flash.external::ExternalInterface$/call() Hi Michael, I have already encountered this kind of errors. Please check the XML content that is returned by the file which you call through the external interface. I am sure there is some syntax error while the XML content is constructed. Like some start tag student missing the end tag /student. So you have to examine the XML content. simplest way is you copy the XML content and save it as html file,then open with a browser.check if the content are coming in a correct format. Thanks regards, SK Jameel Ahmad.
[flexcoders] Errors in flash.external::ExternalInterface$/call()
I'm working on a bug which has us puzzled and I'm looking for a bit of direction. When we launch our external help documents (HTML) with the following command, sometimes we get an array of XML parse errors. It is very inconsistent and sometimes requires clicking the help button multiple times before it appears. I cannot step into the ExternalInterface code to see what it is failing on. The help page DOES launch correctly, so I know the URL is fine. But when I close the HTML page, I get an error sometimes. The error is not consistent either. Any pointers on how to debug this? Is the XML it is trying to parse the actual HTML? I would think that Flex would just open a browser window, ignoring the content. We're using Flex 4.0 SDK. We're calling: ExternalInterface.call(window.open,urlString,_blank,status=1,scrollbars=1,toolbar=1,menubar=1,location=1,resizable=1); Errors seen include: TypeError: Error #1090: XML parser failure: element is malformed. at flash.external::ExternalInterface$/call() TypeError: Error #1095: XML parser failure: Unterminated attribute. at flash.external::ExternalInterface$/call() Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds. at flash.external::ExternalInterface$/_argumentsToXML() at flash.external::ExternalInterface$/call() - Michael J. Regert
[flexcoders] Binding from a s:Label
Just found out that you can no longer bind FROM a spark label's text TO some other object. With MX components, this could be done. Looking at the Adobe code, seems like they removed (or forgot) the binding on the text property for Spark. Is there a reason for this change, or is this a bug? This is with the 4.6 SDK. s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 s:Label id=result x=338 y=312 text={lblTest.text}/ !-Compiler Warning about binding -- s:Label id=result2 x=338 y=354 text={lblTest2.text}/ !-WORKS -- s:Label id=lblTest x=326 y=117 text=Hello/ mx:Label id=lblTest2 x=319 y=189 text=World/ /s:Application [cid:image001.png@01CD4B0B.C7B4A2C0] [cid:image002.png@01CD4B0B.C7B4A2C0] Michael J. Regert inline: image001.pnginline: image002.png
[flexcoders] utf-8 format with csv extension
I want to save a file in utf-8 encoding format (NOT utf-8 without BOM). There is no explicit information on Adobe Charset support page (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/charset-codes.html) I want to save the file in utf-8 format with csv extension. I have tried the following but i am getting what i want: byte.writeMultiBytes(fileContent,utf-8); I have also tried, unicode-1-1-utf-8, unicode-2-0-utf-8, x-unicode-2-0-utf-8. I have also tried with other methods as well but still not getting the required encoding format: writeUTF(var:String) writeByte(var:String) Here's what I have right now, var fileReference:FileReference = new FileReference(); var bytes:ByteArray = new ByteArray(); // SAVING file in utf-8 encoding format. bytes.writeUTFBytes(this.fileContents); fileReference.save(bytes, PluginLog.csv); closePopup(null); Michael J. Regert Software Development Sr. Engineer Dell | Enterprise Systems Management office +1 512 728 4483 fax +1 512 723 1952 Dell Inc. One Dell Way, MS RR5-30, Round Rock, TX 78682
[flexcoders] Using Windows fonts in Flex
How can I use the fonts in the Windows/Fonts directory in Flex? Looks like in Flex 3, I could say @font-face {src:local(fontname_... But, with Flex 4, it says local is no longer supported. I don't want to hardcode a url, like c:\Windows\Fonts given that it may not be installed on C: Michael J. Regert
[flexcoders] RE: Using Windows fonts in Flex
Got it working. Michael J. Regert From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Regert, Michael Sent: Monday, May 07, 2012 1:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using Windows fonts in Flex How can I use the fonts in the Windows/Fonts directory in Flex? Looks like in Flex 3, I could say @font-face {src:local(fontname_... But, with Flex 4, it says local is no longer supported. I don't want to hardcode a url, like c:\Windows\Fonts given that it may not be installed on C: Michael J. Regert
[flexcoders] css syntax for states
I have a label which I need to change the font color on various states. Originally I had the code as below with no CSS: s:Label text=× top=1 width=100% color=#202020 color.over=#a12100 color.down=#a12100 fontSize=24 textAlign=center / I'm trying to move everything into a CSS and have the syntax as follows, but the state ones do not seem to get triggered. Why? s:Label text=× top=1 width=100% styleName=MyLabel/ s|Label.MyLabel { color: #202020; fontSize: 24; textAlign: center; } s|Label. MyLabel:over { color: #a12100; } s|Label. MyLabel:down { color: #a12100; } Michael J. Regert
[flexcoders] Fonts and localization
I’m trying to understand what Adobe Flex is doing for Korean (and other languages) fonts. I’m seeing that the font used for a Spark label is different than what is used in an MX Advanced Data Grid. I’m using Adobe Flex 4.0 and 4.6. I have the following sample app. The font used to display the label when run is different than the grid, even though I am not defining a font or setting anything in a css. Why? Screenshot attached (if it comes through in the post). ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var testString:String = invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.; [Bindable] private var testData:ArrayCollection = new ArrayCollection([ {msg:invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.} ]); ]] /fx:Script s:VGroup width=100% height=100% gap=10 paddingTop=20 paddingBottom=20 paddingLeft=20 paddingRight=20 s:Label width=100% text={testString}/ mx:AdvancedDataGrid width=100% height=100% dataProvider={testData} mx:columns mx:AdvancedDataGridColumn dataField=msg/ /mx:columns /mx:AdvancedDataGrid /s:VGroup /s:Application [cid:image001.png@01CD17CD.95207800] Michael inline: image001.png
RE: [flexcoders] Fonts and localization
Thanks. I’m being told by our Korean QA that the default font that is used in the MS Advanced Data Grid is much cleaner than what is used in the Spark controls. How do I change this to use the same font as the grid across my whole app? Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, April 11, 2012 11:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fonts and localization MX uses TextField, Spark defaults to TextLine which will render a bit differently. On 4/11/12 8:26 AM, michael_reg...@dell.com michael_reg...@dell.com wrote: I’m trying to understand what Adobe Flex is doing for Korean (and other languages) fonts. I’m seeing that the font used for a Spark label is different than what is used in an MX Advanced Data Grid. I’m using Adobe Flex 4.0 and 4.6. I have the following sample app. The font used to display the label when run is different than the grid, even though I am not defining a font or setting anything in a css. Why? Screenshot attached (if it comes through in the post). ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var testString:String = invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.; [Bindable] private var testData:ArrayCollection = new ArrayCollection([ {msg:invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.} ]); ]] /fx:Script s:VGroup width=100% height=100% gap=10 paddingTop=20 paddingBottom=20 paddingLeft=20 paddingRight=20 s:Label width=100% text={testString}/ mx:AdvancedDataGrid width=100% height=100% dataProvider={testData} mx:columns mx:AdvancedDataGridColumn dataField=msg/ /mx:columns /mx:AdvancedDataGrid /s:VGroup /s:Application [cid:image001.png@01CD17D8.49B69650] Michael -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui inline: image001.png
RE: [flexcoders] Fonts and localization
Typo Correction: … in the MX Advanced Data Grid… Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Regert, Michael Sent: Wednesday, April 11, 2012 11:43 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Fonts and localization Thanks. I’m being told by our Korean QA that the default font that is used in the MS Advanced Data Grid is much cleaner than what is used in the Spark controls. How do I change this to use the same font as the grid across my whole app? Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message. From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]mailto:[mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, April 11, 2012 11:38 AM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fonts and localization MX uses TextField, Spark defaults to TextLine which will render a bit differently. On 4/11/12 8:26 AM, michael_reg...@dell.com michael_reg...@dell.com wrote: I’m trying to understand what Adobe Flex is doing for Korean (and other languages) fonts. I’m seeing that the font used for a Spark label is different than what is used in an MX Advanced Data Grid. I’m using Adobe Flex 4.0 and 4.6. I have the following sample app. The font used to display the label when run is different than the grid, even though I am not defining a font or setting anything in a css. Why? Screenshot attached (if it comes through in the post). ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var testString:String = invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.; [Bindable] private var testData:ArrayCollection = new ArrayCollection([ {msg:invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.} ]); ]] /fx:Script s:VGroup width=100% height=100% gap=10 paddingTop=20 paddingBottom=20 paddingLeft=20 paddingRight=20 s:Label width=100% text={testString}/ mx:AdvancedDataGrid width=100% height=100% dataProvider={testData} mx:columns mx:AdvancedDataGridColumn dataField=msg/ /mx:columns /mx:AdvancedDataGrid /s:VGroup /s:Application [cid:image001.png@01CD17D8.6D366AB0] Michael -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui inline: image001.png
RE: [flexcoders] Fonts and localization
Can you clarify something then? I’m learning all of this. For Korean, Simplified Chinese, and Japanese, I’m being told the font (or rendering) of characters in MX is cleaner and more readable then the Spark components. Why the change? Using MX only would be a serious step backwards… Michael J. Regert From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, April 11, 2012 3:11 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fonts and localization You would have to use MX components everywhere (and not need right-to-left language support) On 4/11/12 9:43 AM, michael_reg...@dell.com michael_reg...@dell.com wrote: Thanks.? I’m being told by our Korean QA that the default font that is used in the MS Advanced Data Grid is much cleaner than what is used in the Spark controls.? How do I change this to use the same font as the grid across my whole app? Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Wednesday, April 11, 2012 11:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Fonts and localization MX uses TextField, Spark defaults to TextLine which will render a bit differently. On 4/11/12 8:26 AM, michael_reg...@dell.com michael_reg...@dell.com wrote: I’m trying to understand what Adobe Flex is doing for Korean (and other languages) fonts. I’m seeing that the font used for a Spark label is different than what is used in an MX Advanced Data Grid. I’m using Adobe Flex 4.0 and 4.6. I have the following sample app. The font used to display the label when run is different than the grid, even though I am not defining a font or setting anything in a css. Why? Screenshot attached (if it comes through in the post). ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations fx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var testString:String = invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.; [Bindable] private var testData:ArrayCollection = new ArrayCollection([ {msg:invalidType = 잘못된 유형입니다. XML 유형이거나 하나의 XML 개체를 포함한 XMLList여야 합니다.} ]); ]] /fx:Script s:VGroup width=100% height=100% gap=10 paddingTop=20 paddingBottom=20 paddingLeft=20 paddingRight=20 s:Label width=100% text={testString}/ mx:AdvancedDataGrid width=100% height=100% dataProvider={testData} mx:columns mx:AdvancedDataGridColumn dataField=msg/ /mx:columns /mx:AdvancedDataGrid /s:VGroup /s:Application [cid:image001.png@01CD17F8.E3EAB330] Michael -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui inline: image001.png
[flexcoders] FT Permanent Flex position @ Dell, Inc.
If you know of anyone looking for a full-time, permanent Flex 4 development position in the Austin, Texas area, please email me an updated and complete resume. Right now, I'm being told by HR this is for US residents only (meaning, Dell cannot do international relocation at this time, sorry). Local to Texas is preferred, must be willing to relocate. Remote work or contract work not available at this time. Michael J. Regert Software Development Sr. Engineer Dell | Enterprise Systems Management office +1 512 728 4483 fax +1 512 723 1952 Dell Inc. One Dell Way, MS RR5-32, Round Rock, TX 78682
[flexcoders] Skinning question
I'm still trying to learn solid skinning practices and looking for a recommendation. I need to skin a component based on our UXD design. I can do half of what I need in CSS ,but then I need to actually copy the spark skin and modify it for the remain part. My question is, since I'm already creating a new skin class to do part of what I need, is there any benefit to declaring the remaining pieces in CSS, or should I just hard code all of it in the new skin class? To me, it seems like I'd want all of the changes together for a future developer to read rather than half in CSS and half in a skin class. Thoughts? Michael J. Regert
RE: [flexcoders] Re: Flex alternatives
You bring up some good points. I have been on a few calls between our company and with Adobe on this exact subject right after the announcements were made. We grilled them with questions, and though I won't fully disclose many of their answers here, our development teams were confident enough to stick with Adobe Flex. We realize that long-term, technologies shift. I started out as a C++ developer doing low-level SCSI. Now doing UIs in Flex. In 5 years will I be doing HTML 5, ZK, Silverlight, some other new technology? Who knows. But for now, I'm actually excited to have a greater role in the direction Flex takes for now, and welcome any challenges making it Open Source may bring. The product we developed using Adobe Flex was ranked as one of the top 15 products for 2011 by CRN. Didn't see any HTML 5 apps there. I think this says something about where Flex is, and it still holds some ground. The technology decision should be based on your projects, your long-term direction, and your talent pool. I'd recommend not jumping ship, just to jump ship. You never know where that ship may sail! Michael J. Regert From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ron G Sent: Thursday, January 12, 2012 11:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex alternatives Hi James, I certainly respect the decision of those who are sticking with Flex, but I would suggest that developers do so with the recognition that they may be developing with a technology that isn't going to be around that long. I could write at length about this, but, in a nutshell, here's why. On the one hand, you have an open-source project that is geared toward enterprise application development, but it is completely dependent on a proprietary runtime. That runtime is manufactured by a company who has stated its future is digital media and digital marketing, and that it believes the future of enterprise web application development is HTML5. It then begs the question, How long will they bloat their Flashplayer to support an open-source Flex community's enterprise web application development goals and wishes? To accommodate the Flex community, Adobe gets nothing in return for its expenditure of time and money in designing, developing, testing the features the Flex community requires now and in the future. It also means that, by supporting Flex in their runtime, the Flashplayer has an unnecessarily larger footprint than would otherwise be required. So, ask yourself if you truly believe Flex will be a supported product by Adobe in 5-10 years from now. I highly doubt it. On the other hand, I think if a developer uses Flash Pro to develop digital media for their applications, they can probably count on that being around indefinitely. But, not Flex. Ron --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, James Ong yanlilei64@...mailto:yanlilei64@... wrote: Using ZK and Java is great. I'm still sticking to Flex for developing desktop applications and gaming. Of course, many will still using it for animations, there is no such thing as abandon, some developers are just over use Flash and end up hurting user experience than necessary. When it comes to web application, I stick to PHP but will definitely use Flex for mobile, desktop and components within the web browser. On Thu, Jan 12, 2012 at 10:16 AM, michael_regert@...mailto:michael_regert@... wrote: ** Staying with Flex. Not looking elsewhere. ** ** *Michael* ** ** *From:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ron G *Sent:* Wednesday, January 11, 2012 8:15 PM *To:* flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Re: Flex alternatives ** ** Yes, we have also abandoned Flex in favor of ZKoss. Since we are already a Java shop, on the server side, it seemed logical to use a Java based framework on the client-side. The thing I really like about ZK or ZKoss is that it has equivalent components to Flex. In fact, it actually has more components than Flex. It implements an approach that I really like of separating the UI into appearance and behavior - much like the Spark components of Flex. Well, not exactly, but sort of. :) Here's what I mean. For each UI object, it has a client side (widget) and server side (component). I won't go into further detail, but it gives you a nice separation of concerns that you can avail yourself of. This feature also greatly insulates the rendered pages from x-browser compatibility issues. Check it out for yourself at their site (zkoss.org). Ron --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Sal sal.celli@ wrote: hi, as i can sadly see from the message history bottom
RE: [flexcoders] Re: Flex alternatives
Staying with Flex. Not looking elsewhere. Michael From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ron G Sent: Wednesday, January 11, 2012 8:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex alternatives Yes, we have also abandoned Flex in favor of ZKoss. Since we are already a Java shop, on the server side, it seemed logical to use a Java based framework on the client-side. The thing I really like about ZK or ZKoss is that it has equivalent components to Flex. In fact, it actually has more components than Flex. It implements an approach that I really like of separating the UI into appearance and behavior - much like the Spark components of Flex. Well, not exactly, but sort of. :) Here's what I mean. For each UI object, it has a client side (widget) and server side (component). I won't go into further detail, but it gives you a nice separation of concerns that you can avail yourself of. This feature also greatly insulates the rendered pages from x-browser compatibility issues. Check it out for yourself at their site (zkoss.org). Ron --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Sal sal.celli@...mailto:sal.celli@... wrote: hi, as i can sadly see from the message history bottom grid, many programmers are leaving flex. So this thread is to ask you all, if you have already found a valid alternative to flex for RIA development.
[flexcoders] Flash Caching
I'm seeing an issue maybe some of you have run into. IE 9 seems to be caching our Flex app swf, even after clearing the cache. I've confirmed using Charles Proxy that sure enough, the SWF is never requested and IE 9 is using a cached version. We can try clearing the cache all day, shutting down all windows, no luck. BUT, using the F12 Developer Tools in IE9 and clearing the cache there DOES fix it. Any idea why? Michael J. Regert Software Development Sr. Engineer Dell | Enterprise Systems Management office +1 512 728 4483 fax +1 512 723 1952 Dell Inc. One Dell Way, MS RR5-32, Round Rock, TX 78682
[flexcoders] How to get the right locale in IE?
I'm trying to get the locale from IE 9. I've written the following, but it is not working as expected. In IE 9, I can add more than one language, so I can add [de], then [de_DE], then [en_US] (listed in that order). If I call 'navigator.userLanguage.toString', then IE returns en-us, even though I know German is listed first and working (Google comes up in German). I thought maybe it was because it was trying to return an Array of languages, so I changed my code to look for an Array or an Object. Nothing works. var l10NCodes:Object = null; var l10nCode:String = null; /* Try to get the language code from the browser first. The browser returns both the language code and the country code rather than just the language code alone. */ if (ExternalInterface.available) { l10NCodes = ExternalInterface.call('navigator.userLanguage'); l10nCode = ExternalInterface.call('navigator.userLanguage.toString'); } Michael J. Regert
RE: [flexcoders] Re: Red error borders on form items before form is validated
Can you give an example of how you've written your validator? I'm suspecting it is on how you defined the trigger. Michael J. Regert From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Khanh Sent: Thursday, November 17, 2011 4:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Red error borders on form items before form is validated It's a focus border. Usually, it's blue. I'm not sure how it's red in your case! You can change the color following this example. Thanks to Peter Dehaan for his great tip. http://blog.flexexamples.com/2008/04/12/changing-the-focus-rectangle-color-on-a-textinput-control-in-flex/ OR you can hide this by using the property: focusAlpha mx:TextInput id=txtInput focusAlpha=0/ Good luck. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, dorkie dork from dorktown dorkiedorkfromdorktown@...mailto:dorkiedorkfromdorktown@... wrote: When I display my Form elements (TextInput, Combox, etc) the red error border is shown right away before the user even types into it. Why is this happening? How can I prevent it from showing a red error border when it's first displayed?
[flexcoders] e4x help
I must be missing something simple here. I'm reading in XML that looks like this: ?xml version=1.0 encoding=UTF-8? REGISTRY REGISTRY_DECLARATION/ REGISTRY_ENTRIES Attribute AttributeNameAttr_1/AttributeName /Attribute Attribute AttributeNameAttr_2/AttributeName /Attribute Attribute AttributeNameAttr_3/AttributeName /Attribute /REGISTRY_ENTRIES /REGISTRY I'm trying to get all Atribute nodes using the .. operator, but it always returns 0, even though xmlRoot looks fine. protected function xmlService_resultHandler(event:ResultEvent):void { if (event != null event.result != null event.result is XML) { var xmlRoot:XML = event.result as XML; if (xmlRoot xmlRoot.length() 0) { var lst:XMLList = xmlRoot..Attribute; trace(lst length = + lst.length()); } } } Michael
RE: [flexcoders] e4x help
I guess I should have copied the entire XML. REGISTRY xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://schemas.dell.com/wbem/biosattributeregistry/1 file:///C:/work/12G/Attribute%20Registry/DCIM_AttributeRegistry.xsd xmlns=http://schemas.dell.com/wbem/biosattributeregistry/1; Turns out if I just remove the last namespace, xmlns=http://schemas.dell.com/wbem/biosattributeregistry/1; Then it works correctly. Any idea why this would cause it to not be able to find the children? Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brendan Meutzner Sent: Thursday, September 22, 2011 10:20 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] e4x help You shouldn't do a check on the length() for xmlRoot... that represents the REGISTRY level... otherwise your code looks fine. On Thu, Sep 22, 2011 at 4:54 PM, michael_reg...@dell.commailto:michael_reg...@dell.com wrote: I must be missing something simple here. I’m reading in XML that looks like this: ?xml version=1.0 encoding=UTF-8? REGISTRY REGISTRY_DECLARATION/ REGISTRY_ENTRIES Attribute AttributeNameAttr_1/AttributeName /Attribute Attribute AttributeNameAttr_2/AttributeName /Attribute Attribute AttributeNameAttr_3/AttributeName /Attribute /REGISTRY_ENTRIES /REGISTRY I’m trying to get all Atribute nodes using the .. operator, but it always returns 0, even though xmlRoot looks fine. protected function xmlService_resultHandler(event:ResultEvent):void { if (event != null event.result != null event.result is XML) { var xmlRoot:XML = event.result as XML; if (xmlRoot xmlRoot.length() 0) { var lst:XMLList = xmlRoot..Attribute; trace(lst length = + lst.length()); } } } Michael
RE: [flexcoders] e4x help
Ahhh. YES! That fixed it. Thanks! Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Haykel BEN JEMIA Sent: Thursday, September 22, 2011 10:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] e4x help because the elements are then defined in the namespace http://schemas.dell.com/wbem/biosattributeregistry/1;. To access them through e4x you have to create a corresponding namespace object, e.g.: private namespace biosattributeregistry = http://schemas.dell.com/wbem/biosattributeregistry/1;; use namespace biosattributeregistry; Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Thu, Sep 22, 2011 at 4:32 PM, michael_reg...@dell.commailto:michael_reg...@dell.com wrote: I guess I should have copied the entire XML. REGISTRY xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://schemas.dell.com/wbem/biosattributeregistry/1 file:///C:/work/12G/Attribute%20Registry/DCIM_AttributeRegistry.xsd xmlns=http://schemas.dell.com/wbem/biosattributeregistry/1; Turns out if I just remove the last namespace, xmlns=http://schemas.dell.com/wbem/biosattributeregistry/1; Then it works correctly. Any idea why this would cause it to not be able to find the children? Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message. From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Brendan Meutzner Sent: Thursday, September 22, 2011 10:20 AM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] e4x help You shouldn't do a check on the length() for xmlRoot... that represents the REGISTRY level... otherwise your code looks fine. On Thu, Sep 22, 2011 at 4:54 PM, michael_reg...@dell.commailto:michael_reg...@dell.com wrote: I must be missing something simple here. I’m reading in XML that looks like this: ?xml version=1.0 encoding=UTF-8? REGISTRY REGISTRY_DECLARATION/ REGISTRY_ENTRIES Attribute AttributeNameAttr_1/AttributeName /Attribute Attribute AttributeNameAttr_2/AttributeName /Attribute Attribute AttributeNameAttr_3/AttributeName /Attribute /REGISTRY_ENTRIES /REGISTRY I’m trying to get all Atribute nodes using the .. operator, but it always returns 0, even though xmlRoot looks fine. protected function xmlService_resultHandler(event:ResultEvent):void { if (event != null event.result != null event.result is XML) { var xmlRoot:XML = event.result as XML; if (xmlRoot xmlRoot.length() 0) { var lst:XMLList = xmlRoot..Attribute; trace(lst length = + lst.length()); } } } Michael
RE: [flexcoders] Problem with showing less then sign as axis label
Try: {Month:lt;Jan, Profit:2000, Expenses:1500}, Michael J. Regert Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of jimi_prajapati Sent: Sunday, August 14, 2011 1:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with showing less then sign as axis label ?xml version=1.0? !-- charts/GridLinesBothInternal.mxml -- s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:mx=library://ns.adobe.com/flex/mx xmlns:s=library://ns.adobe.com/flex/spark height=600 fx:Declarations fx:Array id=bge mx:GridLines gridDirection=both/ /fx:Array /fx:Declarations fx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var expenses:ArrayCollection = new ArrayCollection([ {Month:Jan, Profit:2000, Expenses:1500}, {Month:Feb, Profit:1000, Expenses:200}, {Month:Mar, Profit:1500, Expenses:500} ]); ]] /fx:Script s:layout s:VerticalLayout/ /s:layout s:Panel title=Column Chart s:layout s:VerticalLayout/ /s:layout mx:ColumnChart id=myChart showDataTips=true dataProvider={expenses} backgroundElements={bge} mx:horizontalAxis mx:CategoryAxis dataProvider={expenses} categoryField=Month / /mx:horizontalAxis mx:series mx:ColumnSeries xField=Month yField=Profit displayName=Profit / mx:ColumnSeries xField=Month yField=Expenses displayName=Expenses / /mx:series /mx:ColumnChart mx:Legend dataProvider={myChart}/ /s:Panel /s:Application
[flexcoders] Flex job @ Dell, Inc.
Dell is looking for an experienced Flex developer for the Austin, TX area. Please email me your questions and/or resume privately if you are interested or know someone. Serious emails only. 8+ years software development experience or MSCS Experience with developing Rich Internet Applications (RIA) Strong knowledge of Adobe Flex and ActionScript (Flex 4 preferred) Experience with the Cairngorm framework Experience with developing custom Spark components preferred Experience with skinning Flex components preferred Experience with web services / WSDL a plus Michael J. Regert Software Development Sr. Engineer Flex UI Development Team Lead Dell | Enterprise Systems Management Dell Inc. One Dell Way, MS RR5-32, Round Rock, TX 78682 Please consider the environment before printing this email. Confidentiality Notice | This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential or proprietary information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, immediately contact the sender by reply e-mail and destroy all copies of the original message.