RE: [flexcoders] Dynamic DataGrid
Try visible=false on a column without data, or don't specify columns and it will only show the data but the headings can be ugly. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Oleg Konovalov Sent: Monday, January 14, 2013 11:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamic DataGrid Hi, I am trying to create dynamic DataGrid, which shows columns only if it contains data returned by query (it has 10+ columns, so not easy to calculate sizes).. I read a lot of posts on the net, tried minWidth, ResizeMode, etc. Nothing really useful which works. In most cases it created very narrow columns except the last one - super wide. Please help! (using Flex4 AdvancedDataGrid) -- Thank you in advance, Oleg.
RE: [flexcoders] need some printing advice
This code produces blank 2nd and 4th page with remainder on third page= if(printJob.start()){//start the print job printJob.addObject(printcontainer); var validNextPage = printDataGrid.validNextPage; //use local var to help debug if (validNextPage) { //worst case scenario two pages max printDataGrid.nextPage(); printcontainer.validateNow(); printJob.addObject(printcontainer); //get blank 2nd page, remaining data on 3rd page } printJob.send(); replacing printcontainer.validateNow() with printDataGrid.validateNow() produces the same result removing all calls to .validateNow() produces the same result. Removing the call to .nextPage() results in printing the contents of the 1st page on the third page with 2nd and 4th pages blank I'm doing a print to Adobe PDF and if I change the paper size to legal, I get the same results just with more white space at the bottom of 1st and 3rd pages. I switched to Foxit Phantom Printer with same result. It's as if there is an invisible footer on the container or datagrid that force a blank page? It's almost as if there is something in the MXML that is forcing a blank 2nd page From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Friday, September 07, 2012 11:43 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] need some printing advice Try calling vlidateNow on printContainer instead of printDataGrid On 9/7/12 11:19 AM, Sells, Fred fred.se...@adventistcare.org wrote: With the following code, I get a blank 2nd page and the data continues on the 3rd page. This code is slightly different from prior example...grasping at straws without clear understanding of what I'm doing. private function print():void { var printJob:FlexPrintJob = new FlexPrintJob(); if(printJob.start()){//start the print job printJob.addObject(printcontainer); var validNextPage = printDataGrid.validNextPage; //use local var to help debug if (validNextPage) { //worst case scenario two pages max printDataGrid.nextPage(); printDataGrid.validateNow(); printJob.addObject(printcontainer); //get blank 2nd page, remaining data on 3rd page //printJob.addObject(printDataGrid); //2nd page blank; 3rd page purple header but no data. } printJob.send(); printDataGrid.dataProvider = Appointments; } } !-I tried reducing height of VBox and that just caused the page break to happen sooner, still had blank 2nd page -- mx:VBox id=printcontainer width=100% height=1450 backgroundAlpha=1.0 backgroundColor=white paddingLeft=20 paddingRight=20 paddingTop=50 borderThickness=20 verticalAlign=top horizontalAlign=center visible=false includeInLayout=false mx:Label fontSize=24 textAlign=center fontWeight=bold text={picker.selectedItem.nickname} on {String(Globals.SelectedDate).substr(0,10)}. This contains PHI; destroy after use!!! / mx:PrintDataGrid id=printDataGrid dataProvider={Appointments} fontSize=12 mx:columns mx:DataGridColumn headerText=Start dataField=starttime width=80 textAlign=right/ mx:DataGridColumn headerText=Until dataField=endtime width=80 textAlign=right/ . . . mx:DataGridColumn headerText=Location dataField=location textAlign=center/ mx:DataGridColumn headerText=Notes dataField=notes width=400 textAlign=left/ /mx:columns /mx:PrintDataGrid /mx:VBox From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, September 06, 2012 11:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] need some printing advice What result do you get? No second page or second page is same as first? If the latter, try calling validateNow() after nextPage() -- Alex Harui Flex SDK Team Adobe Systems, Inc. http://blogs.adobe.com/aharui
RE: [flexcoders] need some printing advice
With the following code, I get a blank 2nd page and the data continues on the 3rd page. This code is slightly different from prior example...grasping at straws without clear understanding of what I'm doing. private function print():void { var printJob:FlexPrintJob = new FlexPrintJob(); if(printJob.start()){//start the print job printJob.addObject(printcontainer); var validNextPage = printDataGrid.validNextPage; //use local var to help debug if (validNextPage) { //worst case scenario two pages max printDataGrid.nextPage(); printDataGrid.validateNow(); printJob.addObject(printcontainer); //get blank 2nd page, remaining data on 3rd page //printJob.addObject(printDataGrid); //2nd page blank; 3rd page purple header but no data. } printJob.send(); printDataGrid.dataProvider = Appointments; } } !-I tried reducing height of VBox and that just caused the page break to happen sooner, still had blank 2nd page -- mx:VBox id=printcontainer width=100% height=1450 backgroundAlpha=1.0 backgroundColor=white paddingLeft=20 paddingRight=20 paddingTop=50 borderThickness=20 verticalAlign=top horizontalAlign=center visible=false includeInLayout=false mx:Label fontSize=24 textAlign=center fontWeight=bold text={picker.selectedItem.nickname} on {String(Globals.SelectedDate).substr(0,10)}. This contains PHI; destroy after use!!! / mx:PrintDataGrid id=printDataGrid dataProvider={Appointments} fontSize=12 mx:columns mx:DataGridColumn headerText=Start dataField=starttime width=80 textAlign=right/ mx:DataGridColumn headerText=Until dataField=endtime width=80 textAlign=right/ . . . mx:DataGridColumn headerText=Location dataField=location textAlign=center/ mx:DataGridColumn headerText=Notes dataField=notes width=400 textAlign=left/ /mx:columns /mx:PrintDataGrid /mx:VBox From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, September 06, 2012 11:50 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] need some printing advice What result do you get? No second page or second page is same as first? If the latter, try calling validateNow() after nextPage()
[flexcoders] need some printing advice
I'm using the printdatagrid control and can print one page just fine, but cannot get the second page to print. The code below is a bit hacked from trying to apply Adobe's examples, which I cannot translate to my problem. Any help would be appreciated... private function print():void { var printJob:FlexPrintJob = new FlexPrintJob(); //start the print job if(printJob.start()) { printJob.addObject(printcontainer); //printJob.addObject(printDataGrid); printDataGrid.nextPage(); printJob.addObject(printDataGrid); while(printDataGrid.validNextPage) { printDataGrid.nextPage(); printJob.addObject(printDataGrid); } printJob.send(); printDataGrid.dataProvider = Appointments; //needed to reset for next time. } } mx:VBox id=printcontainer width=100% height=1450 backgroundAlpha=1.0 backgroundColor=white paddingLeft=20 paddingRight=20 paddingTop=50 borderThickness=20 verticalAlign=top horizontalAlign=center visible=false includeInLayout=false mx:Label id=PageHeader fontSize=24 textAlign=center fontWeight=bold text={picker.selectedItem.nickname} on {String(Globals.SelectedDate).substr(0,10)}. / mx:PrintDataGrid id=printDataGrid dataProvider={Appointments} fontSize=12 mx:columns mx:DataGridColumn headerText=Start dataField=starttime width=80 textAlign=right/ ...
RE: [flexcoders] RE: Flash Builder Problem
Given the critical nature of your issue, I would probably get the free 30 day copy of vmware and try a clean install and see what happens. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Davidson, Jerry Sent: Wednesday, August 22, 2012 10:28 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] RE: Flash Builder Problem My complaint was it taking 3-4 hours to even see a post. Of course, I'm VERY appreciative of any help I get. I moderate other forums and am aware of the reviewing process for new posters. I'm currently dead in the water with Flash Builder and my boss just asked me about when the project will be done. I filed a support request with Adobe, but they are not the fastest to respond. From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Dimitrios Gianninas Sent: Wednesday, August 22, 2012 9:22 AM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] RE: Flash Builder Problem Hi Jerry, Your messages will now auto-post with no moderation. But also remember that ppl on this group responded when they can, not when you expect them too :) Hope that helps! Jimmy Flexcoders Moderator On Wed, Aug 22, 2012 at 10:11 AM, Merrill, Jason jason.merr...@bankofamerica.commailto:jason.merr...@bankofamerica.com wrote: We're at the mercy of Yahoo and how their server choose to batch send e-mails. Jason Merrill Instructional Technology Architect II Bank of America Global Learning ___ From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Davidson, Jerry Sent: Wednesday, August 22, 2012 8:48 AM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: [flexcoders] RE: Flash Builder Problem Any way to speed up the posts? Sending it at 1:55 to have it show up at 4:37 guarantees prompt answers are impossible. It's like sending a letter to get tech support or answers. Posted 7:48AM 8/22 From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On Behalf Of Davidson, Jerry Sent: Tuesday, August 21, 2012 1:56 PM To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com Subject: [flexcoders] Flash Builder Problem Flash Builder is no longer working correctly. If you chose a different perspective, you have to leave the program and change it on reentry. I don't know if the newest version of java is related to it, but the problems seemed to happen after those were installed. We have both Flash Builder and the RAD component, but I'm using FB the most. 4.0.1 build 277662. Help. Posted 1:55 CDT 8/21. This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses. References to Sender are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing. -- Jimmy G Team Lead, Product Development
[flexcoders] httpservice url - not use host
Since the Flex crossdomain policy would normally restrict you to the server that launched Flex, is there any way to avoid specifying the whole http://myserver.mydomain.com prefix in the httpservice.url parameter similar to the action in html forms? I'm trying to make it easier to move my solution from one server to another.
RE: [flexcoders] Flex 3 - 4 migration and s:States
Yes, that works for me too, A little googling indicates that you cannot inherit states. So I tried moving the state definitions into the child component which still does not work as shown below. However if I change A.mxml to inherit from s:VGroup the state errors go away (although I get a bunch of new ones because I’m not inheriting from the base class). I could change my base class to an .as definition; but I don’t know if that would help. Any suggestions? ---base component _section.mxml--- s:VGroup xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns:com=components.* … … -- child component A.mxml--- ?xml version=1.0 encoding=utf-8? sections:_section xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns:com=components.* xmlns:sections=sections.* s:states s:State id=Oct2010 name=Oct2010/ s:State id=Oct2011 name=Oct2011/ s:State id=Apr2012 name=Apr2012/ /s:states … -- compiler error points to the s:states line- Description ResourceLocationPath Type Could not resolve s:states to a component implementation. A.mxml line 12 /MdsClientBeta1/src/sections Flex Problem From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tandon, Rishi Sent: Tuesday, February 07, 2012 4:35 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 3 - 4 migration and s:States Well I tried your code in flex sdk 4.6 and could not include mx:states as it is deprecated. But replacing ms:states with s:states works like a butter. Please refer to the code below: ?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 s:states s:State id=sparkState1 name=sparkState1 / s:State id=sparkState2 name=sparkState2 / /s:states mx:Button includeIn=sparkState1 label=MX Component / mx:Button includeIn=sparkState2 label=MX Component 2 / /s:Application Flex 3 states can be used with spark component Please refer to the attach blog: http://blog.benstucki.net/?p=56 Regards, Rishi Tandon From: bu4fred fred.se...@adventistcare.org To: flexcoders@yahoogroups.com Sent: Tuesday, February 7, 2012 12:39 AM Subject: [flexcoders] Flex 3 - 4 migration and s:States I'm migrating a flex 3.0 application to 4.0 (or 4.5, doesn't matter much) and I want to use the new state features of includeIn and excludeFrom. I have a user defined base class in mxml and i inherit from that for my 'working' classes. I have this code in my baseclass mx:TitleWindow xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx xmlns:com=components.* currentState=Oct2010 mx:states s:State id=Oct2010 name=Oct2010/ s:State name=Oct2011/ s:State name=Apr2012/ /mx:states . . . - working class contains - mx:FormItem includeIn=Apr2012 ... /mx:FormItem and the error is State 'Apr2012' was referenced without being declared. A.mxml line 66 /MdsClientBeta1/src/sections Flex Problem --- comments I tried s:states rather than mx:states but it could not resolve name Must s:states be used only in s: components or can they be used in mx components?
RE: [flexcoders] Re: Challenge in Migrating to HTML5 from FLEX.
Zkoss is a backend I believe. Although I don’t use BlazeDS, I believe that uses adoble’s AMF (binary) format. If so you would need to search for a javascript library that works with AMF. Perhaps BlazeDS has a flag you can set so it generates XML instead. Sorry I cannot help more. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of valdhor Sent: Friday, January 13, 2012 12:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Challenge in Migrating to HTML5 from FLEX. On another thread someone mentioned zkoss. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Venkat M venkat_yum@... wrote: Hi Team,  I have a question on migration from FLEX to HTML5. This question may be little out of the discussion in here; It would be great if someone help me out.  I have a java server side application. It had a class that exposed a bundle of routines that are needed for the flex front end to drive the backend. I connect this class using with blazeds and get access to all the routines within and able to work just fine. It worked like a charm and everyone was happy till date.  Now, I have a parallel requirement to build a HTML5 equivalent front end that does the same. I am asked to provide a estimate and possible frameworks that can be used with ease. Can someone put down any views if they have. Thanks.  Scenario. Java back end remains the same †Build an interactive HTML5 webpage just looking similar to my current flash version - there is a submit_button() java routine which I have to call when a button on HTML page is clicked †Web server used is Jetty †Please Comment!  Thanks!!  Cheers, Venkat.
RE: [flexcoders] Re: Problem migrating project from FB 4.5 to FB 4.5.1 - runtime error
I'm not using 4.5.1 yet, so this observation is more generic than you may want. When using the tabnavigator without states, but just setting the index, I get this error if I try to access a variable/method in any child other than the first child. Apparently they are not created until they are displayed the first time. A possible solution is to display each one briefly in a loop at startup. Perhaps you could even make the container invisible so it's faster - not sure. Hope this helps, Fred. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of yms0411 Sent: Sunday, December 25, 2011 1:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problem migrating project from FB 4.5 to FB 4.5.1 - runtime error have you any solutions from this yet? I am having the same problem when i am making changes in views. In my case, I wasn't using visual states to make state transitions however through dynamically adding and removing elements. null reference error with the following msg: at spark.components::Scroller/focusInHandler()at spark.components::Scroller/focusInHandler()[E:\dev\4.5.1\frameworks\proj ects\spark\src\spark\components\Scroller.as:1273] at flash.display::Stage/set focus() at mx.core::UIComponent/setFocus()[E:\dev\4.5.1\frameworks\projects\framewo rk\src\mx\core\UIComponent.as:9895] at mx.managers::FocusManager/setFocus()[E:\dev\4.5.1\frameworks\projects\fr amework\src\mx\managers\FocusManager.as:598] at mx.managers::FocusManager/activate()[E:\dev\4.5.1\frameworks\projects\fr amework\src\mx\managers\FocusManager.as:864] at mx.managers.systemClasses::ActiveWindowManager/deactivateForm()[E:\dev\4 .5.1\frameworks\projects\framework\src\mx\managers\systemClasses\ActiveW indowManager.as:259] at mx.managers.systemClasses::ActiveWindowManager/deactivate()[E:\dev\4.5.1 \frameworks\projects\framework\src\mx\managers\systemClasses\ActiveWindo wManager.as:213] at mx.managers::FocusManager/hideHandler()[E:\dev\4.5.1\frameworks\projects \framework\src\mx\managers\FocusManager.as:1765] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\fr amework\src\mx\core\UIComponent.as:13128] at mx.controls::Menu/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\mx\sr c\mx\controls\Menu.as:1528] at mx.core::UIComponent/setVisible()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\core\UIComponent.as:3280] at mx.core::UIComponent/set visible()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UICompo nent.as:3238] at mx.controls::Menu/hide()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\cont rols\Menu.as:1773] at mx.controls::Menu/http://www.adobe.com/2006/flex/mx/internal::hideAllMen us()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Menu.as:2528] at mx.controls::Menu/mouseUpHandler()[E:\dev\4.5.1\frameworks\projects\mx\s rc\mx\controls\Menu.as:1928]
RE: [flexcoders] Flex to HTML5 Conversion tool?
One of my co-workers has been spending the last ? years on a project that uses his standard xml syntax to define a UI and then plans to generate HTML or Swing, etc from that. It is his intent to define a UI library independent layout tool. I question if it's worth the effort. I like the clean lines of Python code and I would probably use some of the meta language and introspection features to allow me to define my HTML using object technology and then have each object have a self.toXML() method that would do the right thing and call all children recursively. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doug McCune Sent: Thursday, December 01, 2011 4:48 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex to HTML5 Conversion tool? Just to throw in my two cents... I would not hold out any hope for any solution that will magically convert your Flex app to a HTML/JS app. Not in 6 months, not in 6 years. I don't want to be a downer, but I just don't see it happening. Sure, we may see some tech demos that work on super simple Flex apps, but I think that's about as far as you'll get. You also might get tools that let you write a new app in MXML/AS, specifically with targeting HTML/JS in mind, and that might work well. But I have almost no confidence that you will ever be able to take an existing, large Flex app and magically get it to run well as an HTML app. I'd of course love to be proven wrong. My advice is that if you really need to target HTML/JS is to build it new from scratch. It's a harsh reality, and you're going to hate a lot of the toolchain, language, and process, but if you really do have the requirement that you need to have an HTML/JS app, you might as well just rip off the band-aid in one go instead of holding out hope for a holy grail solution. On Thu, Dec 1, 2011 at 6:27 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: Check out another possibility - using haXe for converting an MXML/Actionscript project to HTML5/Javascript. The syntax is extremely similar to Actionscript, so you could convert the MXML (via the option with the compiler to save the generated Actionscript from MXML) to haXe code, and the Actionscript too. Jason Merrill Instructional Technology Architect II Bank of America Global Learning ___ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ganaraj p r Sent: Thursday, December 01, 2011 4:13 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex to HTML5 Conversion tool? If my understanding is right, Adobe is working on it currently. So you might have to wait for another 6 months or so. If that time frame is not suitable for you, I suggest you rewrite the project in HTML 5. On Thu, Dec 1, 2011 at 3:27 AM, Sells, Fred fred.se...@adventistcare.org wrote: I am looking at the same problem. A very long time ago I designed a tool called ezX that was similar to Flex but not nearly as robust. That was an Xwindows tool and has since gone the way of the dinosaur. I'm still researching but I think a tool like pyjamas pyjs.org might be a building block. You could write an xml parser to handle the mxml to dom and then use the dom to generate pyjamas class definitions (which you would probably have to tweak by hand). I'm not sure about the action script. Source parsing is too tricky and I don't know if the byte code is easy to handle. Might be better to outsource that overseas. Let me know what you decide From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Venkat M Sent: Wednesday, November 30, 2011 12:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex to HTML5 Conversion tool? Hi Group, I have a quick question. I have a web application that was developed using 100% flex (AS included). Now to be on the safe side we want to evaluate the options of converting the same on to HTML5. Do any one know of any tools that can help in the process of converting from flex (developed) to html5 version? Your help will be greatly appreciated. Cheers, Venkat. -- Regards, Ganaraj P R This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender
RE: [flexcoders] Flex to HTML5 Conversion tool?
I am looking at the same problem. A very long time ago I designed a tool called ezX that was similar to Flex but not nearly as robust. That was an Xwindows tool and has since gone the way of the dinosaur. I'm still researching but I think a tool like pyjamas pyjs.org might be a building block. You could write an xml parser to handle the mxml to dom and then use the dom to generate pyjamas class definitions (which you would probably have to tweak by hand). I'm not sure about the action script. Source parsing is too tricky and I don't know if the byte code is easy to handle. Might be better to outsource that overseas. Let me know what you decide From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Venkat M Sent: Wednesday, November 30, 2011 12:56 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex to HTML5 Conversion tool? Hi Group, I have a quick question. I have a web application that was developed using 100% flex (AS included). Now to be on the safe side we want to evaluate the options of converting the same on to HTML5. Do any one know of any tools that can help in the process of converting from flex (developed) to html5 version? Your help will be greatly appreciated. Cheers, Venkat.
RE: [flexcoders] Re: Red error borders on form items before form is validated
If found that widget.errorString=null clears the red border while setting it to a value displays it. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Asad Zaidi Sent: Tuesday, November 22, 2011 2:57 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Red error borders on form items before form is validated this occurs due to validation errors. in ur case i think while rendering it focus in ur component and on focus out it validates ur component. i havent tried it but i think u can use initialize property of the component to stop validation at initialization process. Or u can assign the validator to that component after all components have been rendered. i will try to find out more and will let u know. Asad. From: michael_reg...@dell.com michael_reg...@dell.com To: flexcoders@yahoogroups.com Sent: Monday, November 21, 2011 7:41 PM Subject: 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.com mailto:flexcoders%40yahoogroups.com , dorkie dork from dorktown 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] HttpService error handling
I'm using Flex 4.1 with a django backend. Django provides a really useful HTML error traceback when it fails. Currently I then have to manually insert the offending url into the browser url to see the error details when debugging. That's a pain. I would like to subclass HttpService to provide a generic automatic solution, but I'm having trouble. My typical pattern is Var parms:Object = new Object() Parms.a=3 Parms.b=4 MyHttpService.url = http://yadda.yadda.yadda/root/function; MyHttpService.send(parms) When the faultHandler is called I would like to do something like this navigateToURL( new URLRequest( Configure.getServer()+'getpdf?id='+parms.id+resid=+parms.resid ) ); but I cannot find a way to get the parms back from the HttpService in order to create the URLRequest string. I've tried the MyHttpService.request object but that appears to be empty. It won't expand in debugger view and a for loop does not iterate through it. Can anyone offer a suggestion? Thanks, Fred.
RE: [flexcoders] Flex 4.5 - Cell background color in datagrid
Define custom renderer for the cell's in question. The renderer gets the data for the entire row and can then compute the background color. I've had trouble actually setting backgroundColor in renderer but binding the backgroundColor to a private var and setting that variable to the color works. ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx horizontalScrollPolicy=off fx:Script ![CDATA[ public static var PAYOR_COLORS:Object ={0:0xFE8EB8, 1:0x87F19B, 3:0x9dbffc, 8:0x00}; [Bindable] private var bg:int =0xFE8EB8; [Bindable] private var content:String; override public function set data(value:Object):void{ super.data = value var empty:Boolean = (value==null || value.resident__id==0); if (yofred!=null) yofred.visible = !empty; bg = PAYOR_COLORS[value.payor]; content = value.name ; //if (color==0) color=0xff; } ]] /fx:Script s:Label id=yofred text={content} backgroundColor={bg} width=100% height=30 backgroundAlpha=1.0/ /mx:VBox From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of isa_loyer Sent: Saturday, October 29, 2011 4:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 4.5 - Cell background color in datagrid Hi, I load some data with httpservice. In those data, I have a backgound color for each cell. Can you explain how to do to change background color accordind data in dataprovider? I thinks I must use itemrender but I don't found how to use dataprovider data to do that. Thaks for helping.
RE: [flexcoders] Re: .as vs .mxml best practices
Well I don't know whether to be happy because it is so simple or embarrassed because I didn't know it L From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of valdhor Sent: Thursday, October 27, 2011 4:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: .as vs .mxml best practices It's as simple as mx:Script source=includes/Sample3Script.as/ All it does is include the AS file at that point. Everything inside the MXML file is available to the AS file - no custom events necessary. See http://livedocs.adobe.com/flex/3/html/help.html?content=usingas_6.html --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Sells, Fred fred.sells@... wrote: Embedding the ActionScript in the .mxml file is fine up to a point. Now I've got quite a bit of logic dealing with the handling of DnD on an mx:DataGrid and I would like to move that code into a .as file just to keep my sanity and to take advantage of the outline feature of the IDE. I may also be able to use it (or subclass it) to handle the similar actions on a List. I'm not really certain of the right way to go about that and to be able to reference all the id's within the remaining mxml. Similarly, I would like to be able to listen for the events from the mxml without having to define and dispatch custom events. This is probably basic stuff for those of you who are really into the technology, but I could use a jump start - even a link to a reasonable tutorial would be fine. FWIW I'm using 4.1 and plan to upgrade to 4.5 as soon as I get some breathing room in my deadlines. Thanks in Advance, Fred.
[flexcoders] .as vs .mxml best practices
Embedding the ActionScript in the .mxml file is fine up to a point. Now I've got quite a bit of logic dealing with the handling of DnD on an mx:DataGrid and I would like to move that code into a .as file just to keep my sanity and to take advantage of the outline feature of the IDE. I may also be able to use it (or subclass it) to handle the similar actions on a List. I'm not really certain of the right way to go about that and to be able to reference all the id's within the remaining mxml. Similarly, I would like to be able to listen for the events from the mxml without having to define and dispatch custom events. This is probably basic stuff for those of you who are really into the technology, but I could use a jump start - even a link to a reasonable tutorial would be fine. FWIW I'm using 4.1 and plan to upgrade to 4.5 as soon as I get some breathing room in my deadlines. Thanks in Advance, Fred.
RE: [flexcoders] Flex 4.1 VBOX background renderer fails
That's a good thought. I was trying and failing to set backgroundColor on the text area but I wonder if I could have set alternatingColors on the VBox that is the renderer? Anyway, it works with the binding expression so onward to bigger dragons to slay. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Tuesday, October 25, 2011 1:21 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 4.1 VBOX background renderer fails You cannot set the backgroundColor of the renderer. Backgrounds are removed in order to allow alternating background colors to show through. But you should be able to set it on the TextArea. On 10/24/11 6:40 PM, Sells, Fred fred.se...@adventistcare.org wrote: Yes I tried setStyle() as well as styleName= with no success. I could not set the backgroundColor property in actionscript (compiler did not recognize property) but I could set that property in mxml to a binding expression and set the color in the bound variable. Suspect bug but deadlines rapidly approaching and this works. I'll try upgrading to 4.5 once I get this delivery out. From: flexcoders@yahoogroups.com [mailto:flexcoders@yah! oogroups.com] On Behalf Of Alex Harui Sent: Monday, October 24, 2011 7:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 4.1 VBOX background renderer fails Did you try myText.setStyle(backgroundColor, ...)? On 10/24/11 9:59 AM, Sells, Fred fred.se...@adventistcare.org wrote: I'm using a VBox as a renderer for a datagrid as shown below. I've tried every combination I can think of but I can only set the background color of the mx:TextArea in the mxml. I need to change it in the actionscri! pt. I've tried styles and properties with no success. n! bsp;I'm brreluctant to change wrapper or children since I had a very hard time getting it to work with a custom row height. I used HTML text so I could add some bold/font color decoration; although that requirement has dissipated. ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx borderThickness=0 verticalScrollPolicy=off horizontalScrollPolicy=off paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=0 fx:Script ![CDATA[ private var _data:Object; public static var PAYOR_COLORS:Object ={0:pink, 1:lightgreen,! 3:libhtblue, 8:yellow}; override public function set data(value:Object):void{ _data = value; mytext.htmlText = set data called; if (_data==null || _data.resident__id==0) { mytext.visible = false; }else{ mytext.visible = true; var color:String = PAYOR_COLORS[_data.payor]; if (color==null) color=black; //mytext.backgroundColor = color; mytext.opaqueBackground = color; mytext.htmlText = _data.name; trace(colordata.name = +color+, payor=+_data.payor); //mytext.styleName = payor+_data.payor; //this.setStyle(backgroundColor, yellow); //trace(style=payor+_data.payor+;); //this.setStyle(color, green); //background = true; trace(render +_data.name+, +color);} } override public function get data():Objec! t{ re turn _data; } ]] /fx:Script mx:TextArea id=mytext width=100% height=100% useHandCursor=true buttonMode=true mouseFocusEnabled=false mouseChildren=false editable=false verticalScrollPolicy=off horizontalScrollPolicy=off !-- mx:htmlText ![CDATA[Joe Bl0w font color=#FFMCD/font pline2/p]] /mx:htmlText -- /mx:TextArea !-- sample use from web ![CDATA[ Joe Blw font color=#FFHTML text/font in a bHalo TextArea control/b. pUse the uhtmlText property/u of the font color=#008800TextArea control/font to include basic HTML markup in! your text. ]] -- /mx:VBox -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
RE: [flexcoders] Re: Flex 4.1 VBOX background renderer fails
I have not worked with custom skins before. I was hoping to avoid that, but obviously I spent more time avoiding it than using it. I was perhaps too focused on just get past this one issue to look into that. I'll research that soon. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of turbo_vb Sent: Tuesday, October 25, 2011 1:31 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 4.1 VBOX background renderer fails In practice, itemRenderers actually tend to be the best candidate for skins. -TH --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@... wrote: You cannot set the backgroundColor of the renderer. Backgrounds are removed in order to allow alternating background colors to show through. But you should be able to set it on the TextArea. On 10/24/11 6:40 PM, Sells, Fred fred.sells@... wrote: Yes I tried setStyle() as well as styleName= with no success. I could not set the backgroundColor property in actionscript (compiler did not recognize property) but I could set that property in mxml to a binding expression and set the color in the bound variable. Suspect bug but deadlines rapidly approaching and this works. I'll try upgrading to 4.5 once I get this delivery out. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yah! oogroups.com] On Behalf Of Alex Harui Sent: Monday, October 24, 2011 7:41 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Flex 4.1 VBOX background renderer fails Did you try myText.setStyle(backgroundColor, ...)? On 10/24/11 9:59 AM, Sells, Fred fred.sells@... wrote: I'm using a VBox as a renderer for a datagrid as shown below. I've tried every combination I can think of but I can only set the background color of the mx:TextArea in the mxml. I need to change it in the actionscri! pt. I've tried styles and properties with no success. n! bsp;I'm brreluctant to change wrapper or children since I had a very hard time getting it to work with a custom row height. I used HTML text so I could add some bold/font color decoration; although that requirement has dissipated. ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx borderThickness=0 verticalScrollPolicy=off horizontalScrollPolicy=off paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=0 fx:Script ![CDATA[ private var _data:Object; public static var PAYOR_COLORS:Object ={0:pink, 1:lightgreen,! 3:libhtblue, 8:yellow}; override public function set data(value:Object):void{ _data = value; mytext.htmlText = set data called; if (_data==null || _data.resident__id==0) { mytext.visible = false; }else{ mytext.visible = true; var color:String = PAYOR_COLORS[_data.payor]; if (color==null) color=black; //mytext.backgroundColor = color; mytext.opaqueBackground = color; mytext.htmlText = _data.name; trace(colordata.name = +color+, payor=+_data.payor); //mytext.styleName = payor+_data.payor; //this.setStyle(backgroundColor, yellow); //trace(style=payor+_data.payor+;); //this.setStyle(color, green); //background = true; trace(render +_data.name+, +color);} } override public function get data():Objec! t{ re turn _data; } ]] /fx:Script mx:TextArea id=mytext width=100% height=100% useHandCursor=true buttonMode=true mouseFocusEnabled=false mouseChildren=false editable=false verticalScrollPolicy=off horizontalScrollPolicy=off !-- mx:htmlText ![CDATA[Joe Bl0w font color=#FFMCD/font pline2/p]] /mx:htmlText -- /mx:TextArea !-- sample use from web ![CDATA[ Joe Blw font color=#FFHTML text/font in a bHalo TextArea control/b. pUse the uhtmlText property/u of the font color=#008800TextArea control/font to include basic HTML markup in! your text. ]] -- /mx:VBox -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Flex 4.1 VBOX background renderer fails
I'm using a VBox as a renderer for a datagrid as shown below. I've tried every combination I can think of but I can only set the background color of the mx:TextArea in the mxml. I need to change it in the actionscript. I've tried styles and properties with no success. I'm reluctant to change wrapper or children since I had a very hard time getting it to work with a custom row height. I used HTML text so I could add some bold/font color decoration; although that requirement has dissipated. ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx borderThickness=0 verticalScrollPolicy=off horizontalScrollPolicy=off paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=0 fx:Script ![CDATA[ private var _data:Object; public static var PAYOR_COLORS:Object ={0:pink, 1:lightgreen, 3:libhtblue, 8:yellow}; override public function set data(value:Object):void{ _data = value; mytext.htmlText = set data called; if (_data==null || _data.resident__id==0){ mytext.visible = false; }else{ mytext.visible = true; var color:String = PAYOR_COLORS[_data.payor]; if (color==null) color=black; //mytext.backgroundColor = color; mytext.opaqueBackground = color; mytext.htmlText = _data.name; trace(colordata.name = +color+, payor=+_data.payor); //mytext.styleName = payor+_data.payor; //this.setStyle(backgroundColor, yellow); //trace(style=payor+_data.payor+;); //this.setStyle(color, green); //background = true; trace(render +_data.name+, +color); } } override public function get data():Object{ return _data; } ]] /fx:Script mx:TextArea id=mytext width=100% height=100% useHandCursor=true buttonMode=true mouseFocusEnabled=false mouseChildren=false editable=false verticalScrollPolicy=off horizontalScrollPolicy=off !--mx:htmlText ![CDATA[Joe Bl0w font color=#FFMCD/font pline2/p]] /mx:htmlText -- /mx:TextArea !-- sample use from web![CDATA[ Joe Blw font color=#FFHTML text/font in a bHalo TextArea control/b. pUse the uhtmlText property/u of the font color=#008800TextArea control/font to include basic HTML markup in your text. ]] -- /mx:VBox
RE: [flexcoders] Flex 4.1 VBOX background renderer fails
Yes I tried setStyle() as well as styleName= with no success. I could not set the backgroundColor property in actionscript (compiler did not recognize property) but I could set that property in mxml to a binding expression and set the color in the bound variable. Suspect bug but deadlines rapidly approaching and this works. I'll try upgrading to 4.5 once I get this delivery out. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Monday, October 24, 2011 7:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 4.1 VBOX background renderer fails Did you try myText.setStyle(backgroundColor, ...)? On 10/24/11 9:59 AM, Sells, Fred fred.se...@adventistcare.org wrote: I'm using a VBox as a renderer for a datagrid as shown below. I've tried every combination I can think of but I can only set the background color of the mx:TextArea in the mxml. I need to change it in the actionscript. I've tried styles and properties with no success. I'm reluctant to change wrapper or children since I had a very hard time getting it to work with a custom row height. I used HTML text so I could add some bold/font color decoration; although that requirement has dissipated. ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx borderThickness=0 verticalScrollPolicy=off horizontalScrollPolicy=off paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=0 fx:Script ![CDATA[ private var _data:Object; public static var PAYOR_COLORS:Object ={0:pink, 1:lightgreen, 3:libhtblue, 8:yellow}; override public function set data(value:Object):void{ _data = value; mytext.htmlText = set data called; if (_data==null || _data.resident__id==0) { mytext.visible = false; }else{ mytext.visible = true; var color:String = PAYOR_COLORS[_data.payor]; if (color==null) color=black; //mytext.backgroundColor = color; mytext.opaqueBackground = color; mytext.htmlText = _data.name; trace(colordata.name = +color+, payor=+_data.payor); //mytext.styleName = payor+_data.payor; //this.setStyle(backgroundColor, yellow); //trace(style=payor+_data.payor+;); //this.setStyle(color, green); //background = true; trace(render +_data.name+, +color); } } override public function get data():Object{ return _data; } ]] /fx:Script mx:TextArea id=mytext width=100% height=100% useHandCursor=true buttonMode=true mouseFocusEnabled=false mouseChildren=false editable=false verticalScrollPolicy=off horizontalScrollPolicy=off !-- mx:htmlText ![CDATA[Joe Bl0w font color=#FFMCD/font pline2/p]] /mx:htmlText -- /mx:TextArea !-- sample use from web ![CDATA[ Joe Blw font color=#FFHTML text/font in a bHalo TextArea control/b. pUse the uhtmlText property/u of the font color=#008800TextArea control/font to include basic HTML markup in your text. ]] -- /mx:VBox -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] mx:datagrid renderer problem
I'm using Flex 4 with an mx:datagrid with a value of 40 for row height and drag and drop enabled. I'm having a very hard time getting a custom renderer to work. The layout keeps getting messed up in the grid cell. I really need to be able to diplay two lines in each cell and maybe some color coding of certain text (requirements are evolving). The problem seems to be related to the custom row height. The following works but does not give me two line functionality: ... mx:DataGridColumn itemRenderer=renderers.AppointmentRenderer / -- the renderer code is-(boilerplate removed fro brevity)- package renderers { public class AppointmentRenderer extends DataGridItemRenderer{ public function AppointmentRenderer() { super(); } override public function validateNow():void { if (data==null || data.resident__id==0) { background = false; this.text = null; this.styleName=; }else{ this.height=40; // note I had to do this to make it look right this.ignorePadding=true; this.text=+data.name; this.styleName = payor+data.payor; background = true; } super.validateNow(); } } } ==however If my renderer is like this= mx:VBox xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx backgroundAlpha=1.0 height=40 horizontalAlign=center verticalAlign=top verticalGap paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=0 fx:Script ![CDATA[ import mx.core.IDataRenderer; [Bindable] private var _data:Object; override public function set data(value:Object):void{ _data=value; } override public function get data():Object{return _data;} ]] /fx:Script mx:Button id=resident label=aaawidth=100% height=15 alpha=0.5/ mx:Button id=details label=bbb width=100% height=15 alpha=0.5 / /mx:VBox Then I get a grid that seems has the header and the cells distorted as shown below. Note that each column is a different table (same component) due to drag-n-drop issues and some other parts of the requirements I did not get into. Can anyone give me a clue about what I'm doing wrong? image001.png
[flexcoders] HttpService results inconsistent
If I have multiple records in the response I get an ArrayCollection however if I have only 1 record I get an ObjectProxy. I'm not sure if specifying the resultFormat would resolve this and if so, which format is appropriate. I typically map the results to an ArrayCollection which is the dataProvider for a datagrid. Perhaps I should just map the datagrid .dataProvider to the HttpService.lastResult... Any suggestions or experience with this. My code is below: mx:HTTPService id=QueryService result=QueryService_resultHandler(event) / ... protected function QueryService_resultHandler(event:ResultEvent):void { try { GridDataArray = event.result.resultset.record; }catch (e:*) { GridDataArray = new ArrayCollection(); } mydatagrid.dataProvider = GridDataArray; }__,_ -- results with std xml header removed - resultset record order__therapy=OT name=Landers, Ivee time__id=3 time__label=08:00 id=3 order__resident__payor=3/ /resultset ._,___
RE: [flexcoders] style css problem
Flex 4. And the regular mx:DataGrid not the Advanced one. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui Sent: Monday, August 15, 2011 2:08 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] style css problem Which version of DataGrid are you using? On 8/14/11 2:50 PM, Sells, Fred fred.se...@adventistcare.org wrote: I'm trying to use styleName in a renderer like so .payor1{ fillAlphas: 1.0, 1.0; fillColors: #8c8c8c, #8c8c8c; color: red; roll-over-color: green; rollOverColor: green; } ! With this code in the DataGridItemRenderer. Color is set OK, but I cannot get the rollover. If I have the wrong property name, where would I find the definition of the right ones. override public function validateNow():void { super.validateNow(); if (data==null || data.resident__id==0) { !background = false; this.text = null; this.styleName=; ! return; }else{ this.text=+data.name; this.styleName = payor+data.payor; background = true; } } -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] style css problem
I'm trying to use styleName in a renderer like so .payor1{ fillAlphas: 1.0, 1.0; fillColors: #8c8c8c, #8c8c8c; color: red; roll-over-color: green; rollOverColor: green; } With this code in the DataGridItemRenderer. Color is set OK, but I cannot get the rollover. If I have the wrong property name, where would I find the definition of the right ones. override public function validateNow():void { super.validateNow(); if (data==null || data.resident__id==0) { background = false; this.text = null; this.styleName=; return; }else{ this.text=+data.name; this.styleName = payor+data.payor; background = true; } }
RE: [flexcoders] Interface design
Or have 5 entry fields and the last one represents under/over allocated and should be zero before saving. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Paul Andrews Sent: Sunday, August 07, 2011 7:57 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Interface design On 07/08/2011 06:12, cjacquel73 wrote: Hello, I have to select 4 values of percentages. The sum of this 4 values should be equal to 100%. How to design an interface (with sliders or other), to select this 4 percentages ? Have a bar with three dividers. The bar represents 100%. The space between dividers and the edges represents a percentage. Drag the divider bars to set the percentages. or, Have four entryfields. When they don't total 100 colour the background red and mark them as invalid, or, .. Thank you, Christophe -- 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
RE: [flexcoders] mx:Datagrid nowto detect drop column
Would you have a snippet of that code handy? If not, I’ll figure it out. Thanks. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of j2me_soul Sent: Tuesday, August 02, 2011 11:46 PM To: flexcoders@yahoogroups.com Subject: Re:[flexcoders] mx:Datagrid nowto detect drop column I finish my job like yours to calculate the mouse point belongs to which cell using RowHeigh CellWidth then operate the dataPrivoder to do anything At 2011-08-02 23:02:08,bu4fred fred.se...@adventistcare.org wrote: I would like to move cell contents around in a datagrid (or AdvancedDatagrid if necessar) but so far all I can do is detect the row of the drop target. II need to get both the row and column index of the source and destination of the drag-n-drop action. Any suggestions please???
RE: [flexcoders] Flex View States
Could you just put your form in a modal popup window? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nikunj_n123 Sent: Tuesday, August 02, 2011 7:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex View States Hello All, My Application has a Tree, and all the elements of the tree belong to the same state. I want a new form to be launched each time I click an item of the tree. But since all the items belong to the same state, my forms are never recreated. P.S - I have to use states because there are other views in my application besides the tree. And help/pointers are much appreciated. Thanks and Regards