Re: [flexcoders] Set child properties from event.target
You can either set the buttons visible property to a bindable property and set this to true in the event handler or: (event target as Panel).getChildAt(xxx).visible = true //xxx is the index of the button if you do not know the index of the button you can loop in the Panel children searching for a known property for example name='myButton' On Fri, Sep 4, 2009 at 6:26 AM, jmfillman jmfill...@verizon.net wrote: I have a rollOver = myFunction(event) that fires when the mouse rolls over the panel. From the event.target that is passed to myFunction, I need the syntax to for the child in the Panel, and set the properties of the child. For example, I have a button in the panel named myButton and I want to set it to visible when the rollOver event fires. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Why never create an item renderer?
If it works, works fast, and its not memory hungry then it is correct :-) On Fri, Sep 4, 2009 at 1:29 AM, Wesley Acheson wesley.ache...@gmail.comwrote: I've created a few. I've recreated a few working ones because I want to understand the framework better. I guess my problem is how do I know if the item renderers i've created are Correct. I've far too often seen programming as a religion. I've just as often seen people just make things work. I can't stand by either of these sometimes you need things to just work, however if you don't worry about practices you've got unmaintainable code. So how do I know if what I've written is good enough. Regards, Wesley Acheson On Thu, Sep 3, 2009 at 9:38 PM, Tracy Spratt tr...@nts3rd.com wrote: It is not *always* given as advice. I give that when I see that a developer does *not* have his head around the issues. It is usually quite obvious when that is the case. I think it is better advice than RTFM. An example will get a newbie further faster. When that advice does not apply to you, you will know it. Tracy Spratt, Lariat Services, development services available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Wesley Acheson *Sent:* Thursday, September 03, 2009 2:36 PM *To:* flexcoders *Subject:* [flexcoders] Why never create an item renderer? I've seen this adivse a lot reciently on the list. Don't create an item renderer modify an existing example. I don't really understand why. I mean their not that difficult to get your head arround so long as you reset all internal variables that need to be reset. Why is this always given as advise? Regards, Wesley Acheson -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
RE: [flexcoders] Why never create an item renderer?
It is good enough if you shipped it and got paid :) If you want to post the code for a renderer, we can offer opinions on the pros and cons of your implementation. It might be good education for many. I don't have time to judge dozens of renderers so we can just start with one of yours and discuss it. There is usually a trade-off of ease of programming vs performance and memory optimization. The smaller and faster you want it to be, the more work you have to do. If you're only gonna have 7 renderers on screen, it doesn't matter as much as if you are creating DataGrid renderers for a 20x20 grid. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wesley Acheson Sent: Thursday, September 03, 2009 3:29 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Why never create an item renderer? I've created a few. I've recreated a few working ones because I want to understand the framework better. I guess my problem is how do I know if the item renderers i've created are Correct. I've far too often seen programming as a religion. I've just as often seen people just make things work. I can't stand by either of these sometimes you need things to just work, however if you don't worry about practices you've got unmaintainable code. So how do I know if what I've written is good enough. Regards, Wesley Acheson On Thu, Sep 3, 2009 at 9:38 PM, Tracy Spratt tr...@nts3rd.commailto:tr...@nts3rd.com wrote: It is not always given as advice. I give that when I see that a developer does not have his head around the issues. It is usually quite obvious when that is the case. I think it is better advice than RTFM. An example will get a newbie further faster. When that advice does not apply to you, you will know it. Tracy Spratt, Lariat Services, development services available From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Wesley Acheson Sent: Thursday, September 03, 2009 2:36 PM To: flexcoders Subject: [flexcoders] Why never create an item renderer? I've seen this adivse a lot reciently on the list. Don't create an item renderer modify an existing example. I don't really understand why. I mean their not that difficult to get your head arround so long as you reset all internal variables that need to be reset. Why is this always given as advise? Regards, Wesley Acheson
[flexcoders] How to create a datagrid table dynamically in flex application
Hello All, Actualy i'hv to display some attributes of an xml file in a table. i've to craete datagrid table dynamically and display the attribute ...can any one help me in this regard. Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com
[flexcoders] ApplicationDomain, parent not equal for child of same parent.
For the following lines of code I am getting unexpected results. var currAppDomain :ApplicationDomain = ApplicationDomain.currentDomain; var appDomain1 :ApplicationDomain = new ApplicationDomain( currAppDomain ); var appDomain2 :ApplicationDomain = new ApplicationDomain( currAppDomain ); There appDomain1 and appDomain2 are expected to be child of currAppDomain. But appDomain1.parentDomain is not equal to appDomain2.parentDomain. Also non of appDomain1.parentDomain appDomain2.parentDomain is equal to currAppDomain. I am checking the value displayed in Flex builder Variables tab. The results are very confusing. I need this code to load modules in child application domain. Ref: http://livedocs.adobe.com/flex/3/html/help.html?content=18_Client_System_Environment_5.html I am making any mistake? Thanks, Rajkumar Sehrawat
Re: [flexcoders] Flex and REST
For anyone else investigating this here's a collection of reading: http://delicious.com/danny_t/flex+REST It's not clear-cut by any means but I think you really need a better understanding of what's going on on the server-side (does it accept POST for each request, does it allow x-http-method-override etc). 2009/9/3 Richard Rodseth rrods...@gmail.com The other issue is error responses. In the apps I work on we have specific XML or JSON result formats for application errors, which means the Flex app must handle those responses differently. If the service is using HTTP header error responses instead I believe the Flex app can't see them, though I forget the details. I assume you've seen this thread: http://stackoverflow.com/questions/153420/is-it-feasible-to-create-a-rest-client-with-flex On Thu, Sep 3, 2009 at 3:52 AM, claudiu ursica the_bran...@yahoo.comwrote: If your Rest API is exposing XML you won't be needing any additional libs... the HTTPService class will do just fine ... C -- *From:* Haykel BEN JEMIA hayke...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Thursday, September 3, 2009 1:45:11 PM *Subject:* Re: [flexcoders] Flex and REST Anyone tried one of these libs? http://code. google.com/ p/as3httpclient/http://code.google.com/p/as3httpclient/ http://code. google.com/ p/as3httpclientl ib/http://code.google.com/p/as3httpclientlib/ They seem to support all required http verbs. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Wed, Sep 2, 2009 at 12:55 PM, DannyT danmo...@googlemail .comdanmo...@googlemail.com wrote: Can anyone give me the definitive answer to whether you can build REST based apps with Flex? There seems to be an incredible amount of FUD about the topic and whilst I appreciate it might not be supported in it's purest form I need to know what is involved in supporting a full REST implementation. I have no experience with REST but we're in the position that a client is going to implement a RESTful service for us to build a Flex application against. If it will 'just work' then great, if not I need to educate them as to any considerations/ workarounds necesscary on the service side of things. Can anyone offer any advice? Cheers, Dan -- http://danny-t.co.uk -- http://danny-t.co.uk
[flexcoders] Google Earth inside of Flex
I was wondering if anyone has put Google Earth in a flex app? What I will need it to do is center on a point and a certain level, and be able to plot points on the map that will like to a file on my server. It would be great if the points would hide until the user zoomed in enough Thanks, Darrin
Re: [flexcoders] Google Earth inside of Flex
On Friday 04 Sep 2009, Darrin Kay wrote: I was wondering if anyone has put Google Earth in a flex app? What I will need it to do is center on a point and a certain level, and be able to plot Does it have to be Google Earth ? There are other Flex mapping components... -- Helping to simultaneously harvest compelling high-end segments as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: An internal build error has occurred. Right-click for more information.
On Thursday 03 Sep 2009, deneme2010 wrote: I dicover that this problem is coused by subclipse pluggin. Really ? How ? can you recomend me some system for colloboration like team foundation sistem or so for eclipse? Subversive (the other SVN plugin) ? -- Helping to enthusiastically monetize e-business as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Google Earth inside of Flex
Well the company I am getting is in the process of getting that, and the network that the production runs on will not have any access to the normal web On Fri, Sep 4, 2009 at 9:44 AM, Tom Chiverton tom.chiver...@halliwells.comwrote: On Friday 04 Sep 2009, Darrin Kay wrote: I was wondering if anyone has put Google Earth in a flex app? What I will need it to do is center on a point and a certain level, and be able to plot Does it have to be Google Earth ? There are other Flex mapping components... -- Helping to simultaneously harvest compelling high-end segments as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
Re: [flexcoders] Google Earth inside of Flex
We've used google maps not google earth. http://code.google.com/apis/maps/documentation/flash/ however It does requrire an internet connection from the client machine. (As does I beleve google earth) Regards, Wesley Acheson On Fri, Sep 4, 2009 at 11:01 AM, Darrin Kay dar...@stop-ing.com wrote: Well the company I am getting is in the process of getting that, and the network that the production runs on will not have any access to the normal web On Fri, Sep 4, 2009 at 9:44 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Friday 04 Sep 2009, Darrin Kay wrote: I was wondering if anyone has put Google Earth in a flex app? What I will need it to do is center on a point and a certain level, and be able to plot Does it have to be Google Earth ? There are other Flex mapping components... -- Helping to simultaneously harvest compelling high-end segments as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
Re: [flexcoders] Google Earth inside of Flex
well it would, but with the enterprise version, you are basically getting the whole of Google Earth on your own server on your network. On Fri, Sep 4, 2009 at 10:39 AM, Wesley Acheson wesley.ache...@gmail.comwrote: We've used google maps not google earth. http://code.google.com/apis/maps/documentation/flash/ however It does requrire an internet connection from the client machine. (As does I beleve google earth) Regards, Wesley Acheson On Fri, Sep 4, 2009 at 11:01 AM, Darrin Kay dar...@stop-ing.com wrote: Well the company I am getting is in the process of getting that, and the network that the production runs on will not have any access to the normal web On Fri, Sep 4, 2009 at 9:44 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Friday 04 Sep 2009, Darrin Kay wrote: I was wondering if anyone has put Google Earth in a flex app? What I will need it to do is center on a point and a certain level, and be able to plot Does it have to be Google Earth ? There are other Flex mapping components... -- Helping to simultaneously harvest compelling high-end segments as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
[flexcoders] Re: Manage a multi lingual application
Christopher, Check out Lupo Translator http://www.dehats.com/drupal/?q=node/87 and Lupo Manager http://www.dehats.com/drupal/?q=node/81 . I am completely new to Flex, so I don't have any experience whatsoever with these, but I did stumble upon them recently. Let me know what you think. Tex --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, What is the best system to manage with Flex a multi-lingual application ? Do you have source examples ? Thank you, Christopher,
[flexcoders] retrieving File Name from Array
I'm very much a newbie at this. I want to get the file names from an Array that was created using ClipboardFormats.FILE_LIST_FORMAT any ideas or comments? thanks in advance, Tex
[flexcoders] Re: How to host my own flex application using LCDS or BlazeDS?
You could have a look at the Amazon EC2 options, e.g. http://dobeweb.com/2008/guide-for-setup-blazeds-in-less-than-an-hour-with-amazon-ec2.html --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I am going to go on a limb and say there is no hosted solutions for Blaze or LCDS. Reason being is that it would be too hard to manage everyone's entries in the services, messaging, etc XML documents. I went out and got my own virtual private host with vpsland.com. Just cost me $34 per month. From: Fotis Chatzinikos fotis.chatzini...@... Sent: Sunday, August 30, 2009 10:14 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to host my own flex application using LCDS or BlazeDS? search for java (usually tomcat / jboss) hosting plans. Another option (more expensive) is to get your own server On Sun, Aug 30, 2009 at 6:09 PM, snehasish_bn snehasish...@... wrote: How to host my own flex application using LCDS or BlazeDS in the internet? Any websites that host flex appications??? Please help! Thanks. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@...,
[flexcoders] Adobe Research On Flex Developers!!
Adobe is conducting a User Research study to learn more about the work flows of Flex Developers. If you have worked with Flex in a professional capacity we would really like to hear from you. In addition, an Adobe Experience Researchers would like to conduct in-depth interviews with Flex Developers in the San Francisco Bay Area. This interview would be held at the participants work site with in the next couple of weeks. Our researcher would spend approximately 90 minutes with the participant to observe and ask questions about their work flow. As a token of our appreciation for taking the time to talk with us, we're offering a $150 American Express gift check (or, alternatively, a copy of Flex Builder 3 Professional) to each participant. If you are interested in providing Adobe with feedback about your use of Flex and other Adobe products, please click on the link below and complete our survey. https://www.surveymonkey.com/s.aspx?sm=9kTtT1wdVll6PZPriWTzvQ_3d_3d Thank you for your help in making Adobe's products more user friendly. Take care, Petra Uebel
[flexcoders] mx:VideoDisplay /
Hi all. I am putting together a very simple webcam app. In Flex 3 I would have used the mx:VideoDisplay / component, however in Flex 4 this doesnt seem to be present, or at least not in Flash Builder 4 Beta. Can anyone tell me what I should be using instead of VideoDisplay in order to display a webcam feed. Many thanks. Barry.
[flexcoders] Simultaneous my-amf and my-secure-amf
There is a way to build a single Flex application, without changing any configuration files between compliations, that can then be deployed to either a server that is configured for http or a different server that is configured for https. I struggled with this some time. At first it seemed that I had to do one build for the my-amf channel, and a separate build to work with the my-secure-amf channel. That's not the case. a href=http://progressivenoob.blogspot.com/2009/08/configure-flex-to-use-either-amf-or-amf.html; target=_blankSee the solution here.a
[flexcoders] Adobe Air Screenshot
Hi I have looked around the internet for how I can do a screen grab with Adobe Air. I have found this. http://blog.everythingflex.com/2008/04/24/do-a-screen-capture-with-adobe-air/ Has anyone used this method in a commercial app? Is it stable? Does it work? Across all platforms? Can anyone recommend any other methods? Thanks in Advance Michael
Re: [flexcoders] Re: RegExpValidator Not working with code-behind - SOLVED
Thanks for posting your solution. By the way, I also was able to get my regex to work from ActionScript by storing as a String and similarly escaping the curly braces with a backslash. The expression attribute on mx:RegExpValidator is expecting a String, so attempting to store in ActionScript as RegExp type did not work for me. So, I think the following should work for you (untested): public var expression:String = ^(([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])\.)\{3\}([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])$; and then mx:RegExpValidator expression={expression} / Jon On Mon, Aug 31, 2009 at 4:52 PM, gtb104gtb...@yahoo.com wrote: The solution was to declare the regexp in the mxml, escaping the { and } characters. Once I did that, it worked as expected. mx:RegExpValidator id=ipValidator expression=/^(([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])\.)\{3\}([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])$/ source={tiIPAddress} property=text trigger={tiIPAddress} triggerEvent=change noMatchError=Invalid IP Address Format./ Geoff --- In flexcoders@yahoogroups.com, Geoffrey gtb...@... wrote: Didn't seem to help. I changed the String to a RegExp, escaped and didn't escape the {} characters, and also tried with and without the [Bindable] metadata tag. As long as the regular expression is in the actionscript file, it just doesn't work properly. Actually, in this instance, nothing ever validates as a valid IP address. Geoff --- In flexcoders@yahoogroups.com, Ian Thomas ian@ wrote: Geoff, Try: public var validIPExpression:RegExp = /^(([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])\.)\{3\}([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])$/; instead. Could be because by directly specifying the expression, the MXML-AS parser correctly decides to treat it as a RegExp. But when directly binding to the value, binding sees it just as a String. HTH, Ian On Thu, Aug 13, 2009 at 5:17 PM, Geoffreygtb104@ wrote: We use the code-behind technique to attach AS to MXML. Doing this has caused an interesting issue with RegExpValidator. If the regular expression is defined in the AS file and contains a quantifier, it causes validation to act funky. In the following example, if you type about 20 zeroes into the IP field it goes from invalid, to valid, and back to invalid. Obviously it should be invalid after the first zero is typed and stay that way unless a proper IP is entered. However, if you take the same regExp string and put it in the MXML file it works as expected. Note that escaping or not escaping the { or } characters while the string is in the AS file has no effect on the validation. Test.mxml - mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* minWidth=800 minHeight=600 local:MyComp/ /mx:Application MyComp.mxml --- ?xml version=1.0 encoding=utf-8? custom:MyCompScript xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:custom=* mx:FormItem id=fiIPAddress label=IP Address: required=true mx:TextInput id=tiIPAddress/ /mx:FormItem mx:RegExpValidator id=ipValidator expression={validIPExpression} source={tiIPAddress} property=text trigger={tiIPAddress} triggerEvent=change noMatchError=Invalid IP Address Format./ !-- works if you use expression=^(([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])\.)\{3\}([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])$-- /custom:MyCompScript MyCompScript.as --- package { import mx.containers.Form; public class MyCompScript extends Form { [Bindable] public var validIPExpression:String = ^(([01]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])\.){3}([01]?[0-9]{1,2}|2[0-4][0-9]|25[0-5])$; //public var validIPExpression:String = ^(([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])\.)\{3\}([01]?[0-9]\{1,2\}|2[0-4][0-9]|25[0-5])$; // Neither of the above work public function MyCompScript() { super(); } } } Does this seem like a bug, or just a limitation introduced by using the code-behind technique? Thanks, Geoff p.s. Don't know what code-behind is? http://learn.adobe.com/wiki/display/Flex/Code+Behind -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] FLEX multiple Chat Window Minimize, Maximize and Close functionality
Hi, I'm developing the video conference application, multiple users can able to communicate through Video,Audio and text chat. Suppose there are 10 users currently using the application, there are private and public chat functionality available, for private chat a user can able to chat with available other 9 users. So there are 9 private chat window opened with a user end. I want to close, minimize and maximize these chat window, also if we closed the chat window (Disable/Enable), other user will send a message, at that time the same window will be populated and retain the previous chat history. How can i do with TitleWindow component. Already i spend more time for this please provide clear information or source code. Thanks, Sabari.
[flexcoders] Enter key like Tab key
Hi all, I have a TitleWindow with a TextInput and 2 buttons and i need that when Enter key is pressed it works like tab key. I try the following code but i receive a null public function initForm():void { tfNome.setFocus(); this.addEventListener(KeyboardEvent.KEY_DOWN, enterNextFocus); } private function enterNextFocus(event:KeyboardEvent) : void { if (event.keyCode == 13) { this.focusManager.setFocus(this.focusManager.getNextFocusManagerComponent()); this.focusManager.showFocus(); } } The problem is here this.focusManager.getNextFocusManagerComponent() return null
[flexcoders] RemoteObject Transmission Delays
My application has been having problems with remoteObject taking up to 8 seconds to transmit. I read somewhere about remoteObject batching and so on to optimize, but I can't figure out how to control it. Any pointers would be greatly appreciated. Thanks, John Luke Mills
[flexcoders] Air html download function
I have an AIR application that is just a web browser and I want it to behave just like any other browser. I have overcome various problems in getting it to behave so but I am left with just the problem stated. I can't get it to download anything apart from PDFs. I have been doing a bit of digging and have found this: http://www.adobe.com/go/learn_air15_apiupdates_en which talks about new features in Air 1.5 to include upload and download functions in a new API. I have searched for hours now and still can't find reference to this API or how to use it. I have tested my application and it will upload files perfectly to a server but then it will not download the same file back to the application unless it is a PDF whereupon it will open it automatically. Anybody shed any light on this or know how to download files from mx:HTML controls in AIR?
[flexcoders] setting endpoint of remoteobject
Hi , I am facing problem of setting end point of remoteobject that give one error as TypeError: Error #1034: Type Coerci on failed: cannot convert mx.messaging.messages::errormess...@5a59dc59 to mx.messaging.messages.ErrorMessage. Give me help Thanks, Achiver
[flexcoders] Tooltip Style
I have set the following style for Tooltip in a CSS file, it works fine, however when this style is applied the error messages displayed using the Validators are showing as empty red dialog boxes without any text in them. I know errorTip is derived from the Tooltip is this causing the problem? Is there any way I can set the style for the Tooltip without any conflicts with the styles of errorTip. ToolTip { cornerRadius: 6; backgroundColor: #fed678; color: #33; fontFamily: Arial; fontSize: 8; fontWeight: bold; borderColor: #99; }
[flexcoders] fade text automatically, i.e without any trigger event
Hi, my flex code reads an XML and displays its contents one after the other. to be more clear, here is the flex code i have written: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Script ![CDATA[ import mx.controls.*; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.collections.XMLListCollection; import mx.collections.ArrayCollection; import flash.utils.Timer; [Bindable] private var AccountInformation:ArrayCollection; [Bindable] private var tmp:Object; [Bindable] public var listDP:XMLListCollection = new XMLListCollection(new XMLList()); private const TIMER_INTERVAL:int = 1500; [Bindable] private var baseTimer:int = 0; private var t:Timer; [Bindable] private var xmlReaderTimer:Timer; public function init():void { accountData.send(); xmlReaderTimer = new Timer(1*60*500); xmlReaderTimer.addEventListener(TimerEvent.TIMER, readXml); xmlReaderTimer.start(); } private function readXml(event:TimerEvent):void{ accountData.send(); } private function updateTimer(evt:TimerEvent):void { datagrid.dataProvider = AccountInformation.getItemAt(baseTimer); baseTimer++; if(baseTimer == AccountInformation.length) baseTimer = 0; } private function startTimer():void { t.start(); } private function stopTimer():void { t.stop(); } private function AccountHandler(evt:ResultEvent):void { AccountInformation = evt.result.xml.AccInfo as ArrayCollection; if(t!=null t.running) { t.removeEventListener(TimerEvent.TIMER,updateTimer ); t.stop(); t =null; } t = new Timer(TIMER_INTERVAL); t.addEventListener(TimerEvent.TIMER, updateTimer); datagrid.dataProvider = AccountInformation.getItemAt(baseTimer); startTimer(); } private function faultHandler(evt:FaultEvent):void { var faultMessage:String = Could not connect with XML file; Alert.show(faultMessage, Error opening file); } ]] /mx:Script mx:Fade id=fadeOut duration=10 alphaFrom=1.0 alphaTo=0.0/ mx:Fade id=fadeIn duration=10 alphaFrom=0.0 alphaTo=1.0/ mx:HTTPService id=accountData url=pgm1.xml result=AccountHandler(event) fault=faultHandler(event) / mx:AdvancedDataGrid rowCount=1 x=20 y=10 verticalGridLines=false textAlign=center editable=true width=950 id=datagrid rowHeight=40 headerColors=red headerSortSeparatorSkin=mx.skins.ProgrammaticSkin headerSeparatorSkin=mx.skins.ProgrammaticSkin sortExpertMode=true headerHeight=50 height=100 fontSize=12 showEffect={fadeIn} hideEffect={fadeOut}/ mx:HRule x=20 y=63 width=950 height=6/ !-- mx:Button label=Start click={startTimer()} x=176 y=242/ mx:Button label=Stop click={stopTimer()} x=271 y=242/ -- /mx:Application i want the text to fade in and fade out. how do i do it?
Re: [flexcoders] Displaying row count with Group In ADG grouping
Hi, Just set the AdvancedDataGrid's groupLabelFunction to something like this: private function groupLabel(item:Object, depth:int):String { var count:int = item.children.length; return item.GroupLabel + ( + count + ); } HTH --- On Sun, 8/30/09, chauhan_icse chauhan_i...@yahoo.com wrote: From: chauhan_icse chauhan_i...@yahoo.com Subject: [flexcoders] Displaying row count with Group In ADG grouping To: flexcoders@yahoogroups.com Date: Sunday, August 30, 2009, 9:40 AM Hi All, Is it possible to show row count at Group level in ADG ie I want to show no of row count at each level of grouping. For Example :- Asia (2) - India - China Europe (3) - France - Itely -Switzerland I am thinking of using filtering to acheive this but it would be great if there is easy to way for it. Regards, Dharmendra
[flexcoders] Flex 3 Content Assist does not show all class packages???
hey all, i have been programming in AS3 for a while now, i have used flex here and there, but am looking to use the framework for an app i working full board. i am writing it all in AS3, not MXML... why when i see code hinting do i not see all of the class packages available to the 3.4 SDK? ie. when i type flash... i only see the package errors there, i do not see events, etc. can anyone help me with this? thanks, aj
[flexcoders] WebService lost connection
Hi coders, I've got an app that makes frequent web service broadcasts and they often will time out. I've got code to handle this and eventually the calls go through but I'm trying to determine why it happens so often in the first place. The loss of connectivity happens most often on low RAM Macs. Higher RAM clients can connect to same server without problems. Has anyone seen a situation like this. Thanks
[flexcoders] how to operate system with air?
i want to shut down my computer or restart my computer with my client application . this client application is a air_app.
[flexcoders] Sort column in advanceddatagrid on application start
After creationComplete I want to say that one column from the advancedDataGrid is sort. I can't do this on the dataprovider because I want the sort on a summaryRow. I hope this is enough information
[flexcoders] Air and geolocation
Hi there, Curious if anyone has done any geolocation with Air apps? I would like to be able to use something like Geode or Skyhook/Loki that have much better resolution than simple IP lookups - but they are all browser based. Any ideas or pointers appreciated. TIA!
Re: [flexcoders] Re: How do I get on adobe feeds? I'm having problems...
Hello all, Does anyone know who is admin for the feeds on MXNA/feeds.adobe.com? I would like to have my feed URL updated. It's been about 2 days since I sent the request. I would like to know if they've received my request. knowledge.lapasa.net Old - http://knowledge.lapasa.net/wp-atom.php New - http://knowledge.lapasa.net/?feed=rss2 Thx, -mL Amy wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Nate Pearson napearso...@... wrote: I'm trying to get my blog on adobe feeds. I've submitted my blog to the feed (19nates.com) and received an e- mail from adobe that says Your site has been added to Adobe Feeds: http://feeds.adobe.com http://feeds.adobe.com. I click on my ping link and I get flerror 0 message Thanks for pinging MXNA!. When I try to ping my link over at adobe feeds it says my blog hasn't been added. I've e-mailed the help link twice but haven't got a response in about 2 weeks. HELP! :) Any ideas? Any adobe people here that can help me out? I just want to share my flexness with the world. Look around on the Flex Documentation Team site to see if there's anything they're saying that you want to link to. If they start seeing traffic coming from your links, they are likely to add you. HTH; Amy Notice of confidentiality: The information contained in this e-mail is intended only for the use of the individual or entity named above and may be confidential. Should the reader of this message not be the intended recipient, you are hereby notified that any unauthorized dissemination, distribution or reproduction of this message is strictly prohibited. If you have received this message in error, please advise the sender immediately and destroy the e-mail.
[flexcoders] Flex PMD forum?
Hi, does anyone know if there's a Flex PMD forum or mailing list? The link at http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD is broken and I haven't been able to find it. I'm not sure if anyone on this list has started using it, I tried both the command line and ant task and they both bomb out after a second with the generic error java.lang.StringIndexOutOfBoundsException: String index out of range: -1 TIA, Magnus
Re: [flexcoders] cannot convert mx.graphics::str...@205c5d61 to mx.graphics.IStroke
Yes, thanks. I did find the answer shortly after posting here. On 03/09/2009, at 4:51 PM, Alex Harui wrote: Are you using modules? It is a common problem. Quick fix is to link IStroke in the main app. If you google you’ll see past threads on this topic. In a script block just do: Import mx.graphics.IStroke; IStroke; Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of g...@alchemy.com.au Sent: Wednesday, September 02, 2009 10:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] cannot convert mx.graphics::str...@205c5d61 to mx.graphics.IStroke Any ideas why this would start occurring? Only thing that has changed is I've updated from 3.1 to 3.2. I've tried a clean and rebuild, to no avail. Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed: cannot convert mx.graphics::str...@205c5d61 to mx.graphics.IStroke.) mx.charts::AxisRenderer/measure mx.core::UIComponent/measureSizes mx.core::UIComponent/validateSize mx.managers::LayoutManager/validateSize mx.managers::LayoutManager/doPhasedInstantiation Function/http://adobe.com/AS3/2006/builtin::apply [no source] mx.core::UIComponent/callLaterDispatcher2 mx.core::UIComponent/callLaterDispatcher -- This message was sent using IMP, the Internet Messaging Program.
Re: [flexcoders] Manage a multi lingual application
My personal experience is that you should handle this in the back end. Flex can do it but I find it cumbersome to use and distribute. What i have done is to populate an object with the translated strings and use it like this: mx:label text={translations.username}/ Where translations is a bindable object you have already filled up in the server On Mon, Aug 31, 2009 at 7:35 PM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, What is the best system to manage with Flex a multi-lingual application ? Do you have source examples ? Thank you, Christopher, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Alternative to ILOG Elixir indicators and Degrafa
Hello, For my project I need a component that can display some alphanumeric text, basically some sort of fancier label. The requirements are that it displays alphanumeric text, an optional sign for numbers, that the number of displayed characters is not limited and the component auto-resizes for all text to fit in. I should also be able to modify the foreground and the background, the font etc. And of course it should look good (a simple label would not suffice). The options I have right now is either using ILOG Elixir which has some indicator components in version 2.0 or making my own component with Degrafa. Do you know of any other options? Thanks, Alex
Re: [flexcoders] Flex PMD forum?
Ok i found the same problem and i fixed it, i have shared the solution on http://100kph.blogspot.com/2009/09/adobe-technical-services-just-launched.html HTH's On Thu, Sep 3, 2009 at 6:46 PM, Magnus Lassi magnus.la...@gmail.com wrote: Hi, does anyone know if there's a Flex PMD forum or mailing list? The link at http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD is broken and I haven't been able to find it. I'm not sure if anyone on this list has started using it, I tried both the command line and ant task and they both bomb out after a second with the generic error java.lang.StringIndexOutOfBoundsException: String index out of range: -1 TIA, Magnus
[flexcoders] Re: DateField - minYear and maxYear - don't work if they contain calculated value?
I am using SDK 3.3 and this works for me: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ [Bindable] private var year:int = new Date().getFullYear(); ]] /mx:Script mx:DateField maxYear={year} minYear={year - 9}/ /mx:Application I can only select a date between Jan 2000 and Dec 2009. --- In flexcoders@yahoogroups.com, flexcoder2008 djohnso...@... wrote: I have a DateField and if I set the minYear or the maxYear property to a value directly, everything works great. eg. mx:Datefield maxYear=2009 minYear=2000/ But if I want to use a calculated value in there, it doesn't work. I can navigate past this value. eg. [Bindable] var year:int = new Date().getFullYear(); mx:DateField maxYear = {year} minYear={year - 10}/ Why is this? Does anybody have a workaround for this?
[flexcoders] Generate a sound
Hello, How to generate a sound registered sentence when I click on an Image? Thank you, Christopher,
[flexcoders] hey~
Hi, I bought a TV last week from a website:www.hkeles.com. I have received the product. The quality is very good. They also sell phones,motor,psp and so on. Because of the financial crisis, their products are very cheap. by the way, they only sell new and original products .If you need these products, you can have a look . I think you will get many benefits. Greetings!
[flexcoders] Re: DateField - minYear and maxYear - don't work if they contain calculated valu
Thanks valdhor, I tried your example and yes it works...very strange. I noticed another person had a similar issue to me at this post: http://forums.adobe.com/message/1052372; The thing is, I was working with 2 datefields trying to do some date math to ensure restricted values for a start and end date. After removing this date math and trying your example everything worked. I think there is a built in bug with the datefield though. The issue seems to be when you set the minYear and maxYear to the same value. In this case the maxYear value works but the minYear doesn't. Try it with your example, make both values {year} and you will see that you can keep navigating back before the minimum year. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I am using SDK 3.3 and this works for me: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ [Bindable] private var year:int = new Date().getFullYear(); ]] /mx:Script mx:DateField maxYear={year} minYear={year - 9}/ /mx:Application I can only select a date between Jan 2000 and Dec 2009. --- In flexcoders@yahoogroups.com, flexcoder2008 djohnson29@ wrote: I have a DateField and if I set the minYear or the maxYear property to a value directly, everything works great. eg. mx:Datefield maxYear=2009 minYear=2000/ But if I want to use a calculated value in there, it doesn't work. I can navigate past this value. eg. [Bindable] var year:int = new Date().getFullYear(); mx:DateField maxYear = {year} minYear={year - 10}/ Why is this? Does anybody have a workaround for this?
[flexcoders] Re: DateField - minYear and maxYear - don't work if they contain calculated valu
Yes, that does appear to be a bug. A simple workaround is to use a selectableRange: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical initialize=onInit() mx:Script ![CDATA[ [Bindable] private var selectableRange:Object = new Object(); private function onInit():void { var currentDate:Date = new Date(); selectableRange = {rangeStart:currentDate, rangeEnd:new Date(currentDate.getFullYear(),11,31)}; } ]] /mx:Script mx:DateField selectableRange={selectableRange}/ /mx:Application --- In flexcoders@yahoogroups.com, flexcoder2008 djohnso...@... wrote: Thanks valdhor, I tried your example and yes it works...very strange. I noticed another person had a similar issue to me at this post: http://forums.adobe.com/message/1052372; The thing is, I was working with 2 datefields trying to do some date math to ensure restricted values for a start and end date. After removing this date math and trying your example everything worked. I think there is a built in bug with the datefield though. The issue seems to be when you set the minYear and maxYear to the same value. In this case the maxYear value works but the minYear doesn't. Try it with your example, make both values {year} and you will see that you can keep navigating back before the minimum year. --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: I am using SDK 3.3 and this works for me: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ [Bindable] private var year:int = new Date().getFullYear(); ]] /mx:Script mx:DateField maxYear={year} minYear={year - 9}/ /mx:Application I can only select a date between Jan 2000 and Dec 2009. --- In flexcoders@yahoogroups.com, flexcoder2008 djohnson29@ wrote: I have a DateField and if I set the minYear or the maxYear property to a value directly, everything works great. eg. mx:Datefield maxYear=2009 minYear=2000/ But if I want to use a calculated value in there, it doesn't work. I can navigate past this value. eg. [Bindable] var year:int = new Date().getFullYear(); mx:DateField maxYear = {year} minYear={year - 10}/ Why is this? Does anybody have a workaround for this?
Re: [flexcoders] Help with AdvancedDataGrid - Urgent
Hi Santosh, Check out GroupingCollection. Adrian Santosh Varghese wrote: Hi, I am new to Flex development. I wanted to use the AdvancedDataGrid to display data in a tree structure. coming from a remoteobject . The remote object is a java Collections object. I could read this data and get into Flex ArrayCollection. The data in the ArrayCollection contians complex data structure, which cannot be displayed directly into AdvancedDataGrid. So i need to create a seperate ArrayCollection object , which serves as the dataprovider for AdvancedDataGrid. I am not able to create the ArrayCollection in the format AdvancedDataGrid needed to display it in a tree structure. Does anybody have any sample code to share ?. I am not able to set the label field(eg : Region and children) programatically , instead of creating it directly as shown below. private var dpHierarchy:ArrayCollection = new ArrayCollection([ {Region:Southwest, children: [ {Region:Arizona, children: [ {Territory_Rep:Barbara Jennings, Actual:38865, Estimate:4}, {Territory_Rep:Dana Binn, Actual:29885, Estimate:3}]}, {Region:Central California, children: [ {Territory_Rep:Joe Smith, Actual:29134, Estimate:3}]}, {Region:Nevada, children: [ {Territory_Rep:Bethany Pittman, Actual:52888, Estimate:45000}]}, {Region:Northern California, children: [ {Territory_Rep:Lauren Ipsum, Actual:38805, Estimate:4}, {Territory_Rep:T.R. Smith, Actual:55498, Estimate:4}]}, {Region:Southern California, children: [ {Territory_Rep:Alice Treu, Actual:44985, Estimate:45000}, {Territory_Rep:Jane Grove, Actual:44913, Estimate:45000}]} ]} ]); Regards, Santosh Varghese
RE: [flexcoders] Why never create an item renderer?
Can anyone recommend any good reading material on this? Im having some memory issues with my itemrenderers lately ;) From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, September 03, 2009 11:53 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Why never create an item renderer? It is good enough if you shipped it and got paid J If you want to post the code for a renderer, we can offer opinions on the pros and cons of your implementation. It might be good education for many. I don't have time to judge dozens of renderers so we can just start with one of yours and discuss it. There is usually a trade-off of ease of programming vs performance and memory optimization. The smaller and faster you want it to be, the more work you have to do. If you're only gonna have 7 renderers on screen, it doesn't matter as much as if you are creating DataGrid renderers for a 20x20 grid. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wesley Acheson Sent: Thursday, September 03, 2009 3:29 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Why never create an item renderer? I've created a few. I've recreated a few working ones because I want to understand the framework better. I guess my problem is how do I know if the item renderers i've created are Correct. I've far too often seen programming as a religion. I've just as often seen people just make things work. I can't stand by either of these sometimes you need things to just work, however if you don't worry about practices you've got unmaintainable code. So how do I know if what I've written is good enough. Regards, Wesley Acheson On Thu, Sep 3, 2009 at 9:38 PM, Tracy Spratt tr...@nts3rd.com wrote: It is not always given as advice. I give that when I see that a developer does not have his head around the issues. It is usually quite obvious when that is the case. I think it is better advice than RTFM. An example will get a newbie further faster. When that advice does not apply to you, you will know it. Tracy Spratt, Lariat Services, development services available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wesley Acheson Sent: Thursday, September 03, 2009 2:36 PM To: flexcoders Subject: [flexcoders] Why never create an item renderer? I've seen this adivse a lot reciently on the list. Don't create an item renderer modify an existing example. I don't really understand why. I mean their not that difficult to get your head arround so long as you reset all internal variables that need to be reset. Why is this always given as advise? Regards, Wesley Acheson image001.jpgimage002.jpg
[flexcoders] Help with AdvancedDataGrid - Urgent
Hi, I am new to Flex development. I wanted to use the AdvancedDataGrid to display data in a tree structure. coming from a remoteobject . The remote object is a java Collections object. I could read this data and get into Flex ArrayCollection. The data in the ArrayCollection contians complex data structure, which cannot be displayed directly into AdvancedDataGrid. So i need to create a seperate ArrayCollection object , which serves as the dataprovider for AdvancedDataGrid. I am not able to create the ArrayCollection in the format AdvancedDataGrid needed to display it in a tree structure. Does anybody have any sample code to share ?. I am not able to set the label field(eg : Region and children) programatically , instead of creating it directly as shown below. private var dpHierarchy:ArrayCollection = new ArrayCollection([ {Region:Southwest, children: [ {Region:Arizona, children: [ {Territory_Rep:Barbara Jennings, Actual:38865, Estimate:4}, {Territory_Rep:Dana Binn, Actual:29885, Estimate:3}]}, {Region:Central California, children: [ {Territory_Rep:Joe Smith, Actual:29134, Estimate:3}]}, {Region:Nevada, children: [ {Territory_Rep:Bethany Pittman, Actual:52888, Estimate:45000}]}, {Region:Northern California, children: [ {Territory_Rep:Lauren Ipsum, Actual:38805, Estimate:4}, {Territory_Rep:T.R. Smith, Actual:55498, Estimate:4}]}, {Region:Southern California, children: [ {Territory_Rep:Alice Treu, Actual:44985, Estimate:45000}, {Territory_Rep:Jane Grove, Actual:44913, Estimate:45000}]} ]} ]); Regards, Santosh Varghese
[flexcoders] Object Async Token
Hai, I am very new to the Flex I am working on flex + blazeds. I have a peculiar doubt that many feel silly,but this is that part, I have an mxml file which contains A login Form -- when i click on the button it will be load another MXML page, during that action, the form values are validated in the java Api and again returned back to the MXML. The catch is When the Java returns the object to the MXML (ie AS), as Object Async Token, hoe do i handle this one to Integer or anything else. Either way it is satisfying the If in that function (ie it allows inside the If even though we give the unknown user) i dont know how to sort out this. This is the method in the AS public function checkUser():Void { if (loaderService.loginValidate(user)) { Alert.show(user found..+ (user) , Information, Alert.OK, null, null, null, Alert.OK); placeWindow();//this will load the content } else { Alert.show(User not found..., Information, Alert.OK, null, null, null, Alert.OK); } //loader.getConsultants(); //saveService.addUpdateUser(userObj); return null; } And this is the Java API public int loginValidate(Users usersObj) throws Exception { int result = 0; List Users Usersobject =null; try { // Users user = new Users(); Usersobject = new ArrayListUsers(); EntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT); EntityManager em = entityManagerFactory.createEntityManager(); Query findAllQuery = em.createNamedQuery(user.findAll); Usersobject = findAllQuery.getResultList(); logger.debug(** Found + Usersobject.size() + records:); if (Usersobject != null) logger.debug(** Found + Usersobject.size() + records:); for (Iterator iterator = Usersobject.iterator(); iterator .hasNext();) { Users users = (Users) iterator.next(); logger.debug(getname+users.getName()); logger.debug(objname+usersObj.getName()); //if(users.getName()== ((Users) Usersobject).getName()) if(users.getName().trim().equals(usersObj.getName().trim())) { System.out.println(user found); logger.debug(user found); return 1; } else { System.out.println(user n found); logger.debug(user not found); return 0; } } } catch (Exception e) { e.printStackTrace(); System.out.println(e.getMessage()); } return result; } Thanks in advance, if anymore details needed i will be glad to share with you.
RE: [flexcoders] ApplicationDomain, parent not equal for child of same parent.
Known issue, that you can't compare applicationdomains. Our workaround is to test whether definitions are the same. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of sehrawat_raj Sent: Friday, September 04, 2009 12:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ApplicationDomain, parent not equal for child of same parent. For the following lines of code I am getting unexpected results. var currAppDomain :ApplicationDomain = ApplicationDomain.currentDomain; var appDomain1 :ApplicationDomain = new ApplicationDomain( currAppDomain ); var appDomain2 :ApplicationDomain = new ApplicationDomain( currAppDomain ); There appDomain1 and appDomain2 are expected to be child of currAppDomain. But appDomain1.parentDomain is not equal to appDomain2.parentDomain. Also non of appDomain1.parentDomain appDomain2.parentDomain is equal to currAppDomain. I am checking the value displayed in Flex builder Variables tab. The results are very confusing. I need this code to load modules in child application domain. Ref: http://livedocs.adobe.com/flex/3/html/help.html?content=18_Client_System_Environment_5.html I am making any mistake? Thanks, Rajkumar Sehrawat
[flexcoders] Coding Best Practices/Accessing Using External AS
I have a series of component canvas containers that have children added and updated based on data in an ArrayCollection. The logic for the layout of the children in the container is identical for each canvas. What I am struggling with is where to put the logic for the layout. If I put it inside the custom canvas container, I'm loading all this code each time I add the custom canvas container to the parent application, and there could be 20+ canvas containers added to the application. If I leave the layout logic in the parent container, then the layout for each canvas occurs in sequential order as I loop through all the canvas containers. I need the layout logic to run simultaneous and independantly for each canvas. So the question is, how do I externalize my layout logic so each container can use it, and not have the code internal to the component? What is the best practice? The canvas container has to pass an Array of data to the script and it will need to add and update children within the canvas container. To may way of thinking, each container shouldn't contain the same 400 lines of layout logic code. Instead, each instance of the container should be able to call the code, which is only loaded into the application 1 time. That seem's like the efficient way to go, but I'm not sure how to do this or if it's the right way to do it. I'm using Flex 3.
RE: [flexcoders] Why never create an item renderer?
There might be some posts on my blog that might help Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Christopher McArthur Sent: Friday, September 04, 2009 9:35 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Why never create an item renderer? Can anyone recommend any good reading material on this? Im having some memory issues with my itemrenderers lately ;) From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, September 03, 2009 11:53 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Why never create an item renderer? It is good enough if you shipped it and got paid :) If you want to post the code for a renderer, we can offer opinions on the pros and cons of your implementation. It might be good education for many. I don't have time to judge dozens of renderers so we can just start with one of yours and discuss it. There is usually a trade-off of ease of programming vs performance and memory optimization. The smaller and faster you want it to be, the more work you have to do. If you're only gonna have 7 renderers on screen, it doesn't matter as much as if you are creating DataGrid renderers for a 20x20 grid. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Wesley Acheson Sent: Thursday, September 03, 2009 3:29 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Why never create an item renderer? I've created a few. I've recreated a few working ones because I want to understand the framework better. I guess my problem is how do I know if the item renderers i've created are Correct. I've far too often seen programming as a religion. I've just as often seen people just make things work. I can't stand by either of these sometimes you need things to just work, however if you don't worry about practices you've got unmaintainable code. So how do I know if what I've written is good enough. Regards, Wesley Acheson On Thu, Sep 3, 2009 at 9:38 PM, Tracy Spratt tr...@nts3rd.commailto:tr...@nts3rd.com wrote: It is not always given as advice. I give that when I see that a developer does not have his head around the issues. It is usually quite obvious when that is the case. I think it is better advice than RTFM. An example will get a newbie further faster. When that advice does not apply to you, you will know it. Tracy Spratt, Lariat Services, development services available From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Wesley Acheson Sent: Thursday, September 03, 2009 2:36 PM To: flexcoders Subject: [flexcoders] Why never create an item renderer? I've seen this adivse a lot reciently on the list. Don't create an item renderer modify an existing example. I don't really understand why. I mean their not that difficult to get your head arround so long as you reset all internal variables that need to be reset. Why is this always given as advise? Regards, Wesley Acheson
RE: [flexcoders] Coding Best Practices/Accessing Using External AS
Sounds like you need a base class with the layout logic, then 20+ subclasses of that base class. You may not need to start with Canvas, mx.core.Container might be good enough. Then you can follow the model of how Box, VBox and HBox and their layout code is configured. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jmfillman Sent: Friday, September 04, 2009 11:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Coding Best Practices/Accessing Using External AS I have a series of component canvas containers that have children added and updated based on data in an ArrayCollection. The logic for the layout of the children in the container is identical for each canvas. What I am struggling with is where to put the logic for the layout. If I put it inside the custom canvas container, I'm loading all this code each time I add the custom canvas container to the parent application, and there could be 20+ canvas containers added to the application. If I leave the layout logic in the parent container, then the layout for each canvas occurs in sequential order as I loop through all the canvas containers. I need the layout logic to run simultaneous and independantly for each canvas. So the question is, how do I externalize my layout logic so each container can use it, and not have the code internal to the component? What is the best practice? The canvas container has to pass an Array of data to the script and it will need to add and update children within the canvas container. To may way of thinking, each container shouldn't contain the same 400 lines of layout logic code. Instead, each instance of the container should be able to call the code, which is only loaded into the application 1 time. That seem's like the efficient way to go, but I'm not sure how to do this or if it's the right way to do it. I'm using Flex 3.
[flexcoders] Position elements with different font size against baseline in HBox
Hello, flexcoders. Let's pretend I have the following code: mx:HBox mx:Label text=LABEL1 fontSize=10/ mx:Label text=LABEL2 fontSize=12/ /mx:HBox What should I do to vertically position the buttons on the same baseline without using padding? Referencing some constraint row from outside the HBox does not work, since HBox abolishes absolute positioning. Thank you, Alexander Tarelkin
[flexcoders] Re: Coding Best Practices/Accessing Using External AS
This goes to my lack of understanding in this area, but your saying create my own container type, correct? My logic sets the x, y, width, and height, so I don't know that I need all the measure and other items found in the ContainerLayout scripting associated with the standard container. Any good examples, tutorials on this? I'm just not up on base class and subclasses, etc. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Sounds like you need a base class with the layout logic, then 20+ subclasses of that base class. You may not need to start with Canvas, mx.core.Container might be good enough. Then you can follow the model of how Box, VBox and HBox and their layout code is configured. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jmfillman Sent: Friday, September 04, 2009 11:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Coding Best Practices/Accessing Using External AS I have a series of component canvas containers that have children added and updated based on data in an ArrayCollection. The logic for the layout of the children in the container is identical for each canvas. What I am struggling with is where to put the logic for the layout. If I put it inside the custom canvas container, I'm loading all this code each time I add the custom canvas container to the parent application, and there could be 20+ canvas containers added to the application. If I leave the layout logic in the parent container, then the layout for each canvas occurs in sequential order as I loop through all the canvas containers. I need the layout logic to run simultaneous and independantly for each canvas. So the question is, how do I externalize my layout logic so each container can use it, and not have the code internal to the component? What is the best practice? The canvas container has to pass an Array of data to the script and it will need to add and update children within the canvas container. To may way of thinking, each container shouldn't contain the same 400 lines of layout logic code. Instead, each instance of the container should be able to call the code, which is only loaded into the application 1 time. That seem's like the efficient way to go, but I'm not sure how to do this or if it's the right way to do it. I'm using Flex 3.
[flexcoders] Re: Coding Best Practices/Accessing Using External AS
So if I am understanding you correctly you have built a custom component already and you are just making many instances of it during the runtime of your app? If this is the case it is fine to put the logic in the custom canvas. Once you compile the code each time you add a new instance of the component it will not be adding the 400 lines of code to your app over and over. All of the components reference the same compiled code. Even if you are loading modules once you load a module once the application is smart enough to know that that code is already loaded into the app and does not reload all of that code. Now if you are talking about 20 separate classes that all have the same code copied and pasted (yikes) you would want to use a base class and extend from that. --- In flexcoders@yahoogroups.com, jmfillman jmfill...@... wrote: I have a series of component canvas containers that have children added and updated based on data in an ArrayCollection. The logic for the layout of the children in the container is identical for each canvas. What I am struggling with is where to put the logic for the layout. If I put it inside the custom canvas container, I'm loading all this code each time I add the custom canvas container to the parent application, and there could be 20+ canvas containers added to the application. If I leave the layout logic in the parent container, then the layout for each canvas occurs in sequential order as I loop through all the canvas containers. I need the layout logic to run simultaneous and independantly for each canvas. So the question is, how do I externalize my layout logic so each container can use it, and not have the code internal to the component? What is the best practice? The canvas container has to pass an Array of data to the script and it will need to add and update children within the canvas container. To may way of thinking, each container shouldn't contain the same 400 lines of layout logic code. Instead, each instance of the container should be able to call the code, which is only loaded into the application 1 time. That seem's like the efficient way to go, but I'm not sure how to do this or if it's the right way to do it. I'm using Flex 3.
[flexcoders] Re: Coding Best Practices/Accessing Using External AS
Yes, I have a custom canvas component. Currently, my layout logic is in the parent application, and has to perform the layout sequentially for the data relevant to each instance of the custom component. My concern was that FlashPlayer/AIR is loading the component X number of times and so the memory usage would quickly get out of hand. With your description, it only gets loaded once, but used multiple times, and that would work just fine. Thank you for the explanation! --- In flexcoders@yahoogroups.com, ag_rcuren robert.vancuren...@... wrote: So if I am understanding you correctly you have built a custom component already and you are just making many instances of it during the runtime of your app? If this is the case it is fine to put the logic in the custom canvas. Once you compile the code each time you add a new instance of the component it will not be adding the 400 lines of code to your app over and over. All of the components reference the same compiled code. Even if you are loading modules once you load a module once the application is smart enough to know that that code is already loaded into the app and does not reload all of that code. Now if you are talking about 20 separate classes that all have the same code copied and pasted (yikes) you would want to use a base class and extend from that. --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: I have a series of component canvas containers that have children added and updated based on data in an ArrayCollection. The logic for the layout of the children in the container is identical for each canvas. What I am struggling with is where to put the logic for the layout. If I put it inside the custom canvas container, I'm loading all this code each time I add the custom canvas container to the parent application, and there could be 20+ canvas containers added to the application. If I leave the layout logic in the parent container, then the layout for each canvas occurs in sequential order as I loop through all the canvas containers. I need the layout logic to run simultaneous and independantly for each canvas. So the question is, how do I externalize my layout logic so each container can use it, and not have the code internal to the component? What is the best practice? The canvas container has to pass an Array of data to the script and it will need to add and update children within the canvas container. To may way of thinking, each container shouldn't contain the same 400 lines of layout logic code. Instead, each instance of the container should be able to call the code, which is only loaded into the application 1 time. That seem's like the efficient way to go, but I'm not sure how to do this or if it's the right way to do it. I'm using Flex 3.
RE: [flexcoders] Re: Coding Best Practices/Accessing Using External AS
The definition gets loaded once, 20 instances are created and 20 copies of any of those instance's sub objects, etc. Usually that's small, but if you have a lot of sub objects or a lot of properties or really big properties like large arrays and bitmaps, then 20 instances can eat a lot of memory. Usually, for good modular design, the parent app or some outside' thing provides data (from the server, or a set of children) to a container and logic in the container does the layout. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jmfillman Sent: Friday, September 04, 2009 12:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Coding Best Practices/Accessing Using External AS Yes, I have a custom canvas component. Currently, my layout logic is in the parent application, and has to perform the layout sequentially for the data relevant to each instance of the custom component. My concern was that FlashPlayer/AIR is loading the component X number of times and so the memory usage would quickly get out of hand. With your description, it only gets loaded once, but used multiple times, and that would work just fine. Thank you for the explanation! --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, ag_rcuren robert.vancuren...@... wrote: So if I am understanding you correctly you have built a custom component already and you are just making many instances of it during the runtime of your app? If this is the case it is fine to put the logic in the custom canvas. Once you compile the code each time you add a new instance of the component it will not be adding the 400 lines of code to your app over and over. All of the components reference the same compiled code. Even if you are loading modules once you load a module once the application is smart enough to know that that code is already loaded into the app and does not reload all of that code. Now if you are talking about 20 separate classes that all have the same code copied and pasted (yikes) you would want to use a base class and extend from that. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, jmfillman jmfillman@ wrote: I have a series of component canvas containers that have children added and updated based on data in an ArrayCollection. The logic for the layout of the children in the container is identical for each canvas. What I am struggling with is where to put the logic for the layout. If I put it inside the custom canvas container, I'm loading all this code each time I add the custom canvas container to the parent application, and there could be 20+ canvas containers added to the application. If I leave the layout logic in the parent container, then the layout for each canvas occurs in sequential order as I loop through all the canvas containers. I need the layout logic to run simultaneous and independantly for each canvas. So the question is, how do I externalize my layout logic so each container can use it, and not have the code internal to the component? What is the best practice? The canvas container has to pass an Array of data to the script and it will need to add and update children within the canvas container. To may way of thinking, each container shouldn't contain the same 400 lines of layout logic code. Instead, each instance of the container should be able to call the code, which is only loaded into the application 1 time. That seem's like the efficient way to go, but I'm not sure how to do this or if it's the right way to do it. I'm using Flex 3.
[flexcoders] Re: Coding Best Practices/Accessing Using External AS
The parent will be pulling the data from the DB and passing the data to each instance of the component to display. The array of data in each component would routinely carry 30-40 items, but could have 50+ items on occasion. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: The definition gets loaded once, 20 instances are created and 20 copies of any of those instance's sub objects, etc. Usually that's small, but if you have a lot of sub objects or a lot of properties or really big properties like large arrays and bitmaps, then 20 instances can eat a lot of memory. Usually, for good modular design, the parent app or some outside' thing provides data (from the server, or a set of children) to a container and logic in the container does the layout. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jmfillman Sent: Friday, September 04, 2009 12:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Coding Best Practices/Accessing Using External AS Yes, I have a custom canvas component. Currently, my layout logic is in the parent application, and has to perform the layout sequentially for the data relevant to each instance of the custom component. My concern was that FlashPlayer/AIR is loading the component X number of times and so the memory usage would quickly get out of hand. With your description, it only gets loaded once, but used multiple times, and that would work just fine. Thank you for the explanation! --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, ag_rcuren robert.vancuren.jr@ wrote: So if I am understanding you correctly you have built a custom component already and you are just making many instances of it during the runtime of your app? If this is the case it is fine to put the logic in the custom canvas. Once you compile the code each time you add a new instance of the component it will not be adding the 400 lines of code to your app over and over. All of the components reference the same compiled code. Even if you are loading modules once you load a module once the application is smart enough to know that that code is already loaded into the app and does not reload all of that code. Now if you are talking about 20 separate classes that all have the same code copied and pasted (yikes) you would want to use a base class and extend from that. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, jmfillman jmfillman@ wrote: I have a series of component canvas containers that have children added and updated based on data in an ArrayCollection. The logic for the layout of the children in the container is identical for each canvas. What I am struggling with is where to put the logic for the layout. If I put it inside the custom canvas container, I'm loading all this code each time I add the custom canvas container to the parent application, and there could be 20+ canvas containers added to the application. If I leave the layout logic in the parent container, then the layout for each canvas occurs in sequential order as I loop through all the canvas containers. I need the layout logic to run simultaneous and independantly for each canvas. So the question is, how do I externalize my layout logic so each container can use it, and not have the code internal to the component? What is the best practice? The canvas container has to pass an Array of data to the script and it will need to add and update children within the canvas container. To may way of thinking, each container shouldn't contain the same 400 lines of layout logic code. Instead, each instance of the container should be able to call the code, which is only loaded into the application 1 time. That seem's like the efficient way to go, but I'm not sure how to do this or if it's the right way to do it. I'm using Flex 3.
RE: [flexcoders] Re: Coding Best Practices/Accessing Using External AS
That should be reasonably small compared to everything else. Non-displayobjects have roughly the same memory characteristics as other languages (4 bytes per property except 8 for Number. DisplayObjects are backed by player code, generally an additional 1K or so plus any bitmaps and other buffers required to render them. Plain old Object is dynamic so it is less efficient. It builds a cache of properties that expect about 8 properties, even if you only put one property in it. Array is roughly the same. So an array holding a reference to 100 data items is only going to cost you about 400 bytes. 20 of those is 8000 bytes, no big deal since you had to create 100 display objects at about 2K or more each * 20 containers = 4 bytes. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of jmfillman Sent: Friday, September 04, 2009 1:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Coding Best Practices/Accessing Using External AS The parent will be pulling the data from the DB and passing the data to each instance of the component to display. The array of data in each component would routinely carry 30-40 items, but could have 50+ items on occasion. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: The definition gets loaded once, 20 instances are created and 20 copies of any of those instance's sub objects, etc. Usually that's small, but if you have a lot of sub objects or a lot of properties or really big properties like large arrays and bitmaps, then 20 instances can eat a lot of memory. Usually, for good modular design, the parent app or some outside' thing provides data (from the server, or a set of children) to a container and logic in the container does the layout. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of jmfillman Sent: Friday, September 04, 2009 12:28 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Coding Best Practices/Accessing Using External AS Yes, I have a custom canvas component. Currently, my layout logic is in the parent application, and has to perform the layout sequentially for the data relevant to each instance of the custom component. My concern was that FlashPlayer/AIR is loading the component X number of times and so the memory usage would quickly get out of hand. With your description, it only gets loaded once, but used multiple times, and that would work just fine. Thank you for the explanation! --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, ag_rcuren robert.vancuren.jr@ wrote: So if I am understanding you correctly you have built a custom component already and you are just making many instances of it during the runtime of your app? If this is the case it is fine to put the logic in the custom canvas. Once you compile the code each time you add a new instance of the component it will not be adding the 400 lines of code to your app over and over. All of the components reference the same compiled code. Even if you are loading modules once you load a module once the application is smart enough to know that that code is already loaded into the app and does not reload all of that code. Now if you are talking about 20 separate classes that all have the same code copied and pasted (yikes) you would want to use a base class and extend from that. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com, jmfillman jmfillman@ wrote: I have a series of component canvas containers that have children added and updated based on data in an ArrayCollection. The logic for the layout of the children in the container is identical for each canvas. What I am struggling with is where to put the logic for the layout. If I put it inside the custom canvas container, I'm loading all this code each time I add the custom canvas container to the parent application, and there could be 20+ canvas containers added to the application. If I leave the layout logic in the parent container, then the layout for each canvas occurs in sequential order as I loop through all the canvas containers. I need the layout logic to run simultaneous and independantly for each canvas. So the question is, how do I externalize my layout logic so each container can use it, and not have the code internal to the component? What is the best practice? The canvas container has to pass an Array of
Re: [flexcoders] Flex PMD forum?
Thanks, I followed your advice and exported it making sure not to include the CopyrightMissing rule and running the ant task with custom ruleset but it still failes with the same error and no warning or error before that. I'll try it with a smaller project and at least the forum seems to be working now. Thanks, Magnus On Fri, Sep 4, 2009 at 7:35 AM, ady 100...@gmail.com wrote: Ok i found the same problem and i fixed it, i have shared the solution on http://100kph.blogspot.com/2009/09/adobe-technical-services-just-launched.html HTH's On Thu, Sep 3, 2009 at 6:46 PM, Magnus Lassi magnus.la...@gmail.comwrote: Hi, does anyone know if there's a Flex PMD forum or mailing list? The link at http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD is broken and I haven't been able to find it. I'm not sure if anyone on this list has started using it, I tried both the command line and ant task and they both bomb out after a second with the generic error java.lang.StringIndexOutOfBoundsException: String index out of range: -1 TIA, Magnus
[flexcoders] Can't style AdvancedDataGrid GroupingField
Hi, I set a styleFunction for my AdvancedDataGrid: private function styleRows(data:Object, column:AdvancedDataGridColumn):Object{ return { verticalAlign:'middle', backgroundColor:0xeaeaf4, borderColor:0xbcdbcd9, borderStyle:solid, borderThickness:1 } } It styles all my columns correctly except the first one (which is my GroupingField) doesn't get its backgroundColor or borders set. Why might this happen? Here's my AdvancedDataGrid dataProvider and columns set below: mx:dataProvider mx:GroupingCollection id=gc source={appColl} mx:grouping mx:Grouping mx:GroupingField name=label/ /mx:Grouping /mx:grouping /mx:GroupingCollection /mx:dataProvider mx:columns mx:AdvancedDataGridColumn dataField=label width=175/ mx:AdvancedDataGridColumn width=300 itemRenderer=com.renderer.ApplicationIndicatorRenderer/ mx:AdvancedDataGridColumn width=300 itemRenderer=com.renderer.ApplicationIndicatorRenderer/ mx:AdvancedDataGridColumn width=300 itemRenderer=com.renderer.ApplicationIndicatorRenderer/ /mx:columns