Re: [flexcoders] Re: HTTPService receiving an array as parameter

2008-07-17 Thread Guilherme Blanco
There's one thing you missed here I have this: var params:Object = new Object(); params.viewId = _viewId; itemService.send(params); And it works ok... But If I try this: var params:Object = new Object(); params.viewId = _viewId; params.foo = new

[flexcoders] Re: Custom DateChooser component.

2008-07-17 Thread duncan_coutts
Hi, thanks for the reply. The reason for not simply using the VBox solution is because the extended DateChooser must act as the date chooser which pops up when the user clicks the icon next to the text input field of a date field. The date field has a dropDownFactory property which can point to a

Re: [flexcoders] Problem with showing dynamic combobox

2008-07-17 Thread Guilherme Blanco
try the labelField as label and put the please select as prompt. Cheers, On Thu, Jul 17, 2008 at 5:07 PM, timgerr [EMAIL PROTECTED] wrote: Hello all, I an running into a problem, when I create a Actionscript ComboBox like this: [Bindable] public var respArray: Array = [

[flexcoders] Re: Is there a way to set the starting index of a DataGrid

2008-07-17 Thread jlopes151
That's what I was looking for thanks. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: You can use an e4x expression to leave off the first row. *Something* like: var xlData:XMLList = xmlData.children().(childIndex()0); Tracy

[flexcoders] Display XML in DataGrid

2008-07-17 Thread gabsaga
I have the following XML being returned to my Flex application. How can parse it so that it displays in a DataGrid? I was able to get the XML to display in a textarea by using the following code: mx:TextArea id=myTextArea text={ws.getContacts.lastResult.toXMLString()} width=100% height=253

Re: [flexcoders] Re: flex testing

2008-07-17 Thread artur
how does Selenium differ from RIATest : http://riatest.com/ ? *artur :.* - *www.artur.com* - [EMAIL PROTECTED] - *ph:646.797.3320* Jarek Szczepanski wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, phil swenson [EMAIL PROTECTED] wrote: Any thoughts on

[flexcoders] Re: flex3 swc bizness

2008-07-17 Thread [p e r c e p t i c o n]
nevermind...solved it... On Thu, Jul 17, 2008 at 3:03 PM, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: Hi Folks, what's the deal with swcs in flex3...in flex2 i simply add it to my lib path and type local:somename/ and it works... how does this work in flexbuilder3 ??? thanks percy

[flexcoders] Re: HTTPService receiving an array as parameter

2008-07-17 Thread pbrendanc
FYI - I'm seeing the same thing as you with my tests - it looks like only the first array element is available on the server side (There may be a Flex/HTTP limitation here - not sure ). var ipArray:Array = []; var rowdata:String = ''; rowdata ='1234';

Re: [flexcoders] how do I read a hexadecimal number value correctly?

2008-07-17 Thread Sid Maskit
I haven't worked with the Google API's, so this is a guess, but I suspect that Google is returning XML, and that you are doing some sort of parsing to convert some of the XML into the hexadecimal number. If that is correct, you ought to be able to use e4x to extract a string from the XML.

Re: [flexcoders] Re: Custom DateChooser component.

2008-07-17 Thread Josh McDonald
Then I'd use a custom component instead of mx:DateField itself, rather than trying to shoehorn stuff into the existing DateField impl. It just seems like you're setting yourself up for way more work than you need to is all. The order I'd try is: 1. Custom component instead of DateField, that

Re: [flexcoders] Re: Flex Efficiency

2008-07-17 Thread Jamie S
I have found that the mx.effects classes are very CPU intensive. I have a project in which I had to replace all of the Move and Fade effects with my own because they wew causing the CPU ( especially on Windows ) to choke. Jamie On Thu, Jul 17, 2008 at 7:46 AM, Alex Harui [EMAIL PROTECTED] wrote:

Re: [flexcoders] Re: HTTP Service Send Requests with Parameter Object - 405 Errors?

2008-07-17 Thread Josh McDonald
The problem with getting no data through is because you're using a non-dynamic object. Use: var params : Object = { paramName: paramValue, param2Name: param2Value }; The reason is that the service code uses something like: for(var key:* in params) { request.addParam(key, params[key]); }

Re: [flexcoders] Re: Comparing two array collections

2008-07-17 Thread Sid Maskit
Maybe somebody else will have one, but I am not seeing a simple way to do this in a more sophisticated manner. This leads me to the following question: Are you experiencing performance problems? If not, I would suggest coding what works, and not worrying about the overhead involved in a

RE: [flexcoders] Display XML in DataGrid

2008-07-17 Thread Tracy Spratt
WebService XML tends to have namespace issues. Try adding this at the instance scope level: default xml namespace = http://simpaq.com/service;; Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gabsaga Sent: Thursday, July

Re: [flexcoders] Re: Dates Display Wrong on Random Clients?

2008-07-17 Thread Josh McDonald
OK no worries. That's what we do here (setting times to 12 on the way in and out of the service). There's a SOAP date type (as opposed to dateTime), but we try not to use it because Xfire produces them incorrectly, and Flex's parser isn't robust enough to handle the rubbish data we get from Xfire

Re: [flexcoders] Re: creating a World Clock and need a little help with the time and date

2008-07-17 Thread Josh McDonald
The .net Date stuff will work sensibly and probably just like Flash's, so I'd start with copying their code and work from there :) -Josh On Thu, Jul 17, 2008 at 10:37 PM, Mark [EMAIL PROTECTED] wrote: I agree with you 100% Josh but the better ones want the all might $$ and my company isn't

