Re: [flexcoders] FlexBuilder Memory Hog?
lol it helps if i have 1.5... just realised i installed 1.0 and not 1.5 :) that may be why eh what what... I'll install 1.5 and see if it improves... On Sun, 13 Mar 2005 18:51:14 -0500, JesterXL [EMAIL PROTECTED] wrote: Don't know how it runs, but I KNOW she runs tons better when it's off. Edit Preferences Category Generna Checkbox Enabled MXML Design View 4th one down - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 6:36 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? On Sun, 13 Mar 2005 18:23:29 -0500, JesterXL [EMAIL PROTECTED] wrote: My Alieware is fighting FlexBuilder too, man... she just uses a TON of RAM, man. Mainly, it's Design View. FlexBuilder 1.5 allows you turn this off and it significantly improves speed + resource usage. hmmm, its a Macromedia conspiracy against Alienware :) I've looked in the Preferences but can't find the turn off design view setting? In that i currently work in code view, and can only assume that Design View is being run in the background for every change I make? - is that what you mean? On the flip side, her majesty got me more RAM for my birthday, but I know your sick of buying new hardware... so uh... I'll leave it at that! yah, alienware and me do not get along... should of bought a mac *sigh* hehehehe. Thanks Jess, - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 6:19 PM Subject: [flexcoders] FlexBuilder Memory Hog? I've been finding it extremly frustrating to use Flex Builder, mainly for its various memory spikes (ie going from CSS to MXML seems to increase CPU/Memory) Does anyone know of any tricks/ways to optimize the settings / memory for Flex Builder I'm using an: Alienware Area-51m 7700 P4, 3.4 ghz, with 1gb of Ram laptop. So it *should* be fine in terms of power (plus Flex Server + Builder are the only two services running ..ie its bare bones software install atm) -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com
Re: [flexcoders] FlexBuilder Memory Hog?
It does, and additionally, it'll render in Design View more accurately; case in point width=100%. Even with DesignView enabeld, I'm chillin at FlexBuilder=110 megs, JRUN=72 megs. WAY better than 1.0 was doin. - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 7:05 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? lol it helps if i have 1.5... just realised i installed 1.0 and not 1.5 :) that may be why eh what what... I'll install 1.5 and see if it improves... On Sun, 13 Mar 2005 18:51:14 -0500, JesterXL [EMAIL PROTECTED] wrote: Don't know how it runs, but I KNOW she runs tons better when it's off. Edit Preferences Category Generna Checkbox Enabled MXML Design View 4th one down - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 6:36 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? On Sun, 13 Mar 2005 18:23:29 -0500, JesterXL [EMAIL PROTECTED] wrote: My Alieware is fighting FlexBuilder too, man... she just uses a TON of RAM, man. Mainly, it's Design View. FlexBuilder 1.5 allows you turn this off and it significantly improves speed + resource usage. hmmm, its a Macromedia conspiracy against Alienware :) I've looked in the Preferences but can't find the turn off design view setting? In that i currently work in code view, and can only assume that Design View is being run in the background for every change I make? - is that what you mean? On the flip side, her majesty got me more RAM for my birthday, but I know your sick of buying new hardware... so uh... I'll leave it at that! yah, alienware and me do not get along... should of bought a mac *sigh* hehehehe. Thanks Jess, - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 6:19 PM Subject: [flexcoders] FlexBuilder Memory Hog? I've been finding it extremly frustrating to use Flex Builder, mainly for its various memory spikes (ie going from CSS to MXML seems to increase CPU/Memory) Does anyone know of any tricks/ways to optimize the settings / memory for Flex Builder I'm using an: Alienware Area-51m 7700 P4, 3.4 ghz, with 1gb of Ram laptop. So it *should* be fine in terms of power (plus Flex Server + Builder are the only two services running ..ie its bare bones software install atm) -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links
RowRenderer api
Hi Folks, I have a DataGrid component in which I'd like to make some rows non-selectable based upon properties in my dataProvider. Can someone suggest a way to achieve this? I can't find much information on how to use the RowRenderer api. Thanks and Regards, Jasper Blues :) ~~--- This e-mail may contain confidential information. If you are not the intended recipient, please notify the sender immediately and delete this e-mail from your system. You must not disclose this e-mail to anyone without express permission from the sender. The contents of all e-mails sent to and received from Optus may be scanned, stored, or disclosed to others at Optus discretion. Optus has exercised care to avoid errors in the information contained in this e-mail but does not warrant that the information is error or omission free. The information (including any pricing information) contained in this e-mail is subject to change. This e-mail is not a quotation or proposal and no contractual obligations arise until you and Optus sign a formal written contract or formal variation to your existing contract. Any pricing contained in this e-mail is exclusive of GST unless otherwise stated.
Re: [flexcoders] mx:Panel and disabling CSS Inheritance.
heh it kind of works, but sadly the headerColors gets passed down to things like accordion and datefields etc.. ahh this is so frustrating.. why the hell isn't there a inheritance=false attribute! hehe i'm think i'm going to have to hack it in order to get it working which i really did not want to do. On Fri, 11 Mar 2005 13:39:47 -0500, Matt Horn [EMAIL PROTECTED] wrote: Sorry for the reply to my own message, but I tried out some stuff; here's a quick and dirty way to prevent style inheritance with a custom component (called SpecialPanel in this example). The regular panel picks up the styles from the CSS class selector in the main application file (these are the default colors). The special panel (in this case, the outer panel) picks up its header colors from the inline style declaration on the custom MXML component. This style is not inherited by the inner panels. MainApp.mxml- mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:local=* mx:Style Panel { headerColors:#E1E5EB, #F4F5F7; } /mx:Style local:SpecialPanel mx:Button id=b1 label=Click Me/ mx:Panel mx:Button id=b2 label=Click Me Too/ /mx:Panel /local:SpecialPanel /mx:Application SpecialPanel.mxml--- ?xml version=1.0? mx:Panel xmlns:mx=http://www.macromedia.com/2003/mxml; headerColors=[0xCC66CC,0x3366CC] /mx:Panel HTH, matt horn From: Matt Horn [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 1:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] mx:Panel and disabling CSS Inheritance. I don't know of any way to prevent an inheriting style from being inherited except to write a custom component. However, you can use CSS to your advantage by having a default style and your custom style. Apply the custom style to the outer panel and then the default style to the inner panels (which will then propagate to the inner panels' children). THe following example illustrates this: ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Style outerStyle { headerColors:#CC66CC,#3366CC; } innerStyle { headerColors:#E1E5EB, #F4F5F7; } /mx:Style mx:Script![CDATA[ ]]/mx:Script mx:Panel className=outerStyle mx:Button id=b1 label=Button 1 / mx:Panel className=innerStyle mx:Button id=b2 label=Button 2 / mx:Panel mx:Button id=b3 label=Button 3 / /mx:Panel /mx:Panel /mx:Panel /mx:Application HTH, matt horn From: Scott Barnes [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 12:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:Panel and disabling CSS Inheritance. Hi All, I have an mx:Panel, with a simple headerColors=[col1,col2] approach, easy enough. BUT... How do i prevent its children Panels/Controls from also inheriting that style? At the moment the only way i can think of is to do a long winded custom ActionScript which manipulates the instance of the mx:Panel itself - but there has to be a better way no? -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Regards, Scott Barnes http://www.mossyblog.com
Re: [flexcoders] FlexBuilder Memory Hog?
Well i upgraded, and still the same problem. It appears to be CSS related, in that if i update a CSS file via the builder then click back onto my mxml file - memory spikes occur and my builder locks up for 20-30 seconds. oh well... might have to memories the entire MXML code based and use Homesite or something ehehehe Scott On Sun, 13 Mar 2005 19:18:56 -0500, JesterXL [EMAIL PROTECTED] wrote: It does, and additionally, it'll render in Design View more accurately; case in point width=100%. Even with DesignView enabeld, I'm chillin at FlexBuilder=110 megs, JRUN=72 megs. WAY better than 1.0 was doin. - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 7:05 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? lol it helps if i have 1.5... just realised i installed 1.0 and not 1.5 :) that may be why eh what what... I'll install 1.5 and see if it improves... On Sun, 13 Mar 2005 18:51:14 -0500, JesterXL [EMAIL PROTECTED] wrote: Don't know how it runs, but I KNOW she runs tons better when it's off. Edit Preferences Category Generna Checkbox Enabled MXML Design View 4th one down - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 6:36 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? On Sun, 13 Mar 2005 18:23:29 -0500, JesterXL [EMAIL PROTECTED] wrote: My Alieware is fighting FlexBuilder too, man... she just uses a TON of RAM, man. Mainly, it's Design View. FlexBuilder 1.5 allows you turn this off and it significantly improves speed + resource usage. hmmm, its a Macromedia conspiracy against Alienware :) I've looked in the Preferences but can't find the turn off design view setting? In that i currently work in code view, and can only assume that Design View is being run in the background for every change I make? - is that what you mean? On the flip side, her majesty got me more RAM for my birthday, but I know your sick of buying new hardware... so uh... I'll leave it at that! yah, alienware and me do not get along... should of bought a mac *sigh* hehehehe. Thanks Jess, - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 6:19 PM Subject: [flexcoders] FlexBuilder Memory Hog? I've been finding it extremly frustrating to use Flex Builder, mainly for its various memory spikes (ie going from CSS to MXML seems to increase CPU/Memory) Does anyone know of any tricks/ways to optimize the settings / memory for Flex Builder I'm using an: Alienware Area-51m 7700 P4, 3.4 ghz, with 1gb of Ram laptop. So it *should* be fine in terms of power (plus Flex Server + Builder are the only two services running ..ie its bare bones software install atm) -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com
Re: [flexcoders] FlexBuilder Memory Hog?
If she's running that bad, just turn Design View off, and keep your browser open and around, pointed to http://localhost:8700/flex/yourappfolderonserer/my.mxml?recompile=true or something close; that way, you can just F5 to recompile using a browser vs. FlexBuilder. Just make sure to upload your files each time before refreshing; I typically just upload the whole site. - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 7:50 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? Well i upgraded, and still the same problem. It appears to be CSS related, in that if i update a CSS file via the builder then click back onto my mxml file - memory spikes occur and my builder locks up for 20-30 seconds. oh well... might have to memories the entire MXML code based and use Homesite or something ehehehe Scott On Sun, 13 Mar 2005 19:18:56 -0500, JesterXL [EMAIL PROTECTED] wrote: It does, and additionally, it'll render in Design View more accurately; case in point width=100%. Even with DesignView enabeld, I'm chillin at FlexBuilder=110 megs, JRUN=72 megs. WAY better than 1.0 was doin. - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 7:05 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? lol it helps if i have 1.5... just realised i installed 1.0 and not 1.5 :) that may be why eh what what... I'll install 1.5 and see if it improves... On Sun, 13 Mar 2005 18:51:14 -0500, JesterXL [EMAIL PROTECTED] wrote: Don't know how it runs, but I KNOW she runs tons better when it's off. Edit Preferences Category Generna Checkbox Enabled MXML Design View 4th one down - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 6:36 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? On Sun, 13 Mar 2005 18:23:29 -0500, JesterXL [EMAIL PROTECTED] wrote: My Alieware is fighting FlexBuilder too, man... she just uses a TON of RAM, man. Mainly, it's Design View. FlexBuilder 1.5 allows you turn this off and it significantly improves speed + resource usage. hmmm, its a Macromedia conspiracy against Alienware :) I've looked in the Preferences but can't find the turn off design view setting? In that i currently work in code view, and can only assume that Design View is being run in the background for every change I make? - is that what you mean? On the flip side, her majesty got me more RAM for my birthday, but I know your sick of buying new hardware... so uh... I'll leave it at that! yah, alienware and me do not get along... should of bought a mac *sigh* hehehehe. Thanks Jess, - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 6:19 PM Subject: [flexcoders] FlexBuilder Memory Hog? I've been finding it extremly frustrating to use Flex Builder, mainly for its various memory spikes (ie going from CSS to MXML seems to increase CPU/Memory) Does anyone know of any tricks/ways to optimize the settings / memory for Flex Builder I'm using an: Alienware Area-51m 7700 P4, 3.4 ghz, with 1gb of Ram laptop. So it *should* be fine in terms of power (plus Flex Server + Builder are the only two services running ..ie its bare bones software install atm) -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links
Re: [flexcoders] FlexBuilder Memory Hog?
On Sun, 13 Mar 2005 20:00:17 -0500, JesterXL [EMAIL PROTECTED] wrote: If she's running that bad, just turn Design View off, and keep your browser open and around, pointed to http://localhost:8700/flex/yourappfolderonserer/my.mxml?recompile=true or something close; that way, you can just F5 to recompile using a browser vs. FlexBuilder. Just make sure to upload your files each time before refreshing; I typically just upload the whole site. I have design off, and nothing changed really - same lag. Actually the recompile (aka Run) wasn't that bad in terms for latency, its more switching tabs between various mxml files and css files within the builder. It appears that once i update a CSS file, and select a MXML file that makes use of that CSS file's class, it needs to re-initialize its code hints or something along those lines. I think its a bug in truth but anyway, just means i'll have to be a little more patient... ;) - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 7:50 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? Well i upgraded, and still the same problem. It appears to be CSS related, in that if i update a CSS file via the builder then click back onto my mxml file - memory spikes occur and my builder locks up for 20-30 seconds. oh well... might have to memories the entire MXML code based and use Homesite or something ehehehe Scott On Sun, 13 Mar 2005 19:18:56 -0500, JesterXL [EMAIL PROTECTED] wrote: It does, and additionally, it'll render in Design View more accurately; case in point width=100%. Even with DesignView enabeld, I'm chillin at FlexBuilder=110 megs, JRUN=72 megs. WAY better than 1.0 was doin. - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 7:05 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? lol it helps if i have 1.5... just realised i installed 1.0 and not 1.5 :) that may be why eh what what... I'll install 1.5 and see if it improves... On Sun, 13 Mar 2005 18:51:14 -0500, JesterXL [EMAIL PROTECTED] wrote: Don't know how it runs, but I KNOW she runs tons better when it's off. Edit Preferences Category Generna Checkbox Enabled MXML Design View 4th one down - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 6:36 PM Subject: Re: [flexcoders] FlexBuilder Memory Hog? On Sun, 13 Mar 2005 18:23:29 -0500, JesterXL [EMAIL PROTECTED] wrote: My Alieware is fighting FlexBuilder too, man... she just uses a TON of RAM, man. Mainly, it's Design View. FlexBuilder 1.5 allows you turn this off and it significantly improves speed + resource usage. hmmm, its a Macromedia conspiracy against Alienware :) I've looked in the Preferences but can't find the turn off design view setting? In that i currently work in code view, and can only assume that Design View is being run in the background for every change I make? - is that what you mean? On the flip side, her majesty got me more RAM for my birthday, but I know your sick of buying new hardware... so uh... I'll leave it at that! yah, alienware and me do not get along... should of bought a mac *sigh* hehehehe. Thanks Jess, - Original Message - From: Scott Barnes [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, March 13, 2005 6:19 PM Subject: [flexcoders] FlexBuilder Memory Hog? I've been finding it extremly frustrating to use Flex Builder, mainly for its various memory spikes (ie going from CSS to MXML seems to increase CPU/Memory) Does anyone know of any tricks/ways to optimize the settings / memory for Flex Builder I'm using an: Alienware Area-51m 7700 P4, 3.4 ghz, with 1gb of Ram laptop. So it *should* be fine in terms of power (plus Flex Server + Builder are the only two services running ..ie its bare bones software install atm) -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com Yahoo! Groups Links Yahoo! Groups Links -- Regards, Scott Barnes http://www.mossyblog.com
Re: [flexcoders] mx:Panel and disabling CSS Inheritance.
Ok i think i've found a comprimise but still, its annoying feature within the product not to have some attribute that can turn off/on inheritance. 2.0 feature req hehe. I've had to set default header-colors for all tags that are affected ie: ---CSS FILE--- DateField, Accordion etc { header-colors: #col1, #col2; } This will fix it but ... not sure on the ripple effect it may cause? On Mon, 14 Mar 2005 10:29:48 +1000, Scott Barnes [EMAIL PROTECTED] wrote: heh it kind of works, but sadly the headerColors gets passed down to things like accordion and datefields etc.. ahh this is so frustrating.. why the hell isn't there a inheritance=false attribute! hehe i'm think i'm going to have to hack it in order to get it working which i really did not want to do. On Fri, 11 Mar 2005 13:39:47 -0500, Matt Horn [EMAIL PROTECTED] wrote: Sorry for the reply to my own message, but I tried out some stuff; here's a quick and dirty way to prevent style inheritance with a custom component (called SpecialPanel in this example). The regular panel picks up the styles from the CSS class selector in the main application file (these are the default colors). The special panel (in this case, the outer panel) picks up its header colors from the inline style declaration on the custom MXML component. This style is not inherited by the inner panels. MainApp.mxml- mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns:local=* mx:Style Panel { headerColors:#E1E5EB, #F4F5F7; } /mx:Style local:SpecialPanel mx:Button id=b1 label=Click Me/ mx:Panel mx:Button id=b2 label=Click Me Too/ /mx:Panel /local:SpecialPanel /mx:Application SpecialPanel.mxml--- ?xml version=1.0? mx:Panel xmlns:mx=http://www.macromedia.com/2003/mxml; headerColors=[0xCC66CC,0x3366CC] /mx:Panel HTH, matt horn From: Matt Horn [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 1:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] mx:Panel and disabling CSS Inheritance. I don't know of any way to prevent an inheriting style from being inherited except to write a custom component. However, you can use CSS to your advantage by having a default style and your custom style. Apply the custom style to the outer panel and then the default style to the inner panels (which will then propagate to the inner panels' children). THe following example illustrates this: ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Style outerStyle { headerColors:#CC66CC,#3366CC; } innerStyle { headerColors:#E1E5EB, #F4F5F7; } /mx:Style mx:Script![CDATA[ ]]/mx:Script mx:Panel className=outerStyle mx:Button id=b1 label=Button 1 / mx:Panel className=innerStyle mx:Button id=b2 label=Button 2 / mx:Panel mx:Button id=b3 label=Button 3 / /mx:Panel /mx:Panel /mx:Panel /mx:Application HTH, matt horn From: Scott Barnes [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 12:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:Panel and disabling CSS Inheritance. Hi All, I have an mx:Panel, with a simple headerColors=[col1,col2] approach, easy enough. BUT... How do i prevent its children Panels/Controls from also inheriting that style? At the moment the only way i can think of is to do a long winded custom ActionScript which manipulates the instance of the mx:Panel itself - but there has to be a better way no? -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Regards, Scott Barnes http://www.mossyblog.com -- Regards, Scott Barnes http://www.mossyblog.com
Re: [flexcoders] Re: Can I gray out the rest of a screen behind a popup?
I'm wanting to change the color of the white modal under layer to a different color? anyone have something written to achieve this already? On Thu, 24 Feb 2005 14:44:04 -, sreejithunni [EMAIL PROTECTED] wrote: If you set modalTransparency in the TitleWindow component to 100, the entire screen except the TitleWindow would be opaque. mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml; title=Login modalTransparency=100 You could try changing the value from 0 - 100 to get the effect you want. Sree --- In flexcoders@yahoogroups.com, Brett Hitzel [EMAIL PROTECTED] wrote: What I have done is enclosed the entire application within a Vbox of width = 100% and height = 100%' and named it something like appContainer. When creating the title window you can either pass it a refference to the parent application, or I believe just using parentApplication.appContainer works as well. On Creation Complete of the titlewindow you can call a function that says: parentComponent.appContainer.enabled = false; that will give you the effect you are looking for. Brett --- In flexcoders@yahoogroups.com, Anthony Merryfield [EMAIL PROTECTED] wrote: I have a few popup forms that I'd like to give more emphasis to. I think I saw somewhere a site where on popup the parent grayed out making the popup very noticable - could anyone point me towards some code in order to accomplish this please? Ta, Tony. This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http:// www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Regards, Scott Barnes http://www.mossyblog.com
Servlet Session
Hi, i have a problem with flex session servlet. This code work, but have a great problem. If i wish to store in session from Flex ,a collection of Pojo this code don't work. For example i have a CustemerVO i wish to store it in session and used it by my servlet with simple session.getAttribute(CustomerVO) , it's possibile with flex to do it. Can you help me please. here my code, Devis ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF height=80% width=80% mx:RemoteObject id=servlet source=servlet/ mx:Script ![CDATA[ import mx.controls.Alert; import vo.as400.*; var vopf:PfVO; function genPDF() { vopf=new PfVO(); vopf.de50pf=Balsemin; vopf.stagione.cdc_stag=1995; vopf.strepf=A; servlet.session(set,vopf); var pdf_url = /test/view/JavaPdf.pdf; getURL(pdf_url,'_blank'); } ]] /mx:Script mx:Panel title=Printing to a pdf height=100% width=100% mx:Label text=Enter some below and then press the print button. width=100%/ mx:TextInput id=t1 text=Enter some text here! width=80%/ mx:ControlBar mx:Button label=Print click=genPDF()/ /mx:ControlBar /mx:Panel /mx:Application
Re: do you validate WS/RO requests?
yes. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Quick survey, do you ever use the Validators on RemoteObject, WebService, or HTTPService requests? E.g., mx:RemoteObject ... mx:method name=someMethod mx:arguments arg1.../arg1 arg2.../arg2 / / / mx:StringValidator field=myRO.someMethod.arg1 ... / mx:StringValidator field=myRO.someMethod.arg2 ... / I tend to think that people have a Model that gets validated, and then only if it's validated will it be passed on to the service. But I'm checking my hunches and want to know if anyone uses the above technique. Matt
James Anniss/MutualOMA is out of the office.
I will be out of the office starting 03/14/2005 and will not return until 03/16/2005. I will respond to your message when I return on March 16th, or you may contact Scott Zagurski (x5265) or Jordan Starr (x8115) for any assistance or work needed before my return.
Flex SWF in Zinc
Is wrapping a Flex SWF using Zinc, and distributing the EXE ok via the EULA? Aral Balkan brought this up to me after I told him my progress on a project, and thought I'd ask. I wrote a small GUI for NaturalDocs (naturaldocs.org) since it's only command line. I used Zinc as the wrapper since Central cannot get folder paths. Thanks in advance if you can help! --JesterXL
RE: [flexcoders] do you validate WS/RO requests?
I validate the modelin my case then pass it on to the RO. I think this is typical of anyone using Cairngorm. Jimmy Gianninas Software Developer - Optimal Payments Inc. From: Matt Chotin [mailto:[EMAIL PROTECTED] Sent: Sunday, March 13, 2005 6:28 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders]do you validate WS/RO requests? Quick survey, do you ever use the Validators on RemoteObject, WebService, orHTTPService requests?E.g.,mx:RemoteObject ... mx:method name="someMethod" mx:arguments arg1.../arg1 arg2.../arg2 / //mx:StringValidator field="myRO.someMethod.arg1" ... /mx:StringValidator field="myRO.someMethod.arg2" ... /I tend to think that peoplehave a Model that gets validated, and then onlyif it's validated will it be passed on to the service. But I'm checking myhunches and want to know if anyone uses the above technique.Matt
Re: [flexcoders] RowRenderer api
On Mon, 14 Mar 2005 10:24:32 +1000, Jasper Blues [EMAIL PROTECTED] wrote: I have a DataGrid component in which I'd like to make some rows non-selectable based upon properties in my dataProvider. Can someone suggest a way to achieve this? I can't find much information on how to use the RowRenderer api. The `selectable` property applies to the entire DataGrid, and cannot be applied to individual rows (unless you switch it on and off depending on which row is being selected). Manish
Cannot invoke method
Hi, i have this problem, if you can you look my code, if you look my mxml file when press PassaPOJO button, flex lunch this error Error: Cannot invoke method 'Lista'. Why? what i wrong, please can you help me java side simple function public void Lista(PfVO pf) { System.out.print(pf.getDe50pf()); } Devis class vo.as400.PfVO { public var aacupf : Number; public var blrepf : String; public var cartpf : String; public var cdogpf : String; public var ceaqpf : Number; public var ceulpf : Number; public var cfpfpf : vo.as400.CCategoriFiscaleVO; public var civapf : String; public var cma1pf : String; public var cma2pf : String; public var cma3pf : String; public var cma4pf : String; public var cma5pf : String; public var cmp1pf : String; public var cmp2pf : String; public var cmp3pf : String; public var cnaqpf : String; public var cnvepf : String; public var coaqpf : Number; public var coulpf : Number; public var de50pf : String; public var dtumpf : Number; public var fl10pf : String; public var fl20pf : String; public var fl30pf : String; public var fl31pf : String; public var fl32pf : String; public var fl33pf : String; public var fl34pf : String; public var fl35pf : String; public var fl36pf : String; public var fl37pf : String; public var fl38pf : String; public var fl39pf : String; public var fl40pf : String; public var fl41pf : String; public var fl42pf : String; public var fl43pf : String; public var fl44pf : String; public var fl45pf : String; public var fl46pf : String; public var fl47pf : String; public var fl48pf : String; public var fl49pf : String; public var fla1pf : String; public var fla2pf : String; public var fla3pf : String; public var fla4pf : String; public var fla5pf : String; public var fla6pf : String; public var fla7pf : String; public var fla8pf : String; public var flicpf : String; public var fptgpf : String; public var ftcopf : String; public var ggcupf : Number; public var linepf : String; public var ltripf : Number; public var marcpf : String; public var mmcupf : Number; public var modevo : vo.as400.ModeVO; public var nrazpf : Number; public var orumpf : Number; public var peunpf : Number; public var pfvopk : vo.pk.PfVOPK; public var qmxbpf : Number; public var ricopf : String; public var scmnpf : Number; public var slinpf : String; public var socupf : Number; public var stagione : vo.as400.CStagione; public var strepf : String; public var volupf : Number; public static var regClass = Object.registerClass(vo.as400.PfVO,vo.as400.PfVO); public function PfVO() { } }?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; themeColor=haloSilver backgroundColor=#FF xmlns=* !--WorkFlow Campionario Via del Corso S.p.A. -- mx:RemoteObject id=Campionario named=FCampionarioRO fault=errorCall(event.fault.description) showBusyCursor=true mx:method name=Test result=onResult(event.result)/ mx:method name=Test_AS400 result=onResult(event.result)/ mx:method name=Lista/ /mx:RemoteObject mx:Binding source={PfVO(vopf[0]).stagione.cdc_stag==undefined ?'':PfVO(vopf[0]).stagione.cdc_stag} destination=cdc_art.text / mx:Binding source={PfVO(vopf[0]).stagione.dsc_stag==undefined ?'':PfVO(vopf[0]).stagione.dsc_stag} destination=cdc_art2.text / mx:Binding source={PfVO(vopf[0]).de50pf==undefined ?'':PfVO(vopf[0]).de50pf} destination=descr.text / mx:Binding source={PfVO(vopf[0]).pfvopk.matepf==undefined ?'':PfVO(vopf[0]).pfvopk.matepf} destination=mate.text / mx:Script source=as/labelFunction.as/ mx:Script var StartX=0; var Max_Result=20; import vo.as400.*; var vopf:Array; function AutoInc() { if(vopf[0].de50pf==undefined) { StartX=0; Campionario.Test_AS400(StartX,Max_Result); } else { StartX++; Campionario.Test_AS400(StartX,Max_Result); } } function updateObj(oEvent:Object,sColumn:String):Void { // roModel.currentSeason.editField(0,de50pf, oEvent.target.text); vopf.editField(0, de50pf, oEvent.target.text); } function errorCall(alert) { mx.controls.Alert.show(Web service failed!+alert, Errore Interno , mx.controls.Alert.OK); } function onResult(result):Void { vopf=result; roModel.currentSeason.dataProvider=result; } function Aggiorna(vo:Object):Void { Campionario.Lista(vo); } /mx:Script mx:Model id=roModel currentSeason {vopf} /currentSeason /mx:Model mx:Button label=Product click=AutoInc();/ mx:Button label=Product click=vopf=new Array()/ mx:Button label=Te click=Campionario.Test_AS400(StartX,Max_Result)/ mx:Button label=PassaPOJO click=Aggiorna(vopf[0])/ mx:TextInput id=descr focusOut=updateObj(event,'0')/ mx:TextInput id=mate / mx:TextInput id=cdc_art2 / mx:TextInput id=cdc_art/ mx:DataGrid dataProvider={vopf} width=100% mx:columns mx:Array mx:DataGridColumn columnName=de50pf headerText=Descrizione/ mx:DataGridColumn labelFunction=getModello headerText=Materiale/ mx:DataGridColumn labelFunction=getStagione headerText=Stagione/ mx:DataGridColumn labelFunction=getDsc_stag headerText=Desc_stag/ mx:DataGridColumn
Re: Installing Flex on IIS with JRun??
When you guys say extract the flex.war do you mean to Add the Flex.war via the Jrun admin console as a new J2EE component in the Web Application section? Or is there another way to do this?? Thanks all! --- In flexcoders@yahoogroups.com, Ketan Bengali [EMAIL PROTECTED] wrote: You will also need to extract the file flex.war in directory default-war Regards, Ketan Bengali Multimedia Programmer, Silver Communication Pvt. Ltd., Pune. Bradley wrote: OK, I have an IIS server that I Installed JRun onto then I installed FLEX onto it as well. The JRun server works fine, i can adminstrate and all that. I added a New Server in the admin called 'flex' started it on localhost and gave it port 8101. I then copi ed the flex.war file into that new servers directory here... D:\JRun4\servers\flex\default-ear\default-war First off is that the right spot? And second do I have to do anything with the flex.war file like extract it? I then tossed a simple 'hello.mxml' file into the same path as above and when i view it in a browser at http://localhost:8101/hello.mxml it renders out all the mxml file as text like this ?xml version=1.0 encoding=utf-8 ? - mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Label text=Hello World / /mx:Application So WHAT am i doing wrong? ANY help would be great, this whole server admin thing really isn't my back as you can tell and I am a bit lost. Thanks all! Cheers. Yahoo! Groups Links
Submit an editable grid
Hello guys, I have an editable datagrid and a save button underneath. Each row from the datagrid isan "AS2"value object that is registered Object.registerClass. I edit the grid and hit the save button. I would expect to get on the server side an array of java value objects ( server side relative of the AS2 objects ) but I get an array of "flashgateway.io.ASObject". Is something am I missing? or is the right way it should be? Thanks, Valy Do you Yahoo!? Yahoo! Small Business - Try our new resources site!
Use hand cursor
Hi flex coders, Does anyone know how I can force use of the hand cursor, specifically on an Image control? Ideally Id love to just go instance.useHandCursor = true; Do I have to write a derivative and override the relevant mouse handlers? Thanks! Robert
RE: [flexcoders] Re: Installing Flex on IIS with JRun??
You can do this without the admin console... Unzip the flex.war file (war files are just zip files with a different file name extension) using a suitable name for the top level directory under your server. For example: unzip flex.war to yourserver as: C:\JRun4\servers\yourserver\flex So that the following file structure is there: C:\JRun4\servers\yourserver\flex\ C:\JRun4\servers\yourserver\flex\WEB-INF C:\JRun4\servers\yourserver\flex\WEB-INF\lib C:\JRun4\servers\yourserver\flex\WEB-INF\flex You can then force JRun to deploy an expanded application from the flex directory. Open the Jrun configuration file for yourserver, located at: C:\JRun4\servers\yourserver\SERVER-INF\jrun.xml Search for the DeployerService service section. Add a child element like so: attribute name=file{jrun.server.rootdir}/flex//attribute Save the file. I also tend to clear our my temp directory to ensure the classpath is clear by deleting the C:\JRun4\servers\yourserver\SERVER-INF\temp directory. Restart your JRun server. By default, JRun assumes the directory name as the context root for your web application. For yourserver, let's say it's running on port 8400 for example, would have a web application with a context root of flex: i.e. http://localhost:8400/flex NOTE: To override this default context root assignment, you can add a /WEB-INF/jrun-web.xml file and specify a context-root element with the desired name. See: http://livedocs.macromedia.com/jrun/4/Getting_Started_with_JRun/develapp s4.htm -Original Message- From: Bradley [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 9:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Installing Flex on IIS with JRun?? When you guys say extract the flex.war do you mean to Add the Flex.war via the Jrun admin console as a new J2EE component in the Web Application section? Or is there another way to do this?? Thanks all! --- In flexcoders@yahoogroups.com, Ketan Bengali [EMAIL PROTECTED] wrote: You will also need to extract the file flex.war in directory default-war Regards, Ketan Bengali Multimedia Programmer, Silver Communication Pvt. Ltd., Pune. Bradley wrote: OK, I have an IIS server that I Installed JRun onto then I installed FLEX onto it as well. The JRun server works fine, i can adminstrate and all that. I added a New Server in the admin called 'flex' started it on localhost and gave it port 8101. I then copi ed the flex.war file into that new servers directory here... D:\JRun4\servers\flex\default-ear\default-war First off is that the right spot? And second do I have to do anything with the flex.war file like extract it? I then tossed a simple 'hello.mxml' file into the same path as above and when i view it in a browser at http://localhost:8101/hello.mxml it renders out all the mxml file as text like this ?xml version=1.0 encoding=utf-8 ? - mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; backgroundColor=#FF mx:Label text=Hello World / /mx:Application So WHAT am i doing wrong? ANY help would be great, this whole server admin thing really isn't my back as you can tell and I am a bit lost. Thanks all! Cheers. Yahoo! Groups Links Yahoo! Groups Links
Whats the best way to do this
Ok lets say you have an array of about fifty objects and you use a repeater and put the items with the properties from the repeater to a list of labels. BUT you do not want the screen to go so far to the right that it goes off the screen you want it to instead go over to the next line. In other words say you want an array of fifty labels but you want five labels on each line instead of all fifty to be on one line what is the best way to do this?
Re: [flexcoders] Submit an editable grid
The only time I've ever seen that happen is when there is something broken about the Java/AS mappings. There are several simple JavaBean gotchas that can bite you here: - forgetting to put in a public no-arg constructor - forgetting to have public setter methods for properties - trivial spelling and case errors - data type mismatches Valy Sivec wrote: Hello guys, I have an editable datagrid and a save button underneath. Each row from the datagrid is an AS2 value object that is registered Object.registerClass. I edit the grid and hit the save button. I would expect to get on the server side an array of java value objects ( server side relative of the AS2 objects ) but I get an array of flashgateway.io.ASObject. Is something am I missing? or is the right way it should be? Thanks, Valy Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/ *Yahoo! Groups Sponsor* ADVERTISEMENT click here http://us.ard.yahoo.com/SIG=129tnd53u/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1110896115/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075 *Yahoo! Groups Links* * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/.
Default text in ComboBox with and Required Fields
Title: Default text in ComboBox with and Required Fields I've got a page with several ComboBox elements within, some of them are required fields. The DataProvider gets the contents dynamically from the server. Is there a way to add a default item such as 'Please Choose...' without it actually being a submitable value or showing a Halo error when the page loads? Cheers in advance. This communication together with any attachments transmitted with it ("thisE-Mail") is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use,dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail "the Company" means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS
RichTextEditor...for Flash
I tried (with Abdul's MXI help) to get this installable for FlexBuilder, but have failed. Hopefully someone else can help Igor carry the torch so Flexers' can use this component. RichTextEditor Flash Component http://www.flashtexteditor.com/in.html My Commentary http://www.jessewarden.com/archives/2005/03/flash_richtexte.html --JesterXL
RE: [flexcoders] Submit an editable grid
Title: Message What does the API for the "save" method on the RemoteObject service look like? If it is based on something generic, like java.util.Map, then it might leave a type as flashgateway.io.ASObject (which extends java.util.HashMap). If it's ArrayList, then it might notspot that it needs to make a conversion either. Try changing the API to an Array of YourValueObjectType public boolean save(YourValueObjectType[] updates);
RE: [flexcoders] Cannot invoke method
Hi, thank's for your help but with Aggiorna(vo:vo.as400.PfVO):Void flex throw again Error: Cannot invoke method 'Lista'. I have review all my classes, and if i use them when retrive data , work fine, for example public PfVO[] Retrive_PF() the code work!!!, I'm not more thing to check. Help please. Devis -Original Message- From: Peter Farland [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Date: Mon, 14 Mar 2005 10:22:18 -0500 Subject: RE: [flexcoders] Cannot invoke method Since your Java API: public void Lista(PfVO pf) expects a strongly typed PfVO object, then you need to send a typed object from your: Aggiorna(vo:Object):Void ActionScript function. Either change your client code to: Aggiorna(vo:vo.as400.PfVO):Void To ensure you're only sending instances of this type, or relax the API on your Java class to: public void Lista(Map pf) and manually construct your java instance of PfVO yourself. I noticed that your PfVO class has many other strongly typed fields - are all of these classes correctly registered and sent over the wire? Also, are all of these types matched with corresponding Java classes? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 8:07 AM To: Flex Coders Subject: [flexcoders] Cannot invoke method Hi, i have this problem, if you can you look my code, if you look my mxml file when press PassaPOJO button, flex lunch this error Error: Cannot invoke method 'Lista'. Why? what i wrong, please can you help me java side simple function public void Lista(PfVO pf) { System.out.print(pf.getDe50pf()); } Devis Yahoo! Groups Links Yahoo! Groups Links
RE: [flexcoders] Whats the best way to do this
Have you checked out the Tile Container ? Steven From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 14 March 2005 15:15To: flexcoders@yahoogroups.comSubject: [flexcoders] Whats the bestway to do this Ok lets say you have an array of about fifty objects and you use a repeater and put the items with the properties from the repeater to a list of labels. BUT you do not want the screen to go so far to the right that it goes off the screen you want it to instead go over to the next line. In other words say you want an array of fifty labels but you want five labels on each line instead of all fifty to be on one line what is the best way to do this? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.2 - Release Date: 11/03/2005
Can you make an array of functions
Is this possible
Re: [flexcoders] Flex SWF in Zinc
Hi Jessie, I wondered about the same licensing question when I've been testing Flex inside ZINC, I've simply use .exe as shell container for .swf served from Flex just like in browser , thanx for asking that, regards Peter, MDM Support Team [EMAIL PROTECTED] JesterXL wrote: Is wrapping a Flex SWF using Zinc, and distributing the EXE ok via the EULA? Aral Balkan brought this up to me after I told him my progress on a project, and thought I'd ask. I wrote a small GUI for NaturalDocs (naturaldocs.org) since it's only command line. I used Zinc as the wrapper since Central cannot get folder paths. Thanks in advance if you can help! --JesterXL
Re: [flexcoders] Can you make an array of functions
You can achieve the same thing as an array of functions by creating an array of objects that each has a single function. The question is why would you want to do this? Spike [EMAIL PROTECTED] wrote: Is this possible *Yahoo! Groups Sponsor* ADVERTISEMENT click here http://us.ard.yahoo.com/SIG=129cjlfav/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1110902179/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075 *Yahoo! Groups Links* * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org
Re: [flexcoders] Flex SWF in Zinc
To expound on what you just said: - is using the Zinc projector to load the SWF from a remote URL legal? (Peter's way he tested) - is using the Zinc projector to wrap the SWF locally by getting a local copy of the SWF generated from a Flex server (way I've tested) legal? The first uses a Flex server, upon the user running the EXE. The second uses a Flex server to get a local copy of the SWF that you then compile into a Zinc exe, making it self-contained and have no need of a Flex server. - Original Message - From: peter blazejewicz To: flexcoders@yahoogroups.com Sent: Monday, March 14, 2005 11:18 AM Subject: Re: [flexcoders] Flex SWFin Zinc Hi Jessie,I wondered about the same licensing question when I've been testing Flex inside ZINC,I've simply use .exe as shell container for .swf served from Flex just like in browser ,thanx for asking that,regardsPeter,MDM Support Team [EMAIL PROTECTED]JesterXL wrote: Is wrapping a Flex SWF using Zinc, and distributing theEXE ok via the EULA? Aral Balkan brought this up to me after I told him my progress on a project, and thought I'd ask. I wrote a small GUI for NaturalDocs (naturaldocs.org) since it's only command line. I used Zinc as the wrapper since Central cannot get folder paths. Thanks in advance if you can help! --JesterXL
Re: unsupported type found in stream-Flex alert
Abdul/Peter, I have an editable datagrid that gets populated via remote object calls. The delegate class has a method Object[] getDataGridData (), the result array is populated with java value objects. On the flex side I registered the AS2 value object to the correspondent java value object via Object.registerClass. I have save/update functionalities associated with the datagrid and the save is called like remoteObject.saveDataFromTheGrid (dataGrid_id.dataprovider) ( the data provider gets sent as a parameter). The data grid contains Strings, Dates and formatted numbers. Does this sound like something that could cause such problem ? Another question I have: is there any way to disable the alert message (flex config parm or so on )? TIA, Veronica. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, Yeah it generally happens when you try to pass entire recordset from server to flash player via Remote Object(Flash Remoting). Try to pass array of objects or structures to client rather than passing recordset... Hope that helps... -abdul -Original Message- From: Veronica Grigoras [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 3:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] unsupported type found in stream-Flex alert Hi all, From time to time I'm getting this flex alert popup in my application stating Unsupported type found in stream. I don't see any errors in the application server log (sql exceptions, any other faulty errors), there are no functionality failures either. It doesn't appear constantly, which makes it difficult to duplicate. Is this a configuration issue? Does it have to do with the datatypes mapping between Flex and Java? Thank you, Veronica. Yahoo! Groups Links
RE: [flexcoders] Can you make an array of functions
Title: Message Yes. An array element can be any ActionScript value, including a function reference. - Gordon -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 7:56 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Can you make an array of functionsIs this possible
RE: [flexcoders] Use hand cursor
I found this: mouseOver=event.target. It's the onRelease that fixes it. But also: FYI, I've found it much easier to use an mx:Link icon=.../tag than to overide all the handlers on an image tag. Tracy From: Robert Stuttaford [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20059:29 AM To: [EMAIL PROTECTED] Subject: [flexcoders] Use hand cursor Hi flex coders, Does anyone know how I can force use of the hand cursor, specifically on an Image control? Ideally Id love to just go instance.useHandCursor = true; Do I have to write a derivative and override the relevant mouse handlers? Thanks! Robert
Documentation on supported application servers
I've looked on the flex developers site, and can't find any info on which application servers are supported for the deployment of flex, and specifically what versions of say Apache, Tomcat are required. Can anyone point me in the right direction. Andrew
Re: [flexcoders] Re: Slider extension
This is a good question. Without the source extending the Slider is difficult at best. Currently I had to write a custom slider to get the functionality I need, but I'd like to leverage what is already available as well. ~harris --- Matthew Pflueger [EMAIL PROTECTED] wrote: Has anybody extended the Slider component to use more than two thumbs? Also, does anybody have the source to the Flex Slider components? The FlexForFlash archive under resources does not seem to contain the mx.controls.sliderclasses package. Thanks, Matt __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
RE: [flexcoders] Default text in ComboBox with and Required Fields
Title: Default text in ComboBox with and Required Fields Check out the prompt property. It looks like it would be submitted though. Tracy From: Anthony Merryfield [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 200510:20 AM To: [EMAIL PROTECTED] Subject: [flexcoders] Default text in ComboBox with and Required Fields I've got a page with several ComboBox elements within, some of them are required fields. The DataProvider gets the contents dynamically from the server. Is there a way to add a default item such as 'Please Choose...' without it actually being a submitable value or showing a Halo error when the page loads? Cheers in advance. This communication together with any attachments transmitted with it (this E-Mail) is intended only for the use of the addressee andmay contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our ISe Response Team immediately by telephone on +44 (0)20 8896 5828 or via e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail the Company means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS
RE: [flexcoders] Documentation on supported application servers
Andrew, you can see it on the system requirements page: http://www.macromedia.com/software/flex/productinfo/systemreqs/ Supported Application Servers: Macromedia JRun 4 Updater 2 IBM WebSphere Application Server 5 BEA WebLogic Server 7 or 8.1 Oracle 10g AS Tomcat 4.1.29 or 5.0.18 I am not 100% sure, but I think there's support for the Hitachi server and ATG, but maybe someone else can clarify if necessary. HTH, matthew horn From: greenfishinwater [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 12:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Documentation on supported application servers I've looked on the flex developers site, and can't find any info on which application servers are supported for the deployment of flex, and specifically what versions of say Apache, Tomcat are required. Can anyone point me in the right direction. Andrew Yahoo! Groups Sponsor ADVERTISEMENT click here http://us.ard.yahoo.com/SIG=12985e592/M=298184.6018725.7038619.3001176/ D=groups/S=1705007207:HM/EXP=1110906148/A=2593423/R=0/SIG=11el9gslf/*htt p://www.netflix.com/Default?mqso=60190075 http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group s/S=:HM/A=2593423/rand=381193659 Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ .
RE: [flexcoders] Submit an editable grid
Peter, Thank you for your message.I fixed the problem and what I have done is to iterate the datagrid provider and dump it into an array of AS2 value objects. and call the remote object like : function saveDataGrid() { var gridLines:Array = new Array(); for( var cnt:Number = 0 ; cnt resultSearchDataGrid.dataProvider.length ; cnt++) { var individual: Individual = new Individual(); individual.indi_first_name= resultSearchDataGrid.dataProvider[cnt].indi_first_name; individual.indi_last_name= resultSearchDataGrid.dataProvider[cnt].indi_last_name; individual.indi_dob_long = resultSearchDataGrid.dataProvider[cnt].indi_dob_long; individual.asset_values = resultSearchDataGrid.dataProvider[cnt].asset_values; gridLines[cnt] = individual; } oscRO.saveIndi( gridLines ); } The server side method is public void saveIndi( Object[] list); Is this redundant? Thanks, Valy Peter Farland [EMAIL PROTECTED] wrote: What does the API for the "save" method on the RemoteObject service look like? If it is based on something generic, like java.util.Map, then it might leave a type as flashgateway.io.ASObject (which extends java.util.HashMap). If it's ArrayList, then it might not spot that it needs to make a conversion either. Try changing the API to an Array of YourValueObjectType public boolean save(YourValueObjectType[] updates); -Original Message-From: Valy Sivec [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 9:15 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Submit an editable grid Hello guys, I have an editable datagrid and a save button underneath. Each row from the datagrid isan "AS2"value object that is registered Object.registerClass. I edit the grid and hit the save button. I would expect to get on the server side an array of java value objects ( server side relative of the AS2 objects ) but I get an array of "flashgateway.io.ASObject". Is something am I missing? or is the right way it should be? Thanks, Valy Do you Yahoo!?Yahoo! Small Business - Try our new resources site! Do you Yahoo!? Yahoo! Small Business - Try our new resources site!
RE: [flexcoders] Re: do you validate WS/RO requests?
Sorry, should have asked you to specify which tags (if you distinguish). Matt From: bhaq1972 [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 200512:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: doyou validate WS/RO requests? yes. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Quick survey, do you ever use the Validators on RemoteObject, WebService, or HTTPService requests? E.g., mx:RemoteObject ... mx:method name=someMethod mx:arguments arg1.../arg1 arg2.../arg2 / / / mx:StringValidator field=myRO.someMethod.arg1 ... / mx:StringValidator field=myRO.someMethod.arg2 ... / I tend to think that people have a Model that gets validated, and then only if it's validated will it be passed on to the service. But I'm checking my hunches and want to know if anyone usesthe above technique. Matt
RE: [flexcoders] Re: Slider extension
Here are some posts that may be relevant: Hi Let me explain the problem a little more: Using the code below, the Top Panel with the title My Title will not display the 2 thunbs correctly. To display the two thumbs correctly, you need to remove the title text for the panel. Here is the source youcan try: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Canvas id=TopPanel mx:Panel title=My Title mx:ControlBar width=100% mx:HSlider thumbCount=2 minimum=1 maximum=10/ /mx:ControlBar /mx:Panel /mx:Canvas mx:Canvas id=BottomPanel mx:Panel mx:ControlBar width=100% mx:HSlider thumbCount=2 minimum=1 maximum=10/ /mx:ControlBar /mx:Panel /mx:Canvas /mx:Application We think this is a bug. However, if there is a solution, please keep us posted. Wilfred And: Wilfred, The ControlBar is causing the problem. It is not properly instantiating the Slider control. As a workaround, you can wrap the Slider in a ViewStack and HBox. This will change the instantiation path slightly and get the Slider to show its thumbs. I'll file I bug on this. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Canvas id=bottomPanel mx:Panel title=My Title mx:ControlBar mx:ViewStack mx:HBox mx:HSlider id=MySlider thumbCount=2/ /mx:HBox /mx:ViewStack /mx:ControlBar /mx:Panel /mx:Canvas /mx:Application Jason From: Matthew Pflueger [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 200511:55 AM To: [EMAIL PROTECTED] Subject: [flexcoders] Re: Slider extension Has anybody extended the Slider component to use more than two thumbs? Also, does anybody have the source to the Flex Slider components? The FlexForFlash archive under resources does not seem to contain the mx.controls.sliderclasses package Thanks, Matt
Data Grid entry, numerical operations with bigdecimals
Hello, I have a data entry grid and a column should be numeric ( BigDecimal in java ). To get the correct representation of the number I transmit the number to flex as String, to avoid the scientific representation of the number. My problem is that in the editable grid, the user can change the numeric column(s) value and those columnsparticipate insometotal calculations, percentages displayedunderneath the grid... Problem: How should I preform the calculation without loosing the precision? For example, Java Bigdecimal value:654564564645645647872 Flex: 6.54564564645646e+20 How can I avoid loosing the last decimals? in this case 47872? Is there any way I can do that? I'll need to perform the calculation real time on the client side... I am open forsuggestions... How have you treated situations like this?. Thanks for your help, Valy Do you Yahoo!? Yahoo! Mail - 250MB free storage. Do more. Manage less.
Problem with WebService using HTTPS protocol
I'm trying to invoke an unnamed web service and the fault string Could not load WSDL is returned. (typing the URL in a browser returns valid (WSDL) XML). A couple of questions: (1) Does anyone have an idea why the WSDL could not be loaded? (2) Does anyone have a complete, working example of invoking a Web Service, from a separate server, over HTTPS (with flex-config.xml, etc., settings)?
RE: [flexcoders] Re: unsupported type found in stream-Flex alert
It's ok as long as you don't have code that does this: something.whatever = new String(foo); something.somethingelse = new Number(4); This is a limtation of the Flash Player and the underlying AMF NetConnection that it provides. Instead, the above must be written as follows: something.whatever = foo; something.somethingelse = 4; I know Object representations of primitives have happened silently in the past when people have got data from a WebService and then tried to send it to the server via RemoteObject. I'm not sure if this is still a limitation in Flex 1.5. As for the alert... I'm not sure what's causing that without seeing your code? Perhaps you don't have a fault handler specified for your mx:RemoteObject service? -Original Message- From: Veronica Grigoras [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 11:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: unsupported type found in stream-Flex alert Abdul/Peter, I have an editable datagrid that gets populated via remote object calls. The delegate class has a method Object[] getDataGridData (), the result array is populated with java value objects. On the flex side I registered the AS2 value object to the correspondent java value object via Object.registerClass. I have save/update functionalities associated with the datagrid and the save is called like remoteObject.saveDataFromTheGrid (dataGrid_id.dataprovider) ( the data provider gets sent as a parameter). The data grid contains Strings, Dates and formatted numbers. Does this sound like something that could cause such problem ? Another question I have: is there any way to disable the alert message (flex config parm or so on )? TIA, Veronica. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, Yeah it generally happens when you try to pass entire recordset from server to flash player via Remote Object(Flash Remoting). Try to pass array of objects or structures to client rather than passing recordset... Hope that helps... -abdul -Original Message- From: Veronica Grigoras [mailto:[EMAIL PROTECTED] Sent: Thursday, March 10, 2005 3:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] unsupported type found in stream-Flex alert Hi all, From time to time I'm getting this flex alert popup in my application stating Unsupported type found in stream. I don't see any errors in the application server log (sql exceptions, any other faulty errors), there are no functionality failures either. It doesn't appear constantly, which makes it difficult to duplicate. Is this a configuration issue? Does it have to do with the datatypes mapping between Flex and Java? Thank you, Veronica. Yahoo! Groups Links Yahoo! Groups Links
RE: [flexcoders] Submit an editable grid
Title: Message Have you tried changing your Java API to: public void saveIndi(Individual[] individuals) instead?
RE: [flexcoders] Can you make an array of functions
Something like this: function func1() { } function func2() { } var arr = [func1, func2]; arrFunction.push(function func3() { } ); But again, why you need it.. -abdul -Original Message- From: Spike [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 9:34 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Can you make an array of functions You can achieve the same thing as an array of functions by creating an array of objects that each has a single function. The question is why would you want to do this? Spike [EMAIL PROTECTED] wrote: Is this possible *Yahoo! Groups Sponsor* ADVERTISEMENT click here http://us.ard.yahoo.com/SIG=129cjlfav/M=298184.6018725.7038619.3001176/D=gr oups/S=1705007207:HM/EXP=1110902179/A=2593423/R=0/SIG=11el9gslf/*http://www. netflix.com/Default?mqso=60190075 *Yahoo! Groups Links* * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org Yahoo! Groups Links
Re: [flexcoders] Problem with WebService using HTTPS protocol
Not over https. But I do over http. -Original Message- From: extensive_systems [EMAIL PROTECTED] Date: Mon, 14 Mar 2005 18:33:38 To:flexcoders@yahoogroups.com Subject: [flexcoders] Problem with WebService using HTTPS protocol I'm trying to invoke an unnamed web service and the fault string Could not load WSDL is returned. (typing the URL in a browser returns valid (WSDL) XML). A couple of questions: (1) Does anyone have an idea why the WSDL could not be loaded? (2) Does anyone have a complete, working example of invoking a Web Service, from a separate server, over HTTPS (with flex-config.xml, etc., settings)? Yahoo! Groups Sponsor ADVERTISEMENT Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Sent via BlackBerry - a service from ATT Wireless.
RE: [flexcoders] Re: Slider extension
This is definitely something Ill keep in mind but Im currently not having any problems getting the slider to display itself (or its thumbs). What Id like to do is be able to set thumbCount=n and give the slider an array[n] of values and have n number of thumbs appear For example, mx:HSlider thumbCount=3 minimum=0 maximum=1000 labels=[0,1000] values=[0,500,1000] / would display three thumbs, the first at zero, the second at 500, and third at 1000. Currently, though, the slider ignores the third thumb and displays two, the first at 0 and the second at 500 I wouldnt mind trying to extendthe Slider myself and hack in this ability but I cant seem to find the source for Flexs slider components anywhere Any ideas Thanks, Matt From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 200512:35 PM To: [EMAIL PROTECTED] Subject: RE: [flexcoders] Re: Slider extension Here are some posts that may be relevant: Hi Let me explain the problem a little more: Using the code below, the Top Panel with the title My Title will not display the 2 thunbs correctly. To display the two thumbs correctly, you need to remove the title text for the panel. Here is the source youcan try: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Canvas id=TopPanel mx:Panel title=My Title mx:ControlBar width=100% mx:HSlider thumbCount=2 minimum=1 maximum=10/ /mx:ControlBar /mx:Panel /mx:Canvas mx:Canvas id=BottomPanel mx:Panel mx:ControlBar width=100% mx:HSlider thumbCount=2 minimum=1 maximum=10/ /mx:ControlBar /mx:Panel /mx:Canvas /mx:Application We think this is a bug. However, if there is a solution, please keep us posted. Wilfred And: Wilfred, The ControlBar is causing the problem. It is not properly instantiating the Slider control. As a workaround, you can wrap the Slider in a ViewStack and HBox. This will change the instantiation path slightly and get the Slider to show its thumbs. I'll file I bug on this. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Canvas id=bottomPanel mx:Panel title=My Title mx:ControlBar mx:ViewStack mx:HBox mx:HSlider id=MySlider thumbCount=2/ /mx:HBox /mx:ViewStack /mx:ControlBar /mx:Panel /mx:Canvas /mx:Application Jason From: Matthew Pflueger [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 200511:55 AM To: [EMAIL PROTECTED] Subject: [flexcoders] Re: Slider extension Has anybody extended the Slider component to use more than two thumbs? Also, does anybody have the source to the Flex Slider components? The FlexForFlash archive under resources does not seem to contain the mx.controls.sliderclasses package Thanks, Matt
Re: Problem with WebService using HTTPS protocol
Answer to (1) is that System.security.loadPolicyFile(...); does not seem to have worked properly / done the trick, and I actually had to place crossdomain.xml in the appserver's root directory. --- In flexcoders@yahoogroups.com, extensive_systems [EMAIL PROTECTED] wrote: I'm trying to invoke an unnamed web service and the fault string Could not load WSDL is returned. (typing the URL in a browser returns valid (WSDL) XML). A couple of questions: (1) Does anyone have an idea why the WSDL could not be loaded? (2) Does anyone have a complete, working example of invoking a Web Service, from a separate server, over HTTPS (with flex-config.xml, etc., settings)?
Need example of Custom Component Built in Flash
Hello, Would someone be willing to post a simple example of a custom component built in Flash for use in Flex? The simpler the better. Thanks. -Douglass Turner
Re: [flexcoders] Use hand cursor
I am really surprised that MM didn't do a better job with this. My personal feeling is that anything that can be clicked, should by default, use the hand cursor. Sorry for the rant... So I ended up creating wrapper classes for clickable items. For instance: class components.Button extends mx.controls.Button { function init():Void { super.init(); useHandCursor = true; } function onPress():Void { super.onPress(); } } Hope that helps. -James On Mon, 2005-03-14 at 16:29 +0200, Robert Stuttaford wrote: Hi flex coders, Does anyone know how I can force use of the hand cursor, specifically on an Image control? Ideally Id love to just go instance.useHandCursor = true; Do I have to write a derivative and override the relevant mouse handlers? Thanks! Robert Yahoo! Groups Sponsor ADVERTISEMENT click here __ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Can you make an array of functions
I am just trying to find ways to write code more compactly thats all I just thought an array of functions would be a way to do it but I guess not.
RE: [flexcoders] Submit an editable grid
Peter, I changed that as you said and it worked fine if called the method RO.saveIndi( Array ) where the Array is the the data from the dataprovider. The same code doesn't work in case I want to send the dataprovider directly to the remote object ( see the function below ) This works: function saveIndi() { var gridLines:Array = new Array(); for( var cnt:Number = 0 ; cnt resultSearchDataGrid.dataProvider.length ; cnt++) { var individual: Individual = new Individual(); individual.indi_first_name= resultSearchDataGrid.dataProvider[cnt].indi_first_name; individual.indi_last_name= resultSearchDataGrid.dataProvider[cnt].indi_last_name; gridLines[cnt] = individual; } oscAppRO.saveIndi( gridLines ); } This doesn't work: function saveIndi() { oscAppRO.saveIndi( resultSearchDataGrid.dataProvider ); } My question is: Is it a bad practice to send as input parameter to the remote object the data provider? or should I transfer the data provider into an array of value objects first? Any help would be greatly appreciated. Thank you, Valy Peter Farland [EMAIL PROTECTED] wrote: Have you tried changing your Java API to: public void saveIndi(Individual[] individuals) instead? -Original Message-From: Valy Sivec [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 12:09 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Submit an editable grid Peter, Thank you for your message.I fixed the problem and what I have done is to iterate the datagrid provider and dump it into an array of AS2 value objects. and call the remote object like : function saveDataGrid() { var gridLines:Array = new Array(); for( var cnt:Number = 0 ; cnt resultSearchDataGrid.dataProvider.length ; cnt++) { var individual: Individual = new Individual(); individual.indi_first_name= resultSearchDataGrid.dataProvider[cnt].indi_first_name; individual.indi_last_name= resultSearchDataGrid.dataProvider[cnt].indi_last_name; individual.indi_dob_long = resultSearchDataGrid.dataProvider[cnt].indi_dob_long; individual.asset_values = resultSearchDataGrid.dataProvider[cnt].asset_values; gridLines[cnt] = individual; } oscRO.saveIndi( gridLines ); } The server side method is public void saveIndi( Object[] list); Is this redundant? Thanks, Valy Peter Farland [EMAIL PROTECTED] wrote: What does the API for the "save" method on the RemoteObject service look like? If it is based on something generic, like java.util.Map, then it might leave a type as flashgateway.io.ASObject (which extends java.util.HashMap). If it's ArrayList, then it might not spot that it needs to make a conversion either. Try changing the API to an Array of YourValueObjectType public boolean save(YourValueObjectType[] updates); -Original Message-From: Valy Sivec [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 9:15 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Submit an editable grid Hello guys, I have an editable datagrid and a save button underneath. Each row from the datagrid isan "AS2"value object that is registered Object.registerClass. I edit the grid and hit the save button. I would expect to get on the server side an array of java value objects ( server side relative of the AS2 objects ) but I get an array of "flashgateway.io.ASObject". Is something am I missing? or is the right way it should be? Thanks, Valy Do you Yahoo!?Yahoo! Small Business - Try our new resources site! Do you Yahoo!?Yahoo! Small Business - Try our new resources site! Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.
Re: [flexcoders] dataprovider for mx:Array tag
What is your remote object returning? If it doesn't return an array, you could create a function that processes the result of the remote object function and manage it that way. Doodi, Hari - BLS CTR wrote: Hi, I need to develop a UI such that when user click 'Prev' button system should display previous product info in the queue and if user click on 'Next' then system should display next product info in the queue. I thought of achieving this by assigning result object from remote object method to a Array and keep track of current product index accordingly populate Form Items. But to my surprise there is no property of dataprovider to mx:Array tag. Did any one already developed this kind of functionality so that I can have a look at it or appreciate any suggestions. Thanks! Hari Yahoo! Groups Links
Re: [flexcoders] Using flex to generate a random number
Try this one... var random :Number = 1+ (Math.random() * 10)Valy[EMAIL PROTECTED] wrote: Is there any way to use flex to generate a random number then round that number to the nearest number like say generate a random number between 1 and 10? Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.
Re: [flexcoders] Using flex to generate a random number
Well there's a Math class, with a random() function. Here's something you can refer to: http://www.actionscripts.org/tutorials/intermediate/Random_Functions/index.shtml [EMAIL PROTECTED] wrote: Is there any way to use flex to generate a random number then round that number to the nearest number like say generate a random number between 1 and 10? *Yahoo! Groups Sponsor* ADVERTISEMENT click here http://us.ard.yahoo.com/SIG=1292qgf79/M=298184.6018725.7038619.3001176/D=groups/S=1705007207:HM/EXP=1110919789/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075 *Yahoo! Groups Links* * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/.
RE: [flexcoders] dataprovider for mx:Array tag
The result will be array of value objects coming from Java. But since the backend objects are not yet ready I am trying to simulate with xml. Here is my remote object syntax. mx:RemoteObject id=itemDisplay_mngItemsController source= manageitems.controllers.MngItemsController showBusyCursor=true mx:method name=getItemList result=itemlist_do=event.result fault=mx.controls.Alert.show(event.fault.faultstring, 'Remote Call Error') mx:arguments arg1user_id/arg1 arg2month/arg2 /mx:arguments /mx:method /mx:RemoteObject can we treat itemlist_do as array of objects? In other words how to display records from a xml file in flex app record by record? Thanks! Hari -Original Message- From: Tarik Ahmed [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 3:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] dataprovider for mx:Array tag What is your remote object returning? If it doesn't return an array, you could create a function that processes the result of the remote object function and manage it that way. Doodi, Hari - BLS CTR wrote: Hi, I need to develop a UI such that when user click 'Prev' button system should display previous product info in the queue and if user click on 'Next' then system should display next product info in the queue. I thought of achieving this by assigning result object from remote object method to a Array and keep track of current product index accordingly populate Form Items. But to my surprise there is no property of dataprovider to mx:Array tag. Did any one already developed this kind of functionality so that I can have a look at it or appreciate any suggestions. Thanks! Hari Yahoo! Groups Links Yahoo! Groups Links
Re: [flexcoders] mx:Panel and disabling CSS Inheritance.
On Mon, 14 Mar 2005 10:29:48 +1000, Scott Barnes [EMAIL PROTECTED] wrote: ahh this is so frustrating.. why the hell isn't there a inheritance=false attribute! hehe It's based on the way CSS works in HTML. Some properties (like font-size) are inheriting, some aren't. The way I would get around this is by using another container inside the Panel that again has its own headerColors property: mx:Panel headerColors=... mx:VBox headerColors=back to normal mx:Accordion!-- stuff --/mx:Accordion /mx:VBox /mx:Panel That's how I do it in HTML. Manish
RE: [flexcoders] Re: Slider extension
Matt, We purposely limited the Slider to only support 2 thumbs. Can you describe the use case for supporting more than two thumbs? In any case, you can create a subclassof Slider that overrides the set thumbCount setter function. Ive included an example below. Note that when you override a setter function, you must also override the getter. class MySlider extends mx.controls.HSlider { function MySlider() { } function set thumbCount(val:Number) { super.thumbCount = val; __thumbCount = val; } function get thumbCount():Number { return super.thumbCount; } } Jason From: Matthew Pflueger [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20058:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Slider extension Has anybody extended the Slider component to use more than two thumbs? Also, does anybody have the source to the Flex Slider components? The FlexForFlash archive under resources does not seem to contain the mx.controls.sliderclasses package Thanks, Matt
RE: [flexcoders] Use hand cursor
You can also use the ImageButton component that ships in the extras folder of Flex 1.5. Jason From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20059:18 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use hand cursor I found this: mouseOver=event.target. It's the onRelease that fixes it. But also: FYI, I've found it much easier to use an mx:Link icon=.../tag than to overide all the handlers on an image tag. Tracy From: Robert Stuttaford [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20059:29 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Use hand cursor Hi flex coders, Does anyone know how I can force use of the hand cursor, specifically on an Image control? Ideally Id love to just go instance.useHandCursor = true; Do I have to write a derivative and override the relevant mouse handlers? Thanks! Robert
Re: [flexcoders] BG Canvas Color / Panel Width
On Fri, 11 Mar 2005 18:48:59 -, nextadvantage [EMAIL PROTECTED] wrote: How do I set the background canvas to a dark black gradient like I have seen in some of the samples? Create a gradient image using your favourite image editor, then set it as the `backgroundImage` of the component, and set the `backgroundSize` to 100%. I am also having issues using 100% width / Hight of my panels. Anyone have any sampel code I can play with it seems even though I have set the height and width 100% the panels still fit tight on data grid I would like data grid to maximize full screen... Can you post some code? Manish
Re: About Image
Has anyone written a servlet that can do this on the fly? Like the .net img2swf tool? kyle unfortunately, the Flash Player can only handle JPG files that are non-progressive. to check, open a JPG that doesn't get displayed in Flex in a program like Photoshop or Fireworks and save it as a JPG but don't click the progressive box.
RE: [flexcoders] Re: About Image
There is a servlet contained in a sample on my site that has a gif2jpeg servlet. Take a peek at the google maps example under Advanced on http://www.flexauthority.com. Download the source and take a look. Jeff -Original Message- From: Kyle Dyer [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 2:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: About Image Has anyone written a servlet that can do this on the fly? Like the .net img2swf tool? kyle unfortunately, the Flash Player can only handle JPG files that are non-progressive. to check, open a JPG that doesn't get displayed in Flex in a program like Photoshop or Fireworks and save it as a JPG but don't click the progressive box. Yahoo! Groups Links
RE: [flexcoders] Re: Slider extension
Thanks for the quick response Jason! Your advice worked like a charm and so easy Im a little embarrassed to have even asked the question Anyway, as for the use case, Ill due my best to explain: Say you want to rank rabbit breeders by the number of rabbits theyve successfully sold. Below is a sample table: Rabbit breeder rank Minimum # of rabbits Maximum # of rabbits A 751 1000 B 501 750 C 251 500 D 101 250 F 0 100 Essentially, we would like to change the above rankings in three ways: 1) Adjust the total scale (ie. 0 1000 to 0 2000) 2) Adjust the individual ranks (ie. A is 801 1000) 3) Add or remove new ranks (ie. A+ is 1001 2000) We thought a slider to adjust the ranks along with a few editable fields to adjust the total scale and add or remove ranks (sliders thumbs) would be a fairly intuitive interface Thanks, Matt PS. Anyway I can get the source to the slider classes??? From: Jason Szeto [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20054:40 PM To: [EMAIL PROTECTED] Subject: RE: [flexcoders] Re: Slider extension Matt, We purposely limited the Slider to only support 2 thumbs. Can you describe the use case for supporting more than two thumbs? In any case, you can create a subclassof Slider that overrides the set thumbCount setter function. Ive included an example below. Note that when you override a setter function, you must also override the getter. class MySlider extends mx.controls.HSlider { function MySlider() { } function set thumbCount(val:Number) { super.thumbCount = val; __thumbCount = val; } function get thumbCount():Number { return super.thumbCount; } } Jason From: Matthew Pflueger [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 20058:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Slider extension Has anybody extended the Slider component to use more than two thumbs? Also, does anybody have the source to the Flex Slider components? The FlexForFlash archive under resources does not seem to contain the mx.controls.sliderclasses package Thanks, Matt
Re: [flexcoders] HRule tabEnabled?
On Sun, 13 Mar 2005 18:21:57 -0500, JesterXL [EMAIL PROTECTED] wrote: Is there a way to have this tabEnabled=false by default? Seems weird to be able to tab to an HRule... I wonder why it inherits from UIComponent. Anyway, I found this the best option: initialize=mx.controls.HRule.prototype.tabEnabled = false :) Manish
Re: [flexcoders] mx:Panel and disabling CSS Inheritance.
c'mon now Scott, You could have tested that out almost faster than typing the question ;-) I'd test it myself, but I'm running out of free RAM on this machine and don't have Flex Builder running at the minute. Spike p.s. Only kidding about testing it yourself btw, I'm curious what the answer is too. Yeah i've resigned myself to the fact that its the only way but all is good. Incidently In FLEX can you use multiple CSS classes? much like you do in HTML? [div class=myFirstClass mySecondClass myThirdClass id=blah] Thanks -- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org