Re: [flexcoders] Re: Fwd: How are you!!
Can one of the moderators please remove this person from the mailing list? On Tue, Nov 29, 2011 at 6:55 AM, srikanth reddy srikanthli...@yahoo.co.inwrote: ** Hey there! fkeidjc I was ready to throw in the towel now its impossible for me to fall behind its funny how the tables have turned just thought id share the wealth http://www.happybiddersparadise.com/profile/94WayneWalker/ c ya. -- Regards, Ganaraj P R
Re: [flexcoders] AIR - Create windows skin accordind Os (Mac/Windows)
trace(flash.system.capatibilities.version) is different on mac, win, android, ios On 11/28/11, isa_loyer isa_lo...@yahoo.fr wrote: Hi, I' create a window skin for my AIR application. Close, maximise and minimise button are on top right and look like Windows 7. But , mac user are desapointed, so my question is : is it possible to apply a different window skin according user Os. If yes, how to do that. Thanks
Re: [flexcoders] Air and Ipad
yes, definetly.. machinariu for ex. On 11/25/11, cjacquel73 chjacque...@gmail.com wrote: Hello, Is it possible to add an AIR application on the Apple AppStore ? Is it compatible ? Thx, Christophe
[flexcoders] Problem: renderProvider and hierarchical data objects
Hi - I'm having a problem with an AdvancedDataGrid that has a DataGrid as a renderProvider. My dataProvider for the ADG is an ArrayCollection of the below object. [Bindable] public class MyRecord implements ValueObject { public var recall_id:int; public var recall_type:String; public var selected:Boolean = false; public var qty:Number; public var curr_qty:Number; public var due_date:String; public var status:String; public var comments:String; public var groupedTrades:ArrayCollection = new ArrayCollection(); } mx:dataProvider mx:HierarchicalData source={model.recalls} childrenField=groupedTrades/ /mx:dataProvider Here's my renderProvider code: mx:rendererProviders mx:AdvancedDataGridRendererProvider depth=2 columnIndex=1 renderer=com.controls.GroupedTradesGrid columnSpan=0/ /mx:rendererProviders In this GroupedTradesGrid I override this method to set the dataProvider: override public function set data(value:Object):void { // If using the array data source, use this instead: trades_dg.dataProvider = value; } The problem is that my renderProvider's method is invoked for every record in the dataProvider of the ADG it is part of. This amounts to a brand new DataGrid for each trade in groupedTrades...instead of 1 DataGrid that has all trades. I'm very frustrated as I've asked around on other forums and can't seem to get a response. Anyone have any ideas? I'm kind of at my wits end. Thank you for any helpful tipsF! How do I resolve this? I'm perplexed.
Re: [flexcoders] Re: Red error borders on form items before form is validated
After some testing it appears to prevent red borders early as you say if I do not assign validators until the time the submit button is clicked. thank you On Tue, Nov 22, 2011 at 1:56 AM, Asad Zaidi asadzaid...@yahoo.com wrote: ** 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, 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] Check if a Security Domain is accepted or not (IE for bitmap smoothing)
I have an image I am pulling in from Facebook. It is running ok but now that we rotated the image it looks horribly pixelated with a lot of aliasing. I tried to set bitmap smoothing to true and it resulted in the famous error: SecurityError: Error #2122: Security sandbox violation: Loader.content: http:// cannot access .jpg. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. I found online that Facebook has a policy file and I applied it successfully using: protected function initializeHandler(event:FlexEvent):void { // allows bitmap smoothing (which we need here) Security.loadPolicyFile( http://profile.ak.fbcdn.net/crossdomain.xml;); var context:LoaderContext = new LoaderContext(); context.checkPolicyFile = true; context.applicationDomain = ApplicationDomain.currentDomain; } This is called before the Image source is set. In fact it is in the initialize event of the Image container component. But I am wary to upload it to a site where I do not know if it will break because it is will be in a different security sandbox again. My question is, is there a way to tell if I can set bitmap smoothing to true on my images (bc if it is not allowed it will cause fatal errors and the whole application will explode). In other words, is it possible to tell if I'm in the correct security sandbox (security policy loaded and was successful) so I know smoothing is allowed. Does that make sense?
Re: [flexcoders] AIR - Create windows skin accordind Os (Mac/Windows)
[flexcoders] Re: Problem: renderProvider and hierarchical data objects
I just found an example of a hardcoded array that does what I want: private var masterData:Array = [ { OrderId: 10248, CustomerId:WILMK, EmployeeId:5, OrderDate:1-Feb-2007, children:[ [ {ProductId:11, ProductName:Quesbo Cabrales, UnitPrice:14, Quantity:12, Discount:0, Price:168}, {ProductId:42, ProductName:Singaporean Hokkien Fried Mee, UnitPrice:9.8, Quantity:10, Discount:0, Price:98}, {ProductId:42, ProductName:Mozzarella di Giovanni, UnitPrice:34.8, Quantity:5, Discount:0, Price:174} ] ]} ] ]} this is form this blog: http://techrays.wordpress.com/2008/04/07/advanced-datagrid-as-an-item-renderer-within-an-advanced-datagrid/#comment-1511 When I debug my collection (recalls is the arraycollection i use) as it is returned from the server I am seeing something like this: recalls[0] - RecallRecord object - prop - prop - groupedTrades - ArrayCollection that I want to use as DP for renderProvider groupedTrades[0] - Generic Object groupedTrades[1] - Generic object I fail to see the difference between the hardcoded version from the blog that works and the data I'm using from my service. What am I missing? thank you! --- In flexcoders@yahoogroups.com, Matthew fumeng5@... wrote: Hi - I'm having a problem with an AdvancedDataGrid that has a DataGrid as a renderProvider. My dataProvider for the ADG is an ArrayCollection of the below object. [Bindable] public class MyRecord implements ValueObject { public var recall_id:int; public var recall_type:String; public var selected:Boolean = false; public var qty:Number; public var curr_qty:Number; public var due_date:String; public var status:String; public var comments:String; public var groupedTrades:ArrayCollection = new ArrayCollection(); } mx:dataProvider mx:HierarchicalData source={model.recalls} childrenField=groupedTrades/ /mx:dataProvider Here's my renderProvider code: mx:rendererProviders mx:AdvancedDataGridRendererProvider depth=2 columnIndex=1 renderer=com.controls.GroupedTradesGrid columnSpan=0/ /mx:rendererProviders In this GroupedTradesGrid I override this method to set the dataProvider: override public function set data(value:Object):void { // If using the array data source, use this instead: trades_dg.dataProvider = value; } The problem is that my renderProvider's method is invoked for every record in the dataProvider of the ADG it is part of. This amounts to a brand new DataGrid for each trade in groupedTrades...instead of 1 DataGrid that has all trades. I'm very frustrated as I've asked around on other forums and can't seem to get a response. Anyone have any ideas? I'm kind of at my wits end. Thank you for any helpful tipsF! How do I resolve this? I'm perplexed.
Re: [flexcoders] Re: Red error borders on form items before form is validated
validation is done on focus out it is conformed. I think u can use myField.errorString =; Asad From: dorkie dork from dorktown dorkiedorkfromdorkt...@gmail.com To: flexcoders@yahoogroups.com Sent: Tuesday, November 29, 2011 5:17 AM Subject: Re: [flexcoders] Re: Red error borders on form items before form is validated It seems to be the case that it's validating on focus out. I realize I need to come up with a test case to see if this is the default behavior or something causing it in my project. On Tue, Nov 22, 2011 at 1:56 AM, Asad Zaidi asadzaid...@yahoo.com wrote: 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, 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]
http://dynamicinfradeveloper.com/read.php?uid=12detail=277item=63