[flexcoders] Re: Daylight Savings Time issues from Flex to ColdFusion 8.01

2009-10-25 Thread maurice_n6n
Do you have a reference for that bug, or a summary of what the problems are?

--- In flexcoders@yahoogroups.com, Gregor Kiddie gkid...@... wrote:

 Join the club, we have T-Shirts (except it's passing Date from Flex to
 Java).
 
  
 
 The last communication we had with Adobe on the issue is that Flash
 Player on Windows doesn't handle Daylight savings times properly (at
 least in the UK, and a bunch of other regions in the bug), and it
 appears the same issue applies to AIR.
 
  
 
 What I'd love to see, is Adobe allowing us to turn off the daylight
 savings code completely, and let us handle it ourselves!
 
  
 
 Gk.
 
 Gregor Kiddie
 Senior Developer
 INPS
 
 Tel:   01382 564343
 
 Registered address: The Bread Factory, 1a Broughton Street, London SW8
 3QJ
 
 Registered Number: 1788577
 
 Registered in the UK
 
 Visit our Internet Web site at www.inps.co.uk
 blocked::http://www.inps.co.uk/ 
 
 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it
 by anyone else is not authorised. Any views or opinions presented are
 solely those of the author and do not necessarily represent those of
 INPS or any of its affiliates. If you are not the intended recipient
 please contact is.helpd...@...
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of gareth_arch
 Sent: 22 October 2009 15:13
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Daylight Savings Time issues from Flex to
 ColdFusion 8.01
 
  
 
   
 
 I am having some issues with DST when transferring a date from Flex to
 ColdFusion.





[flexcoders] Re: Question?? Best method for plotting a Moving Average

2009-10-25 Thread jc_bad28
I'll vouche for ta-lib as well.  I used it in an excel trading/chart app I made 
years ago.  

My approach for the ticker data array would be to use a for..loop instead of 
hard coding.  That way you could adjust a few paramaters.

When it comes to technical indicators, I prefer making the calcs on the server 
side and then having the data available to be plotted 
passed/requested/whatever. The reason being I can use that data in whatever 
client I want versus trying to learn different ways of doing the same thing in 
different clients.

Another approach you might want to look at is using a charting library that has 
built in functions for the traditional indicators.  I've used ChartDirector 
from ASE in multiple clients and multiple platforms.  http://www.advsofteng.com/

You could write up your charting section in whatever and then bring it into 
flex as an image. ChartDirector is also open enough that you can program custom 
indicators into as well which is something I've done quite a few times and is 
what really sold me on the product.

