[flexcoders] HTTP Cookie via ActionScript

2007-10-25 Thread Sandeep Malik
Guys, We're using flex 3 beta 2 for some project and we're seeing this message: Error #2096: The HTTP request header Cookie cannot be set via ActionScript. ArgumentError: Error #2096: The HTTP request header Cookie cannot be set via ActionScript. at flash.net::URLStream/load() at

[flexcoders] Re: Freeze Flex Application

2007-10-01 Thread Sandeep Malik
While I believe stopping/halting system for some processing might not be a good solution, nevertheless, there's a 'mysterious' method in System class of Flex 3. System.pause() and System.resume(). (There're others like System.gc() etc). These methods, I think, have been newly added however,

[flexcoders] Re: How to verify a URL before loading it OR how to catch IOException

2007-09-26 Thread Sandeep Malik
Hi, The reason this approach will not work is that the error you are getting is an asynchronous error, i.e. something that happens in a different code path (when you response return from server). 'try- catch' can only protected in the current execution stack. A simple look up at the

[flexcoders] Re: Flex and Server-Side Java classes

2007-09-26 Thread Sandeep Malik
If you're just interested in making remote object calls, I guess OpenAMF is a very viable option. --- In flexcoders@yahoogroups.com, Anas Mughal [EMAIL PROTECTED] wrote: Check out WebORB. There are also some open source alternatives: Granite Red5 Flourine (.NET) PHPAMF (PHP) --

[flexcoders] Re: own metadata tags

2007-09-23 Thread Sandeep Malik
Yes, you can define custom metadata tags. You will need to add that tag in the flex-config.xml file (where 'Bindable' etc tags are added). This will let compiler know that it needs to keeps these tags in compilation. You can then access these tags through describeType() method. Regards, Sandeep

[flexcoders] Re: Real size of components

2007-09-21 Thread Sandeep Malik
I guess you should use getExplicitOrMeasuredWidth() and getExplicitOrMeasuredHeight(). Regards, Sandeep --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: measuredWidth and measuredHeight I think. --- In flexcoders@yahoogroups.com, Daniel danielterraza@ wrote:

[flexcoders] Re: Sending custom clases (value objects) to remote services