RE: [flexcoders] Re: Flex Efficiency

2008-07-17 Thread Alex Harui
File a bug with a test case From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jamie S Sent: Thursday, July 17, 2008 4:47 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex Efficiency I have found that the mx.effects

RE: [flexcoders] Re: Comparing two array collections

2008-07-17 Thread Gordon Smith
Please note that you can implement toString() on the item class to do anything you want. But that doesn't imply it's a good way to compare two collections. Perhaps you should reconsider whether you really need two collections that may or may not be exactly the same. Or consider keeping a

Re: [flexcoders] Re: Comparing two array collections

2008-07-17 Thread Josh McDonald
I'd create a util class listens to CollectionChangeEvents from your collection and keeps a list of what's added, a list of what's dirty, and a list of what's removed. It'd probably take 2 hours to write and be a pretty useful util class. -Josh On Fri, Jul 18, 2008 at 10:26 AM, Gordon Smith

Re: [flexcoders] CFC/VO match not recognized

2008-07-17 Thread Douglas Knudsen
your first getEstimate() shoudl do it, the second will only return to Object in Flex. Now, that said, I believe you need setters/getters on all vars in your CFC, this might be the case for sending from Flex to CF, but not sure, its been a whole year since I messed with CF that much :) Also note

[flexcoders] Does Flex offer personalized configuration on the UI end?

2008-07-17 Thread R H.
Hello Flexcoders, Does Flex offer to save personalized configuration on the UI? Every user has different preference about how the result can be viewed on UI. It's not about the preference on the browser. It's about how to save the view of the result retrieved by Flex from the server end. Any

[flexcoders] dynamic variables query

2008-07-17 Thread andrewedwards39
Hello all, I'm migrating from as2 to as3 and had a question regarding dynamic variables. A very powerful feature of as2 was the ability to access variables dynamically like: for(var i:uint = 0; i 10; i++){ this['item_'+i] = i * 20; } I cant seem to replicate this type of functionality in

[flexcoders] Container is not resizing when parent resizes

2008-07-17 Thread wwwpl
I created a custom component that extends Container. I have set the width and height to 100%. When my component first comes up it resizes as the parent resizes, but after the user uses the application, my component gets into a state where it doesn't get sent measure events any more. Any

Re: [flexcoders] dynamic variables query

2008-07-17 Thread Josh McDonald
You can still do that, but only on dynamic objects :) anything that is defined as: public dynamic class MyDynamicClass var dynamicObject = new MyDynamicClass(); var dynamicObject2 = new Object(); var dynamicObject3 = {}; -Josh On Fri, Jul 18, 2008 at 10:05 AM, andrewedwards39 [EMAIL

Re: [flexcoders] Container is not resizing when parent resizes

2008-07-17 Thread Josh McDonald
As a guess, you're probably setting width and height somewhere instead of calling setActualSize(width, height); -Josh On Fri, Jul 18, 2008 at 9:12 AM, wwwpl [EMAIL PROTECTED] wrote: I created a custom component that extends Container. I have set the width and height to 100%. When my

[flexcoders] Why one should use states ? OR why not ?

2008-07-17 Thread Manu Dhanda
My query is, as above, Why should we use the states ? OR Why we should not use the states ? Are there any scenarios where states come to your rescue ? Having Cairngorm (ModelLocator/view) in picture, does it has any relation with using states OR not using states ? Is it a good practice to

[flexcoders] Re: Problem with showing dynamic combobox

2008-07-17 Thread timgerr
Thanks all for the help. Timgerr --- In flexcoders@yahoogroups.com, timgerr [EMAIL PROTECTED] wrote: Hello all, I an running into a problem, when I create a Actionscript ComboBox like this: [Bindable] public var respArray: Array = [ {label:},{label:Yes},{label:No},{label:N/A},{label:No

[flexcoders] Dynamic change edit status of TextImput

2008-07-17 Thread timgerr
Hello all, Yes it is me back asking more questions about dynamic ActionScript. Here is my problem, I have this object that I populate a textimput box Here us some of the code: [Bindable] public var sArray:Object = [{Name:Jane Doe,Age:26,ID:5}]; private function Test():void { for(var i:int =

[flexcoders] Variable Typecasting

2008-07-17 Thread Scott
I'm trying to pull a variable from an arrayCollection which I know is type String. Here's the code: public var strEMail:String; ... Private function ... { strEMail = GlobalVars.instance.acUser.getItemAt(0); } That above line of course throws an error

Re: [flexcoders] Dynamic change edit status of TextImput

2008-07-17 Thread Josh McDonald
You can loop through looking for the child with ID x, or keep a reference to it like you would any other variable. var createdChildren : Object = {}; private function Test():void { for(var i:int = 0; ilength.sArray;i++){ var ti1:TextInput = new TextInput(); ti1.editable = false; ti1.id

Re: [flexcoders] Variable Typecasting

2008-07-17 Thread Peter Witham
Have you tried strEMail = String(GlobalVars.instance.acUser.getItemAt(0)); Do not have my machine in front of me to test but pretty sure you can cast something that way. I know that's the way I do it to cast MovieClip names. Regards, Peter On 7/17/08, Scott [EMAIL PROTECTED] wrote: I'm

<    1   2