--- In flexcoders@yahoogroups.com, Jake Churchill reyna...@... wrote:

 We do the same thing.  See this screen shot:
 
 http://www.reynacho.com/wp-content/uploads/2009/05/cse-charting.jpg
 
 There's a lot more than just a moving average and bollinger bands there but
 those are parts of it.  In order to get this data, we first tapped into a
 feed which you have to pay good money for.  I believe we are using NxCore
 which I think is a DTN product.  You might look into that but I know there
 are others as well.
 
 For the data, we pass data into a java library called ta-lib:
 http://ta-lib.org/
 
 It has methods for moving averages, deviations, etc.  We found that the
 calculations for our app were simply too intense to be done on the client.
 But, we have 5-7 years worth of data that we are looking at for calculations
 so you might not run into the same bottleneck we had
 
 -Jake
 
 On Fri, Oct 23, 2009 at 11:49 AM, cjsteury2 cra...@... wrote:
 
 
 
 
 
  answer.net SQL database through Web services call to Flex.../answer...
  would like to create a new Array based on existing Array of Ticker data..
 
  So I need to create a new Array Collection then loop through and add the
  date from the Tickers Array Collection along with the Moving 20 day average
  of the Close Price... THEN ( I have not mentioned this ) What I REALLY want
  is a Standard Deviation Calcuation against the Moving Average to plot Upper
  and Lower Bollinger Bands
 
  Here's my initial guesstimate at building the new 20 Day Moving Average
  Array Collection from the Existing Array_Tickers ArrayCollection
 
  [Bindable] public var Array_BBands:ArrayCollection; (new mov avg Ac)
 
  public function bld_Array_BBands():void
  {
  Array_BBands = new ArrayCollection;
  for (var i:int=0;iArray_Tickers.length;i++) \\ loop through existing
  Array_Tickers
  {
  Array_BBands.addItem(Array_Tickers.getItemat(i).date);
  if (i=20) \\ start at 20th row - as Moving Avg is 20 day
  {
  var mavg_tick:Int = 0; \\ create variable to hold Moving Average
  mvag_tick = Array_Tickers.getItemAt(i).close.valueof(); \\ need to pick up
  the date of the Array_Tickers
  mvag_tick += Array_Tickers.getItemAt(i-1).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-2).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-3).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-4).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-5).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-6).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-7).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-8).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-9).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-10).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-11).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-12).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-13).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-14).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-15).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-16).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-17).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-18).close.valueof();
  mvag_tick += Array_Tickers.getItemAt(i-19).close.valueof();
  var mavg:Int = (mavg_tick/20);
  Array_BBands.addItem(mavg);
  }
  }
 
  }
 
  If that works ( and I have no idea if it will ) then I need to get the
  Standard Deviation calcualted somehow. Because the Formula for what I really
  want as previously stated is The Bollinger Bands formular or (MA+K*sigma)
  Moving Average (20 period) + or - depending if it's upper or lower (2 *
  sigma) Sigma is the Standard Deviation, and I am fairly certain that
  actionscript does not calculate the Standard Deviation, so I'll need to do
  that somehow and I have no idea how to do that...
 
  This is a lot for me, and I don't 

[flexcoders] Flex Builder with Windows 7

2009-10-25 Thread Christophe
Hello, 

Does Flex Builder 3 is working fine with Windows 7 ? 

Thank you,
Christophe, 



Re: [flexcoders] Can't bind XMLListCollection to Datagrid

2009-10-25 Thread Angelo Anolin
Could you try this one in your resultHandler



private function resultHandler( event:ResultEven t):void
{
var xmlResult:XML = XML(event. result);
var Employees:XMLListCollection = new XMLListCollection( xmlResult.table( ));
trace(Employees) ;
}







From: jc_bad28 jc_ba...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Sunday, 25 October, 2009 13:30:24
Subject: [flexcoders] Can't bind XMLListCollection to Datagrid

  
I changed my webservice call to return e4x but I can't get the 
XMLListCollection to bind to the datagrid.

Here is the pertinent AS code:

[Bindable]
private var Employees:XMLListCo llection;

private function submit():void
{
EmployeeWS.GetAllEm ployees() ;
}

private function resultHandler( event:ResultEven t):void
{ 
var xmlResult:XMLList =  new XMLList(event. result);
var Employees:XMLListCo llection = new XMLListCollection( xmlResult. children( 
));
trace(Employees) ; 
}

Here is how the trace returns the XMLListCollection data:

datas6:Employee xmlns:datas6= DM xmlns:soapenv= http://schemas. 
xmlsoap.org/ soap/envelope/
datas6:EmployeeID 3/datas6: EmployeeID
datas6:EmployeeLas tNameBadham /datas6:Employee LastName
datas6:EmployeeFir stNameJohn /datas6:Employee FirstName
datas6:EmployeeMid dleNameC. /datas6: EmployeeMiddleNa me
datas6:PositionTit leData Manager/datas6: PositionTitle
/datas6:Employee
datas6:Employee xmlns:datas6= DM xmlns:soapenv= http://schemas. 
xmlsoap.org/ soap/envelope/
datas6:EmployeeID 4/datas6: EmployeeID
datas6:EmployeeLas tNameBui /datas6:Employee LastName
datas6:EmployeeFir stNameTai /datas6:Employee FirstName
datas6:EmployeeMid dleNameTan /datas6:Employee MiddleName
datas6:PositionTit leInserter Operator/datas6: PositionTitle
/datas6:Employee