2007-09-21 Thread Sandeep Malik
Unfortunately not one that I know of. Generally to get a typed object on the server side, you will need a Flash Remoting Server sort of stuff (basically something that can deserialize that format in which the data was sent. So, if services like Amazon, Google don't have that running, it wouldn't

[flexcoders] Re: Can I write to a file from FLEX Application

2007-09-21 Thread Sandeep Malik
Well, you can store data locally on file (in form of Local Shared Objects) and later retrieve it from the file, but this file is only available to the swfs running in the same security sandbox (which means yours and any other that gets delivered from the same domain). Regards, Sandeep --- In

[flexcoders] Re: Sending custom clases (value objects) to remote services

2007-09-20 Thread Sandeep Malik
Hi, I think, you cant just send a typed object (a value object) like that. You will need services like RemoteObject to do that. The basic problem is that for a typed object, Flex will first serialize it in byte array (in AMF format) and then deserialize it back on the server side. If you will

[flexcoders] Re: Separator in ComboBox item?

2007-09-20 Thread Sandeep Malik
May be you can use itemRenderer property in ComboBox and use a VBox as item. In the VBox, put the label and below it put an HRule (a separator). OR just use a Label as item and in updateDisplayList(), draw a line beneath the text. Regards, Sandeep --- In flexcoders@yahoogroups.com,

[flexcoders] Re: Anomalies with ViewStacks

2007-09-20 Thread Sandeep Malik
Look at this: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg63576.html BTW, this bug has been fixed in flex 3.0 Regards, Sandeep --- In flexcoders@yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: Just wondering if anyone else has experienced weird behavior with

[flexcoders] Re: [URGENT] Properties

2007-09-20 Thread Sandeep Malik
Yup, just use delete temp.test; Sandeep --- In flexcoders@yahoogroups.com, André F. F. [EMAIL PROTECTED] wrote: Hello all. in this code: var temp:Object = new Object(); temp.test = Test; if(temp.hasOwnProperty(test)) trace(YES); When i create a property that way, Can I remove

[flexcoders] Re: Removing children when they have no id

2007-09-18 Thread Sandeep Malik
Cant you use removeAllChildren()? Regards, Sandeep --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I'd keep an array of labels. But you can search as well by testing if getChildAt(i) is Label From:

[flexcoders] Help with AdvancedDatagrid

2007-09-09 Thread Sandeep Malik
Guys, We have an issue. We're using a HierarchicalData as dataProvider and we have a case where in a user can add a child node to a parent node. What we want is as follows: A user selects a parent node in data grid (i.e. that particular row appears selected), and then he adds a new node under

[flexcoders] Re: Inverted charts

2007-06-03 Thread Sandeep Malik
of your chart with a series above and below it... is that correct? Brendan On 6/1/07, Sandeep Malik [EMAIL PROTECTED] wrote: I have got a question for charting gurus: I want to plot two line series which use same horizontal axis but one gets plotted above it (in +ve y axis

[flexcoders] Inverted charts

2007-06-01 Thread Sandeep Malik
I have got a question for charting gurus: I want to plot two line series which use same horizontal axis but one gets plotted above it (in +ve y axis) and other gets plotted below it (-ve y direction). Any ideas how to do this? Regards, Sandeep

[flexcoders] Re: Weird behavior with URLStream

2007-05-30 Thread Sandeep Malik
Resolved the issue. The browser is the culprit! It seems HTTP/1.1 protocol suggets the browsers should not allow more than two connections to the same server from same client! We changed some settings and it works like charm! Regards, Sandeep --- In flexcoders@yahoogroups.com, Sandeep Malik

[flexcoders] Re: Showing item roll over color in a data grid manually

2007-05-29 Thread Sandeep Malik
mx:PieSeries labelPosition=callout field=Gold labelFunction=displayGold/ /mx:series /mx:PieChart mx:DataGrid id =dg dataProvider={medalsAC} x=441 y=323/ /mx:Application Regards PS å On 5/26/07, Sandeep Malik [EMAIL PROTECTED] wrote: Guys, We

[flexcoders] Re: Superimposing chart.

2007-05-29 Thread Sandeep Malik
Not sure, but try to use one of the following: 1. Use annotationElements of area chart and put line series as annotation element. 2. Use backgroundElements of line series and put area chart as background element. PS: Suggestion 2 might interfere with the grid lines of line series. Regards,

[flexcoders] Weird behavior with URLStream

2007-05-29 Thread Sandeep Malik
Guys, We're seeing something weird. We're streaming a lot of data from server. This data comes in three chunks, each of size ~ 4 M. We fire all the three requests simultaneously with three different URLStreams. However, it seems like Flash Player only loads at max 2 requests at a given point

[flexcoders] Showing item roll over color in a data grid manually

2007-05-28 Thread Sandeep Malik
Guys, We are having a data grid and a pie chart which show the same data. What we want is when user does a mouse over (or item roll over) over a wedge in pie chart, then the corresponding row in data grid should also show a itemRollOver color and vice versa. Any suggestions will be

[flexcoders] Re: Binding a DataGrid to an Array

2007-01-17 Thread Sandeep Malik
Not sure but this may help: Try to execute data bindings manually. // say at this point the array has been updated, then: var dupArray : Array = origArray as Array; /*basically create a new reference*/ gird.dataProvider = dupArray; This should rebind the data in the grid. OR you can just do

[flexcoders] More control on datagrid

2006-12-15 Thread Sandeep Malik
Hi Guys, Is there a way to get more control on a datagrid? We need to paint certain cells with different color and do some other similar stuff. I am not able to find any method which gives me a control on a cell of a datagrid. I know since DataGrid extends from a ListBase, there might just

[flexcoders] How to draw a circle at a point in a line chart?

2006-12-12 Thread Sandeep Malik
We have an issue. We're drawing a line chart and at some particular point on the line chart, we want to draw a circle. Does anyone know how to do this? Any help is appreciated. Thanks and Regards, Sandeep

[flexcoders] How to get client IP address in flex?

2006-08-30 Thread Sandeep Malik
Hi Guys, Is there a way to find client IP (on which the swf file is running) through flex or flash? Cheers, Sandeep -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com

[flexcoders] Re: How to get client IP address in flex?

2006-08-30 Thread Sandeep Malik
By -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep Malik Sent: Wednesday, August 30, 2006 4:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to get client IP address in flex? Hi Guys, Is there a way to find

[flexcoders] Re: How to get client IP address in flex?

2006-08-30 Thread Sandeep Malik
By -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep Malik Sent: Wednesday, August 30, 2006 4:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to get client IP address in flex? Hi Guys, Is there a way to find client IP (on which

[flexcoders] Re: How to get client IP address in flex?

2006-08-30 Thread Sandeep Malik
Message- From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Sandeep Malik Sent: Wednesday, August 30, 2006 4:27 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders

[flexcoders] Re: How to get client IP address in flex?

2006-08-30 Thread Sandeep Malik
(this example uses query string params): http://livedocs.macromedia.com/flex/2/docs/1005.html hth, matt horn flex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep Malik Sent: Wednesday, August 30, 2006 3:02 PM

[flexcoders] Getting a Security Error Accessing URL on accessing a web service

2006-04-05 Thread Sandeep Malik
Hi All, I am using Flex 2.0 beta 1 framework (no Data Services) to invoke a web service deployed on JBoss 4.0.3. When I connect to web service I get an alert saying that security error accessing url. Some details: 1. I have written a crossdomain.xml as well with allowed domain as 127.0.0.1 2.