Here is the datagrid code:

mx:DataGrid id=myGrid dataProvider= {Employees}  height=272 y=10 
width=603 x=167 borderStyle= outset
mx:columns
mx:DataGridColumn headerText= Last Name dataField=Employee LastName /
mx:DataGridColumn headerText= First Name dataField=Employee FirstName /
mx:DataGridColumn headerText= Position dataField=Position Title/
/mx:columns
/mx:DataGrid

I've been spinning my wheels with this for 2 weeks now.  It's probably 
something simple, but I can't figure it out after googling non-stop every damn 
day.  Any help is greatly appreciated.


   


  

[flexcoders] Amazing Flex/LCDS/Java/Eclipse/Maven2 step-by-step guide

2009-10-25 Thread jeffreyr6915
I recently came across the best Flex/LCDS/Java/Maven2 guide that I have ever 
seen before (http://www.flexlcds.com). I have been looking for something like 
this for a very long time. If you are interested in how all the concepts come 
together (frontend, middleware, backend, build/deploy), please check it out. I 
know that it will help you as much as it has helped me!



[flexcoders] Re: Flex Builder with Windows 7

2009-10-25 Thread ag_rcuren
I am running a Windows 7 release candidate and it is working fine for me. Not 
sure about the full version.

--- In flexcoders@yahoogroups.com, Christophe christophe_jacque...@... 
wrote:

 Hello, 
 
 Does Flex Builder 3 is working fine with Windows 7 ? 
 
 Thank you,
 Christophe,





[flexcoders] Re: Flex Builder with Windows 7

2009-10-25 Thread Alex
You'll need to use at java 1.6 update 6 under Windows 7 but other than that it 
should all be smooth sailing.

Alex

--- In flexcoders@yahoogroups.com, Christophe christophe_jacque...@... 
wrote:

 Hello, 
 
 Does Flex Builder 3 is working fine with Windows 7 ? 
 
 Thank you,
 Christophe,





[flexcoders] Detect if any of the Items on a List are Selected - thought it would be easier.

2009-10-25 Thread steveb805

The only property I could find, from the Flex docs, that tells you whether your 
List control has anything selected is: isItemSelected().

And this takes a parameter that refers to a specific item.  So before my Delete 
button handler, I check if any item is selected with the following:

private function deleteHandler() {

var bDoesNotHasFocus: Boolean = true;
var len:Number = projectList.dataProvider.length;

for (var i:int = 0; i = len - 1; i++) {
  if (projectList.isItemSelected(projectList.dataProvider[i])) 
  {
bDoesNotHasFocus = false;
  }
}
if (bDoesNotHasFocus)
  return;

  // the code to delete

}

Is there a better way, anyone?
Thanks,
Steve



[flexcoders] How to access accordion to datagrid...

2009-10-25 Thread siva
Hai all,

In data grid component, i create various xml files...In accrodion component i 
click particular label ,at that time onely one xml file willbe loaded on 
datagrid component..so,plz reply on how to intract on accordion to datagrid



Re: [flexcoders] Detect if any of the Items on a List are Selected - thought it would be easier.

2009-10-25 Thread Fotis Chatzinikos
you can use the list's properties (arrays of indices, or items):

selectedItems
selectedIndices


On Sun, Oct 25, 2009 at 7:19 PM, steveb805 quantumcheese...@gmail.comwrote:




 The only property I could find, from the Flex docs, that tells you whether
 your List control has anything selected is: isItemSelected().

 And this takes a parameter that refers to a specific item. So before my
 Delete button handler, I check if any item is selected with the following:

 private function deleteHandler() {

 var bDoesNotHasFocus: Boolean = true;
 var len:Number = projectList.dataProvider.length;

 for (var i:int = 0; i = len - 1; i++) {
 if (projectList.isItemSelected(projectList.dataProvider[i]))
 {
 bDoesNotHasFocus = false;
 }
 }
 if (bDoesNotHasFocus)
 return;

 // the code to delete

 }

 Is there a better way, anyone?
 Thanks,
 Steve

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] [Module][Flash10/9 integration] Can i load a flash 10 module into app build on 9

2009-10-25 Thread fotis.chatzinikos
Hello all,

Has anybody tried loading a flash 10 module, into an application build using 
version 9? Is it possible?

Thanks,
Fotis

PS: In case anybody noticed, I spammed the list with a message in Greek.
It was sent here by mistake, I am sorry.



RE: [SPAM] Re: [flexcoders] Can't bind XMLListCollection to Datagrid

2009-10-25 Thread Tracy Spratt
You have a namespace issue.

 

You might be able to use the namespace in the dataField, like this:

dataField=datas6::Employee LastName, but I am not sure that will work.

 

But I would declare a namespace and use that.  I don't have any code handy,
but search for namespace and you will find examples and more info.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Angelo Anolin
Sent: Sunday, October 25, 2009 11:27 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] Re: [flexcoders] Can't bind XMLListCollection to Datagrid

 

  

Could you try this one in your resultHandler



private function resultHandler( event:ResultEven t):void
{
var xmlResult:XML = XML(event. result);
var Employees:XMLListCollection = new XMLListCollection( xmlResult.table(
));
trace(Employees) ;
}



 

  _  

From: jc_bad28 jc_ba...@yahoo.com
To: flexcoders@yahoogroups.com
Sent: Sunday, 25 October, 2009 13:30:24
Subject: [flexcoders] Can't bind XMLListCollection to Datagrid

  

I changed my webservice call to return e4x but I can't get the
XMLListCollection to bind to the datagrid.

Here is the pertinent AS code:

[Bindable]
private var Employees:XMLListCo llection;

private function submit():void
{
EmployeeWS.GetAllEm ployees() ;
}

private function resultHandler( event:ResultEven t):void
{ 
var xmlResult:XMLList = new XMLList(event. result);
var Employees:XMLListCo llection = new XMLListCollection( xmlResult.
children( ));
trace(Employees) ; 
}

Here is how the trace returns the XMLListCollection data:

datas6:Employee xmlns:datas6= DM xmlns:soapenv= http://schemas.
http://schemas.xmlsoap.org/soap/envelope/  xmlsoap.org/ soap/envelope/
datas6:EmployeeID 3/datas6: EmployeeID
datas6:EmployeeLas tNameBadham /datas6:Employee LastName
datas6:EmployeeFir stNameJohn /datas6:Employee FirstName
datas6:EmployeeMid dleNameC. /datas6: EmployeeMiddleNa me
datas6:PositionTit leData Manager/datas6: PositionTitle
/datas6:Employee
datas6:Employee xmlns:datas6= DM xmlns:soapenv= http://schemas.
http://schemas.xmlsoap.org/soap/envelope/  xmlsoap.org/ soap/envelope/
datas6:EmployeeID 4/datas6: EmployeeID
datas6:EmployeeLas tNameBui /datas6:Employee LastName
datas6:EmployeeFir stNameTai /datas6:Employee FirstName
datas6:EmployeeMid dleNameTan /datas6:Employee MiddleName
datas6:PositionTit leInserter Operator/datas6: PositionTitle
/datas6:Employee

Here is the datagrid code:

mx:DataGrid id=myGrid dataProvider= {Employees}  height=272 y=10
width=603 x=167 borderStyle= outset
mx:columns
mx:DataGridColumn headerText= Last Name dataField=Employee LastName /
mx:DataGridColumn headerText= First Name dataField=Employee FirstName
/
mx:DataGridColumn headerText= Position dataField=Position Title/
/mx:columns
/mx:DataGrid

I've been spinning my wheels with this for 2 weeks now. It's probably
something simple, but I can't figure it out after googling non-stop every
damn day. Any help is greatly appreciated.

 





RE: [SPAM] [flexcoders] How to access accordion to datagrid...

2009-10-25 Thread Tracy Spratt
If I understand correctly what you want, you could use the show event of
the accordion child component to load the appropriate data into the
datagrid.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of siva
Sent: Saturday, October 24, 2009 12:13 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] How to access accordion to datagrid...

 

  

Hai all,

In data grid component, i create various xml files...In accrodion component
i click particular label ,at that time onely one xml file willbe loaded on
datagrid component..so,plz reply on how to intract on accordion to
datagrid





RE: [flexcoders] [Module][Flash10/9 integration] Can i load a flash 10 module into app build on 9

2009-10-25 Thread Alex Harui
First SWF loaded sets the API version for all other SWFs.  The module expecting 
FP10 APIs should fail with verify errors.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of fotis.chatzinikos
Sent: Sunday, October 25, 2009 4:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Module][Flash10/9 integration] Can i load a flash 10 
module into app build on 9



Hello all,

Has anybody tried loading a flash 10 module, into an application build using 
version 9? Is it possible?

Thanks,
Fotis

PS: In case anybody noticed, I spammed the list with a message in Greek.
It was sent here by mistake, I am sorry.



RE: [flexcoders] Detect if any of the Items on a List are Selected - thought it would be easier.

2009-10-25 Thread Alex Harui
If you want to know if anything or nothing is selected, simply test for 
selectedIndex==-1

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Fotis Chatzinikos
Sent: Sunday, October 25, 2009 3:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Detect if any of the Items on a List are Selected - 
thought it would be easier.



you can use the list's properties (arrays of indices, or items):

selectedItems
selectedIndices

On Sun, Oct 25, 2009 at 7:19 PM, steveb805 
quantumcheese...@gmail.commailto:quantumcheese...@gmail.com wrote:


The only property I could find, from the Flex docs, that tells you whether your 
List control has anything selected is: isItemSelected().

And this takes a parameter that refers to a specific item. So before my Delete 
button handler, I check if any item is selected with the following:

private function deleteHandler() {

var bDoesNotHasFocus: Boolean = true;
var len:Number = projectList.dataProvider.length;

for (var i:int = 0; i = len - 1; i++) {
if (projectList.isItemSelected(projectList.dataProvider[i]))
{
bDoesNotHasFocus = false;
}
}
if (bDoesNotHasFocus)
return;

// the code to delete

}

Is there a better way, anyone?
Thanks,
Steve



--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.commailto:fotis.chatzini...@gmail.com,



RE: [flexcoders] need help making a UITextInput update its numLines property

2009-10-25 Thread Alex Harui
Make sure UITextField's .width is set to some proportion of the UIComponent's 
explicitWidth.

However, I think numLines may not get updated until after render so you may 
need to use callLater to go back and truncate.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of DustinB
Sent: Saturday, October 24, 2009 12:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] need help making a UITextInput update its numLines 
property



hello Flexcoders!

I am stumped with a problem in my DataGrids itemRenderer.
I am using a regular DataGrid and my column has a renderer that extends 
UIComponent and not DataGridItemRenderer.

In my renderer is a UITextField that has wrapping turned on. The user can 
expand and reduce the width of the column, and as they do I have a function 
that truncates the text if there is not enough room in the column to display it 
in 4 lines or less within the visible space of the resized cell. I use the 
UITextField.numLines property as my indicator.

This works great when I expand the width of the column.

I doesn't work when I reduce the width of the column by making the text go 
from, say 2 lines, to 5 lines.

When I roll over the row, the UITextField updates its numLines property.

Any ideas about an event I can listen for on the DataGrid or ItemRenderer, or a 
method to call on the UITextInput to make it update the numLines property?

thanks!
Dustin