[flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question

2009-08-28 Thread chigwell23
1. Datagrid displays fine

2. Datagrid dataprovider = lstRepRankDrill[0].record which is _inside_ the 
lstRepRankDrill XMLListCollection. This XML hierarchy format is returned by 
myFlexSQL web service against SQLServer2005.

3. trace(lstRepRankDrill[0].record.toXMLString()) gives the 60 rows of data 
that appear in the datagrid.

4. The XMLListCollection format:

lstRepRankDrill (mx.collections.XMLListCollection)
...[0] (XML)
..results
.record
chnl_cd
rep_nm
.record
.record etc

Code:
- Datagrid declaration
mx:DataGrid dataProvider={lstRepRank[0].record} /mx:DataGrid

- load XMLListCollection with back end result set
lstRepRankDrill = new XMLListCollection(myFlexsql.xmlData.results);

- add filter
lstRepRankDrill.filterFunction = filterRepRankDtlChnl;

- filter code
private function filterRepRankDtlChnl(item:XML):Boolean{
...trace(item.toXMLString());
...if(item.results.record.chnl_cd == PREM) return true;
..else return false;  
}

NOTE: trace(item.toXMLString()); in filter code prints all the data, not just 
one row. Trace=

item (XML)
...results
..record
..record etc all 60 of them.

So even though the grid data is fine, the filter is getting passed all the 
data, and the filter gets called once. I wonder if it is because the data is 
hierarchical and there is a discrepancy between the dataprovider and the filter 
owner. The dataprovider is _inside_ the lstRepRankDrill XMLListCollection as 
lstRepRankDrill[0].record. The filter is placed on the outside 
XMLListCollection :

lstRepRankDrill.filterFunction = filterRepRankDtlChnl;

Its almost like where the filter is placed (XMLListCollection rather than 
dataprovider subnode lstRepRankDrill[0].record) is causing all the data to be 
forwarded into filter param item, and passed only once.





--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 Lets clarify terminology.  dataProvider must always be a list of some
 kind, like an array, and XMLList an ArrayCollection or an XMLListCollection.
 It can not be a single XML node.
 
  
 
 This expression should return an XMLList: lstRepRankDrill[0].record
 
  
 
 If you trace(lstRepRankDrill[0].record.toXMLString());  //what do you see?
 
  
 
 Does your DG display correctly without the filter?
 
  
 
 Post the declaration for the dataGrid.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of chigwell23
 Sent: Thursday, August 27, 2009 2:09 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection
 dataprovider question
 
  
 
   
 
 thanks for your time Tracy, yes absolutely the whole shooting match is sent
 to the _one_ call to the function i.e. lstRepRankDrill, which is actually
 more than the dataprovider which is {lstRepRankDrill[0].record}. I know that
 the fact there is only one call to the filter is significant, but do not
 know why, unless it is because I have to put the filter on
 lstRepRankDrill.filterFunction = filterRepRankDtlChnl; and it is
 hierarchical. Obviously I cannot put the filter on lstRepRankDrill[0].record
 as it is XML and not an XMLListCollection. Am using DG not ADG if that makes
 any difference. Eventually found 2 other Google questions out there with the
 same scenario - one call to the filter with the whole XMLListCollection
 being passed. No answers to them :-(
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tracy Spratt tracy@ wrote:
 
  I don't use ADG all that much, but the filter functions should get a
  record node for each call of the filter function. Have you used
  toXMLString() to trace out the item? Inside the filter function you can
 use
  any e4x expressions to traverse the xml, down into the child nodes or even
  up to parent nodes.
  
  
  
  I am pretty sure you are not getting the entire dataProvider in the
  function. Do the trace.
  
  
  
  Tracy Spratt,
  
  Lariat Services, development services available
  
  _ 
  
  From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
 On
  Behalf Of chigwell23
  Sent: Thursday, August 27, 2009 4:25 AM
  To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
  Subject: [flexcoders] Re: Apply filterFunction to datagrid
 XMLListCollection
  dataprovider question
  
  
  
  
  
  I wonder if is even possible to use the filter function with hierarchical
  XML, as all of the examples I have seen are of array collections or flat
  XML?
  
  This I think is the problem - the complete data provider is being passed
  into the item parameter of the filter i.e. the xml hierarchy in its
  entirety. I am presuming that the filter wants one row at a time so it
 can
  do its compare. Where do I have control of this? I am not sure I do since
  the only code 

Re: [flexcoders] Re: Flex DMV 3.4.0

2009-08-28 Thread Mika Kiljunen
ADG was one of the main drivers to switch to Flex and after using and
reading about it, it seems like its a bastard child

This was the best evil comment I've read to describe ADG... sad but true.

-Mika


On Thu, Aug 27, 2009 at 5:17 PM, tntomek tnto...@yahoo.com wrote:



 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mika
 Kiljunen mkintens...@... wrote:
 
  Hi,
  I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I compared
  the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to nothing
 has
  changed. For example even a closed bug from Adobe Bug Issue Management
  System that was supposed to be fixed in April are not included in DMV
 3.4.0
  (see https://bugs.adobe.com/jira/browse/FLEXDMV-1785)
 
  I guess it's true what the Issue management shows: An empty list of fixed
  issues on DMV 3.4.0.
 
  I'm pretty disappointed since there really is work to be done on DMV
  components and it seems that Adobe just hasn't put in the effort. Our
  current product uses lots of charts and Advanced Data Grids and we indeed
  have problems.
 
  Is there a DMV release with some actual fixes coming any time soon?
 
  -Mika
 

 Second this opinion, DMV esp. ADG was one of the main drivers to switch to
 Flex and after using and reading about it, it seems like its a bastard child
 :) It's too bad because AFAIK Fx4 will not have updated grids, so we are
 stuck with this for longer then some might want to stay around.

  



[flexcoders] Forum in Flex

2009-08-28 Thread christophe_jacquelin
Hello, 

I am searching example on how to integrate an user forum on a flex application. 

Thank you,
Christophe, 




[flexcoders] Re: Flex DMV 3.4.0

2009-08-28 Thread turbo_vb

Get over it. It's a big sea.  4 is around the corner.  We're expecting
good things.

-TH

--- In flexcoders@yahoogroups.com, Mika Kiljunen mkintens...@...
wrote:

 ADG was one of the main drivers to switch to Flex and after using and
 reading about it, it seems like its a bastard child

 This was the best evil comment I've read to describe ADG... sad but
true.

 -Mika


 On Thu, Aug 27, 2009 at 5:17 PM, tntomek tnto...@... wrote:

 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Mika
  Kiljunen mkintensium@ wrote:
  
   Hi,
   I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I
compared
   the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to
nothing
  has
   changed. For example even a closed bug from Adobe Bug Issue
Management
   System that was supposed to be fixed in April are not included in
DMV
  3.4.0
   (see https://bugs.adobe.com/jira/browse/FLEXDMV-1785)
  
   I guess it's true what the Issue management shows: An empty list
of fixed
   issues on DMV 3.4.0.
  
   I'm pretty disappointed since there really is work to be done on
DMV
   components and it seems that Adobe just hasn't put in the effort.
Our
   current product uses lots of charts and Advanced Data Grids and we
indeed
   have problems.
  
   Is there a DMV release with some actual fixes coming any time
soon?
  
   -Mika
  
 
  Second this opinion, DMV esp. ADG was one of the main drivers to
switch to
  Flex and after using and reading about it, it seems like its a
bastard child
  :) It's too bad because AFAIK Fx4 will not have updated grids, so we
are
  stuck with this for longer then some might want to stay around.
 
 
 






Re: [flexcoders] Re: Flex DMV 3.4.0

2009-08-28 Thread Tom Chiverton
On Thursday 27 Aug 2009, Doug McCune wrote:
 Entering your license key into FB was supposed to automatically run the
 extraction too (although sometimes this didn't work and you had to manually
 run the extraction to get at the source). But yeah, now it seems like you
 just download the 3.4 DMV zip file from the official adobe website.

I've not seen anything officially public (like on the Flex Team blog), but 
I've spoken to people and it's the real deal.

Maybe I should have been more gushing about it when I blogged this 
yesterday :-)

-- 
Helping to apprehensively deliver eigth-generation wireless robust 
supply-chains as part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] horizontallist scrolltoindex question

2009-08-28 Thread Fotis Chatzinikos
Thanks Alex, that did it.

On Fri, Aug 28, 2009 at 2:47 AM, Alex Harui aha...@adobe.com wrote:



  increment horizontalScrollPosition?



 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:* Thursday, August 27, 2009 4:18 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] horizontallist scrolltoindex question





 Any ideas how to simulate scroll bar arrow clicks? I.E. moving a lists
 element one - by - one and not by 'page' as scrolltoindex does.

 By page i mean the following:
 list contains 5 elements
 scroll to index 0-5 does nothing visually, while scroll to index 6 brings
 6 as the first element and you can see 7,8,9 and 10

 The strange thing is that moving backwords works perfectly ok...

 So, anyway to make this :

 1 2 3 4 5 -- into -- 2 3 4 5 6

 ?
 Thanks,
 Fotis

   




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


[flexcoders] DatagridColumn dataField question

2009-08-28 Thread bhaq1972
Can the dataField reference an array position eg

var array1:Array = [hello, world, etc];

...

mx:DataGridColumn dataField=array1[1] /

at the moment the only way i can make this work is use a labelFunction
eg
mx:DataGridColumn dataField=array1[1] labelFunction=something/


Just wondered if there was any other way?

TIA
Bod




Re: [flexcoders] Line and bar chart on the same coordinate system?

2009-08-28 Thread |Mirko

Thank you all for responses, will try with your suggestions and see how it
goes.

Best regards

-- 
View this message in context: 
http://www.nabble.com/Line-and-bar-chart-on-the-same-coordinate-system--tp25167662p25189019.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Pb with Drag and Drop

2009-08-28 Thread christophe_jacquelin
Hello, 

I have problems with the Drag and Drop when I move the mouse too fast. When I 
move the mouse slowly it is working.

Thank you,
Christopher, 




[flexcoders] Create a directory

2009-08-28 Thread christophe_jacquelin
Hello, 

How to create a directory (and see if it exists) on the server from a flex 
application ? 

Thank you,
Christopher, 




Re: [flexcoders] Create a directory

2009-08-28 Thread Tom Chiverton
On Friday 28 Aug 2009, christophe_jacquelin wrote:
 How to create a directory (and see if it exists) on the server from a flex
 application ?

Write the check in a server-side language and expose it as a service.
Call that service from Flex.

Could you be more specific ?

-- 
Helping to dynamically facilitate mission-critical seamless methodologies as 
part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Create a directory

2009-08-28 Thread Ian Thomas
Use a server-side language of some sort to do the processing - e.g.
PHP, ASP or similar.

Ian

On Fri, Aug 28, 2009 at 3:01 PM,
christophe_jacquelinchristophe_jacque...@yahoo.fr wrote:


 Hello,

 How to create a directory (and see if it exists) on the server from a flex
 application ?

 Thank you,
 Christopher,

 


RE: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question

2009-08-28 Thread Tracy Spratt
Ok ,you are not applying the filter to the dataProvider but rather to the
parent that contains it.  Put lstRepRankDrill[0].record and filter that.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of chigwell23
Sent: Friday, August 28, 2009 2:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection
dataprovider question

 

  

1. Datagrid displays fine

2. Datagrid dataprovider = lstRepRankDrill[0].record which is _inside_ the
lstRepRankDrill XMLListCollection. This XML hierarchy format is returned by
myFlexSQL web service against SQLServer2005.

3. trace(lstRepRankDrill[0].record.toXMLString()) gives the 60 rows of
data that appear in the datagrid.

4. The XMLListCollection format:

lstRepRankDrill (mx.collections.XMLListCollection)
...[0] (XML)
..results
.record
chnl_cd
rep_nm
.record
.record etc

Code:
- Datagrid declaration
mx:DataGrid dataProvider={lstRepRank[0].record} /mx:DataGrid

- load XMLListCollection with back end result set
lstRepRankDrill = new XMLListCollection(myFlexsql.xmlData.results);

- add filter
lstRepRankDrill.filterFunction = filterRepRankDtlChnl;

- filter code
private function filterRepRankDtlChnl(item:XML):Boolean{
...trace(item.toXMLString());
...if(item.results.record.chnl_cd == PREM) return true;
..else return false; 
}

NOTE: trace(item.toXMLString()); in filter code prints all the data, not
just one row. Trace=

item (XML)
...results
..record
..record etc all 60 of them.

So even though the grid data is fine, the filter is getting passed all the
data, and the filter gets called once. I wonder if it is because the data is
hierarchical and there is a discrepancy between the dataprovider and the
filter owner. The dataprovider is _inside_ the lstRepRankDrill
XMLListCollection as lstRepRankDrill[0].record. The filter is placed on the
outside XMLListCollection :

lstRepRankDrill.filterFunction = filterRepRankDtlChnl;

Its almost like where the filter is placed (XMLListCollection rather than
dataprovider subnode lstRepRankDrill[0].record) is causing all the data to
be forwarded into filter param item, and passed only once.

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tr...@... wrote:

 Lets clarify terminology. dataProvider must always be a list of some
 kind, like an array, and XMLList an ArrayCollection or an
XMLListCollection.
 It can not be a single XML node.
 
 
 
 This expression should return an XMLList: lstRepRankDrill[0].record
 
 
 
 If you trace(lstRepRankDrill[0].record.toXMLString()); //what do you see?
 
 
 
 Does your DG display correctly without the filter?
 
 
 
 Post the declaration for the dataGrid.
 
 
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
 _ 
 
 From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
 Behalf Of chigwell23
 Sent: Thursday, August 27, 2009 2:09 PM
 To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] Re: Apply filterFunction to datagrid
XMLListCollection
 dataprovider question
 
 
 
 
 
 thanks for your time Tracy, yes absolutely the whole shooting match is
sent
 to the _one_ call to the function i.e. lstRepRankDrill, which is actually
 more than the dataprovider which is {lstRepRankDrill[0].record}. I know
that
 the fact there is only one call to the filter is significant, but do not
 know why, unless it is because I have to put the filter on
 lstRepRankDrill.filterFunction = filterRepRankDtlChnl; and it is
 hierarchical. Obviously I cannot put the filter on
lstRepRankDrill[0].record
 as it is XML and not an XMLListCollection. Am using DG not ADG if that
makes
 any difference. Eventually found 2 other Google questions out there with
the
 same scenario - one call to the filter with the whole XMLListCollection
 being passed. No answers to them :-(
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tracy Spratt tracy@ wrote:
 
  I don't use ADG all that much, but the filter functions should get a
  record node for each call of the filter function. Have you used
  toXMLString() to trace out the item? Inside the filter function you can
 use
  any e4x expressions to traverse the xml, down into the child nodes or
even
  up to parent nodes.
  
  
  
  I am pretty sure you are not getting the entire dataProvider in the
  function. Do the trace.
  
  
  
  Tracy Spratt,
  
  Lariat Services, development services available
  
  _ 
  
  From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
 On
  Behalf Of chigwell23
  Sent: Thursday, August 27, 2009 4:25 AM
  To: flexcod...@yahoogro 

Re: [flexcoders] Create a directory

2009-08-28 Thread Beau Scott
Flex is a client side technology, so what you're trying to do can't be done
directly from Flex. Depending on your server technology, you can create a
script (like php, jsp, perl, asp, etc.) and call that script's url from the
Flex application and have it respond however you want.

Beau



On Fri, Aug 28, 2009 at 8:01 AM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:



 Hello,

 How to create a directory (and see if it exists) on the server from a flex
 application ?

 Thank you,
 Christopher,

  




-- 
Beau D. Scott
Software Engineer


[flexcoders] Calling getRect on blank containers

2009-08-28 Thread graham.t...@rocketmail.com

I've got some behaviors that allow a user to select components in a container.  
It uses Rectangle.intersects() to check a selection window against the 
rectangles (retrieved with getRect) of components in that window.

It works peachy unless those components are blank containers, when their 
rectangles will report zero width and height and x/y coordinates in the 6 
million range.

I suppose there's nothing for it but to build their rectangles myself?

Example:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical 
applicationComplete=onApplicationComplete(event)

mx:Script
![CDATA[

private function onApplicationComplete(e:Event):void
{
var rect1:Rectangle = 
canvasWithoutBackground.getRect(this);
var rect2:Rectangle = 
canvasWithBackground.getRect(this);

// Output: 6711321.6 6710910.4 0 0
trace(rect1.x, rect1.y, rect1.width, rect1.height);

// Output: 435 180 150 150
trace(rect2.x, rect2.y, rect2.width, rect2.height);
}

]]
/mx:Script

mx:Canvas id=canvasWithoutBackground width=150 height=150
mx:Spacer width=150 height=150/
/mx:Canvas

mx:Canvas id=canvasWithBackground width=150 height=150 
backgroundColor=#00ff00 backgroundAlpha=1
mx:Spacer width=150 height=150/
/mx:Canvas

/mx:Application



Re: [flexcoders] DatagridColumn dataField question

2009-08-28 Thread Beau Scott
dataField is a property belonging to the objects within the datagrid's
dataprovider. you don't access the array directly from your datagrid column,
rather you just name the field to access. So in the case you gave of an
array of strings, you'd only be able to display properties of the string
objects themselves (such as length):

mx:DataGridColumn dataField=length/ !-- would display the length of the
string in each index --

You could use label function to just return the value of the object as well:

mx:DataGridColumn labelFunction={function(... rest):String{return rest[0]
as String;}} / !-- Will display the actual value of the string at the
index's row.

However if you make it an array of arrays of strings, you can most certain
bind columns to indexes of the arrays of strings for display:

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:Script
![CDATA[
[Bindable]
public var dp:Array = [
 ['1','2','3'],
 ['a', 'b', 'c']
   ];
]]
/mx:Script
mx:DataGrid width=100% dataProvider={dp}
mx:columns
mx:DataGridColumn dataField=0 / !-- Binds to dp[row][0]
---
mx:DataGridColumn dataField=1 / !-- Binds to dp[row][1]
---
mx:DataGridColumn dataField=2 / !-- Binds to dp[row][2]
---
/mx:columns
/mx:DataGrid
/mx:WindowedApplication


Beau

On Fri, Aug 28, 2009 at 5:28 AM, bhaq1972 mbha...@hotmail.com wrote:



 Can the dataField reference an array position eg

 var array1:Array = [hello, world, etc];

 ...

 mx:DataGridColumn dataField=array1[1] /

 at the moment the only way i can make this work is use a labelFunction
 eg
 mx:DataGridColumn dataField=array1[1] labelFunction=something/

 Just wondered if there was any other way?

 TIA
 Bod

  




-- 
Beau D. Scott
Software Engineer


[flexcoders] Re: Flex DMV 3.4.0

2009-08-28 Thread tntomek
--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote:

 
 Get over it. It's a big sea.  4 is around the corner.  We're expecting
 good things.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Mika Kiljunen mkintensium@
 wrote:
 
  ADG was one of the main drivers to switch to Flex and after using and
  reading about it, it seems like its a bastard child
 
  This was the best evil comment I've read to describe ADG... sad but
 true.
 
  -Mika
 
 
  On Thu, Aug 27, 2009 at 5:17 PM, tntomek tntomek@ wrote:
 
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Mika
   Kiljunen mkintensium@ wrote:
   
Hi,
I just downloaded and installed DMV 3.4.0 with Flex SDK 3.4.0. I
 compared
the sources of DMV 3.3.0 and 3.4.0 and it seems pretty close to
 nothing
   has
changed. For example even a closed bug from Adobe Bug Issue
 Management
System that was supposed to be fixed in April are not included in
 DMV
   3.4.0
(see https://bugs.adobe.com/jira/browse/FLEXDMV-1785)
   
I guess it's true what the Issue management shows: An empty list
 of fixed
issues on DMV 3.4.0.
   
I'm pretty disappointed since there really is work to be done on
 DMV
components and it seems that Adobe just hasn't put in the effort.
 Our
current product uses lots of charts and Advanced Data Grids and we
 indeed
have problems.
   
Is there a DMV release with some actual fixes coming any time
 soon?
   
-Mika
   
  
   Second this opinion, DMV esp. ADG was one of the main drivers to
 switch to
   Flex and after using and reading about it, it seems like its a
 bastard child
   :) It's too bad because AFAIK Fx4 will not have updated grids, so we
 are
   stuck with this for longer then some might want to stay around.
  
  
  
 


What in your opinion does 4 bring to the table for enterprise applications? 
Data wizards? I realize there isn't a better alternative but the Flex 4 
transition is one I'm not looking forward to. I'd rather that things didn't 
crash and use 80% CPU than have better skinning. None of the useful controls 
are getting updated in Flex 4 and ADG 3rd party grid components are nowhere to 
be found. There has been a lot of talk to express opinions and let the Flex 
team know so I'm letting them know :) All I really ask for is that a few bright 
people remain dedicated to Flex 3 to keep fixing the bugs



Re: [flexcoders] Re: Flex DMV 3.4.0

2009-08-28 Thread Matt Chotin
I've posted more about the 3.4 update here: 
http://blogs.adobe.com/flex/archives/2009/08/status_of_flex_data_visualizat.html


On 8/28/09 2:59 AM, Tom Chiverton tom.chiver...@halliwells.com wrote:





 On Thursday 27 Aug 2009, Doug McCune wrote:
 Entering your license key into FB was supposed to automatically run the
 extraction too (although sometimes this didn't work and you had to manually
 run the extraction to get at the source). But yeah, now it seems like you
 just download the 3.4 DMV zip file from the official adobe website.

I've not seen anything officially public (like on the Flex Team blog), but
I've spoken to people and it's the real deal.

Maybe I should have been more gushing about it when I blogged this
yesterday :-)


[flexcoders] Re: Show ProgressBar upon loading Modules

2009-08-28 Thread valdhor
The easy way:

private function readyEventHandler(e:ModuleEvent):void
{
pb.visible = false;
pb.includeInLayout = false;
}

--- In flexcoders@yahoogroups.com, yonghan79 yongha...@... wrote:

 Hi all , i need help please..I've suceeded to show progressbar upon
 loading modules within FlexMDI Window,but i haven't figured out how to
 hide the progressbar upon ModuleEvent.READY.. I pu the codes here  my
 codes http://www.pastebin.org/12640  ..Thanks a lot...




[flexcoders] Creating a flex library project that references a remote SVN path?

2009-08-28 Thread Nick Middleweek
Hello,

Is it even possible to create a flex library project that references a
remote SVN path?? I'm trying to use the birdeye qavis graphing library and
I've been told to create a flex library project and set the src to the
remote SVN location...

How do i do that? I'm stumped...

I'm using FB3 with Subclipse installed if that helps.


Cheers,
Nick


Re: [flexcoders] Re: Flex DMV 3.4.0

2009-08-28 Thread Tom Chiverton
On Friday 28 Aug 2009, Matt Chotin wrote:
 I've posted more about the 3.4 update here:
 http://blogs.adobe.com/flex/archives/2009/08/status_of_flex_data_visualizat
.html

Cheers for clearing up the licensing etc. Matt

-- 
Helping to continually strategize real-time services as part of the IT team of 
the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Creating a flex library project that references a remote SVN path?

2009-08-28 Thread Jeffry Houser


Most likely you would check out code from the SVN repository so that it 
is local.  After that, you can add the source code to your project in 
multiple ways.  One of them is to add a linked directory pointing to the 
source code.  Another is to compile your own SWC with the source code 
and add that swc to the library path of your project. 


Nick Middleweek wrote:
 


Hello,

Is it even possible to create a flex library project that references a 
remote SVN path?? I'm trying to use the birdeye qavis graphing library 
and I've been told to create a flex library project and set the src to 
the remote SVN location...


How do i do that? I'm stumped...

I'm using FB3 with Subclipse installed if that helps.


Cheers,
Nick




--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] Re: Flex DMV 3.4.0

2009-08-28 Thread Jeffry Houser


I'd love to hear more specifics on your issues w/ the ADG and/or what 
would inspire you to buy a third party alternative. 


tntomek wrote:
 




What in your opinion does 4 bring to the table for enterprise 
applications? Data wizards? I realize there isn't a better alternative 
but the Flex 4 transition is one I'm not looking forward to. I'd 
rather that things didn't crash and use 80% CPU than have better 
skinning. None of the useful controls are getting updated in Flex 4 
and ADG 3rd party grid components are nowhere to be found. There has 
been a lot of talk to express opinions and let the Flex team know so 
I'm letting them know :) All I really ask for is that a few bright 
people remain dedicated to Flex 3 to keep fixing the bugs





--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [Spam] Re: [flexcoders] Creating a flex library project that referencesa remote SVN path?

2009-08-28 Thread Nick Middleweek
Ah nice one Jeffry... Thanks for your reply...

Linked driectories... Ok, I'll look into those.

Some guy at work has just said download teh SVN, do an export to clean the
SVN files and use the SWC in my main flex projects lib folder... That sound
about right?


Cheers,
Nick



2009/8/28 Jeffry Houser j...@dot-com-it.com




  Most likely you would check out code from the SVN repository so that it is
 local.  After that, you can add the source code to your project in multiple
 ways.  One of them is to add a linked directory pointing to the source
 code.  Another is to compile your own SWC with the source code and add that
 swc to the library path of your project.

 Nick Middleweek wrote:



 Hello,

 Is it even possible to create a flex library project that references a
 remote SVN path?? I'm trying to use the birdeye qavis graphing library and
 I've been told to create a flex library project and set the src to the
 remote SVN location...

 How do i do that? I'm stumped...

 I'm using FB3 with Subclipse installed if that helps.


 Cheers,
 Nick


 --
 Jeffry Houser, Technical Entrepreneur
 Adobe Community Expert: 
 http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711  | Phone: 
 203-379-0773
 --
 Easy to use Interface Components for Flex 
 Developershttp://www.flextras.com?c=104
 --http://www.theflexshow.comhttp://www.jeffryhouser.com
 --
 Part of the DotComIt Brain Trust

  



[flexcoders] Re: Pb with Drag and Drop

2009-08-28 Thread graham.t...@rocketmail.com
If drag performance is your issue, then this might be related: 
http://bugs.adobe.com/jira/browse/SDK-22828.

--Tony Graham

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

 Hello, 
 
 I have problems with the Drag and Drop when I move the mouse too fast. When I 
 move the mouse slowly it is working.
 
 Thank you,
 Christopher,





Re: [Spam] Re: [flexcoders] Creating a flex library project that referencesa remote SVN path?

2009-08-28 Thread Beau Scott
You should read up on SVN Externals:
http://svnbook.red-bean.com/en/1.0/ch07s03.html

Beau



On Fri, Aug 28, 2009 at 9:55 AM, Nick Middleweek n...@middleweek.co.ukwrote:



 Ah nice one Jeffry... Thanks for your reply...

 Linked driectories... Ok, I'll look into those.

 Some guy at work has just said download teh SVN, do an export to clean the
 SVN files and use the SWC in my main flex projects lib folder... That sound
 about right?


 Cheers,
 Nick



 2009/8/28 Jeffry Houser j...@dot-com-it.com




  Most likely you would check out code from the SVN repository so that it
 is local.  After that, you can add the source code to your project in
 multiple ways.  One of them is to add a linked directory pointing to the
 source code.  Another is to compile your own SWC with the source code and
 add that swc to the library path of your project.

 Nick Middleweek wrote:



 Hello,

 Is it even possible to create a flex library project that references a
 remote SVN path?? I'm trying to use the birdeye qavis graphing library and
 I've been told to create a flex library project and set the src to the
 remote SVN location...

 How do i do that? I'm stumped...

 I'm using FB3 with Subclipse installed if that helps.


 Cheers,
 Nick


 --
 Jeffry Houser, Technical Entrepreneur
 Adobe Community Expert: 
 http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711  | Phone: 
 203-379-0773
 --
 Easy to use Interface Components for Flex 
 Developershttp://www.flextras.com?c=104
 --http://www.theflexshow.comhttp://www.jeffryhouser.com
 --
 Part of the DotComIt Brain Trust


  




-- 
Beau D. Scott
Software Engineer


[flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-08-28 Thread mike_slinn
 Because actionscript is single-threaded, your scenario cannot happen.

Alex,

That statement is often repeated, but I believe that it is incorrect. The main 
thread is responsible for rendering and AMF deserialization. URLLoader runs in 
its own thread. Pixel Bender runs in its own thread 
(http://www.jamesward.com/blog/2009/04/29/announcing-pbjas-an-actionscript-3-pixel-bender-shader-library/)

I have asked for AMF deserialization be moved to another thread 
(http://bugs.adobe.com/jira/browse/FP-2398)

It would be great if better documentation on the Flash player's threads was 
available.

Mike



[flexcoders] Re: how to wait for one event to finish?

2009-08-28 Thread nathanleewei

sorry, my mistake!

import flash.events.EventDispatcher;

public class MessageEventBus extends EventDispatcher {




--- In flexcoders@yahoogroups.com, coder3 rrhu...@... wrote:

 
 i see that you create a singlton to dispatch and addeventlistener. that makes
 sense.
 
 but what is this class EventListener?
 
 thanks!!



[flexcoders] Re: Apply filterFunction to datagrid XMLListCollection dataprovider question

2009-08-28 Thread chigwell23
I wish :-( That was the original code and gives a runtime error of:

lstRepRankDrill[0].record.filterFunction = filterRepRankDtlChnl;
TypeError: Error #1089: Assignment to lists with more than one item is not 
supported.

--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 Ok ,you are not applying the filter to the dataProvider but rather to the
 parent that contains it.  Put lstRepRankDrill[0].record and filter that.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of chigwell23
 Sent: Friday, August 28, 2009 2:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Apply filterFunction to datagrid XMLListCollection
 dataprovider question
 
  
 
   
 
 1. Datagrid displays fine
 
 2. Datagrid dataprovider = lstRepRankDrill[0].record which is _inside_ the
 lstRepRankDrill XMLListCollection. This XML hierarchy format is returned by
 myFlexSQL web service against SQLServer2005.
 
 3. trace(lstRepRankDrill[0].record.toXMLString()) gives the 60 rows of
 data that appear in the datagrid.
 
 4. The XMLListCollection format:
 
 lstRepRankDrill (mx.collections.XMLListCollection)
 ...[0] (XML)
 ..results
 .record
 chnl_cd
 rep_nm
 .record
 .record etc
 
 Code:
 - Datagrid declaration
 mx:DataGrid dataProvider={lstRepRank[0].record} /mx:DataGrid
 
 - load XMLListCollection with back end result set
 lstRepRankDrill = new XMLListCollection(myFlexsql.xmlData.results);
 
 - add filter
 lstRepRankDrill.filterFunction = filterRepRankDtlChnl;
 
 - filter code
 private function filterRepRankDtlChnl(item:XML):Boolean{
 ...trace(item.toXMLString());
 ...if(item.results.record.chnl_cd == PREM) return true;
 ..else return false; 
 }
 
 NOTE: trace(item.toXMLString()); in filter code prints all the data, not
 just one row. Trace=
 
 item (XML)
 ...results
 ..record
 ..record etc all 60 of them.
 
 So even though the grid data is fine, the filter is getting passed all the
 data, and the filter gets called once. I wonder if it is because the data is
 hierarchical and there is a discrepancy between the dataprovider and the
 filter owner. The dataprovider is _inside_ the lstRepRankDrill
 XMLListCollection as lstRepRankDrill[0].record. The filter is placed on the
 outside XMLListCollection :
 
 lstRepRankDrill.filterFunction = filterRepRankDtlChnl;
 
 Its almost like where the filter is placed (XMLListCollection rather than
 dataprovider subnode lstRepRankDrill[0].record) is causing all the data to
 be forwarded into filter param item, and passed only once.
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
 Tracy Spratt tracy@ wrote:
 
  Lets clarify terminology. dataProvider must always be a list of some
  kind, like an array, and XMLList an ArrayCollection or an
 XMLListCollection.
  It can not be a single XML node.
  
  
  
  This expression should return an XMLList: lstRepRankDrill[0].record
  
  
  
  If you trace(lstRepRankDrill[0].record.toXMLString()); //what do you see?
  
  
  
  Does your DG display correctly without the filter?
  
  
  
  Post the declaration for the dataGrid.
  
  
  
  Tracy Spratt,
  
  Lariat Services, development services available
  
  _ 
  
  From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
 [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
 On
  Behalf Of chigwell23
  Sent: Thursday, August 27, 2009 2:09 PM
  To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
  Subject: [flexcoders] Re: Apply filterFunction to datagrid
 XMLListCollection
  dataprovider question
  
  
  
  
  
  thanks for your time Tracy, yes absolutely the whole shooting match is
 sent
  to the _one_ call to the function i.e. lstRepRankDrill, which is actually
  more than the dataprovider which is {lstRepRankDrill[0].record}. I know
 that
  the fact there is only one call to the filter is significant, but do not
  know why, unless it is because I have to put the filter on
  lstRepRankDrill.filterFunction = filterRepRankDtlChnl; and it is
  hierarchical. Obviously I cannot put the filter on
 lstRepRankDrill[0].record
  as it is XML and not an XMLListCollection. Am using DG not ADG if that
 makes
  any difference. Eventually found 2 other Google questions out there with
 the
  same scenario - one call to the filter with the whole XMLListCollection
  being passed. No answers to them :-(
  
  --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
  Tracy Spratt tracy@ wrote:
  
   I don't use ADG all that much, but the filter functions should get a
   record node for each call of the filter function. Have you used
   toXMLString() to trace out the item? Inside the filter function you can
  use
   any e4x expressions to traverse the xml, down into the child nodes or
 even
   up to parent nodes.
   
   
   
   I am pretty 

[flexcoders] Re: Flex DMV 3.4.0

2009-08-28 Thread tntomek
--- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote:

 
 I'd love to hear more specifics on your issues w/ the ADG and/or what 
 would inspire you to buy a third party alternative. 
 
 tntomek wrote:
   
 
 
 
  What in your opinion does 4 bring to the table for enterprise 
  applications? Data wizards? I realize there isn't a better alternative 
  but the Flex 4 transition is one I'm not looking forward to. I'd 
  rather that things didn't crash and use 80% CPU than have better 
  skinning. None of the useful controls are getting updated in Flex 4 
  and ADG 3rd party grid components are nowhere to be found. There has 
  been a lot of talk to express opinions and let the Flex team know so 
  I'm letting them know :) All I really ask for is that a few bright 
  people remain dedicated to Flex 3 to keep fixing the bugs
 
  
 
 -- 
 Jeffry Houser, Technical Entrepreneur
 Adobe Community Expert: http://tinyurl.com/684b5h
 http://www.twitter.com/reboog711  | Phone: 203-379-0773
 --
 Easy to use Interface Components for Flex Developers
 http://www.flextras.com?c=104
 --
 http://www.theflexshow.com
 http://www.jeffryhouser.com
 --
 Part of the DotComIt Brain Trust


Performance with large datasets (would really like horizontal scrolling 
optimized same way as vertical)

Footers, locked rows, right locked columns.

Sure the above have loose solutions on the net but they are all understandably 
buggy and lack the testing from something official that the Flex team would 
release.

Specific bugs can be found on JIRA, there are many issues, and to be frank its 
not exactly a secret that quality of ADG is not on par with DG; even Deepa 
alluded to this. It's a complicated product no doubt but there is room for 
improvements if resources were available.

http://dougmccune.com/blog/2009/02/08/analyzing-the-size-of-the-flex-framework-or-why-i-hate-the-advanceddatagrid/

I would buy a 3rd party grid simply not to have to wait for official Flex 
releases and to see an actively developed product with frequent updates and 
fixes. I realize Flex team is busy with Flex 4 and that's where priorities lie. 
It's nice that there is an alternative for Charting (IElixr) and it would be 
great to see one for grids as well.




RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-08-28 Thread Alex Harui
I said that actionscript is single threaded.  Some API calls are asynchronous 
and non-blocking, but for sure, when you execute one statement in actionscript, 
that statement and the statement after will be executed without interruption.  
If the statement invokes an asynchronous operation, the results may not come 
back for a while, but when it does, whatever statements you are executing at 
the time will not be interrupted

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 mike_slinn
Sent: Friday, August 28, 2009 9:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Race conditions when event handlers triggered from 
different targets



 Because actionscript is single-threaded, your scenario cannot happen.

Alex,

That statement is often repeated, but I believe that it is incorrect. The main 
thread is responsible for rendering and AMF deserialization. URLLoader runs in 
its own thread. Pixel Bender runs in its own thread 
(http://www.jamesward.com/blog/2009/04/29/announcing-pbjas-an-actionscript-3-pixel-bender-shader-library/)

I have asked for AMF deserialization be moved to another thread 
(http://bugs.adobe.com/jira/browse/FP-2398)

It would be great if better documentation on the Flash player's threads was 
available.

Mike



Re: [flexcoders] Re: Show ProgressBar upon loading Modules

2009-08-28 Thread Vivian Richard
   Can I use moduleloader with httpservice? I have like 3 pods and they
   get populated by httpservice calls. I do want to show different loaders
   on each pod when the httpservice are being processed. What is the
   solution for me? Any idea?





On Fri, Aug 28, 2009 at 8:30 AM, valdhorvaldhorli...@embarqmail.com wrote:


 The easy way:

 private function readyEventHandler(e:ModuleEvent):void
 {
        pb.visible = false;
        pb.includeInLayout = false;
 }

 --- In flexcoders@yahoogroups.com, yonghan79 yongha...@... wrote:

 Hi all , i need help please..I've suceeded to show progressbar upon
 loading modules within FlexMDI Window,but i haven't figured out how to
 hide the progressbar upon ModuleEvent.READY.. I pu the codes here my
 codes http://www.pastebin.org/12640 ..Thanks a lot...

 


[flexcoders] Curious - anybody doing anything with Flex and MS Reporting Services 2005?

2009-08-28 Thread chigwell23
I am putting link buttons on the Flex app that point to RS report URLs, but 
wonder if there is a way of making it more integrated? TIA,

Mic.



Re: [flexcoders] Re: Find Actual Width After Setting Percent Width

2009-08-28 Thread Wesley Acheson
This may help or not.  Its a bit of a hack. but if your always resizing
children when the size of the container changes I may just leave it in as a
permenant event listener.

Regards,

Wesley

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=init(); initialize=maximize();
verticalScrollPolicy=off horizontalScrollPolicy=off
   mx:Script
   ![CDATA[
   import mx.controls.Alert;
   import mx.events.ResizeEvent;

   private function clicked():void
   {
   foo.percentWidth = 50;
   foo.invalidateSize();
   foo.validateNow();
   txtWidth.text = foo.width.toString();
   foo.addEventListener(ResizeEvent.RESIZE, handleResize);
   trace (foo.width);
   }

   private function handleResize(event:ResizeEvent):void{
 Alert.show(event.target.width);
 foo.removeEventListener(ResizeEvent.RESIZE, handleResize);
   }
   ]]
   /mx:Script
   mx:HBox height=24 top=0 left=0 right=0
   mx:Button click=clicked() label=click me/
   /mx:HBox
   mx:Canvas id=foo width=100% left=182 top=63 bottom=0
borderColor=red borderThickness=1 borderStyle=solid

   /mx:Canvas

   mx:Text x=0 y=32 width=76 id=txtWidth/
   mx:Text x=0 y=60 text={foo.width} width=76/
/mx:WindowedApplication




On Wed, Aug 26, 2009 at 9:45 PM, jmfillman jmfill...@verizon.net wrote:

 The code below should demonstrate the issue more specifically.

 What you get when the clicked() function is called, shows that there is a
 slight delay in getting the width of the container. You'll note that the
 trace statement returns the original width as does the txtWidth field.

 You will note, however, that if you bind to the width of the container, you
 do get the correct width of the canvas. What I infer from this is that there
 is a delay in FlashPlayer/Air in having the width value set.

 If, however, you use the previous example, posted Beau, this works,
 presumably because the item you are re-sizing is within a container and the
 LayoutManager deals with nested items first, as I recall.

 Why the validateNow() function doesn't complete before moving on to the
 other two elements in the clicked() function, wasn't what I expected. This
 is probably a speed thing in the function so as to not hold up other items
 while the item is being validated???

 ?xml version=1.0 encoding=utf-8?
 mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=init(); initialize=maximize();
 verticalScrollPolicy=off horizontalScrollPolicy=off
mx:Script
![CDATA[

private function clicked():void
{
foo.percentWidth = 50;
foo.invalidateSize();
foo.validateNow();
txtWidth.text = foo.width.toString();
trace (foo.width);
}
]]
/mx:Script
mx:HBox height=24 top=0 left=0 right=0
 mx:Button click=clicked() label=click me/
 /mx:HBox
mx:Canvas id=foo width=100% left=182 top=63 bottom=0
 borderColor=red borderThickness=1 borderStyle=solid

/mx:Canvas

mx:Text x=0 y=32 width=76 id=txtWidth/
mx:Text x=0 y=60 text={foo.width} width=76/
 /mx:WindowedApplication

 --- In flexcoders@yahoogroups.com, Beau Scott beau.sc...@... wrote:
 
  You'll need to invalidate the component's parent's size and revalidate it
  before your target's size is computed:
 
  ?xml version=1.0 encoding=utf-8?
  mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=vertical
  mx:Script
  ![CDATA[
  import mx.core.UIComponent;
  private function clicked():void
  {
  trace(bar.width);
  bar.percentWidth = bar.percentWidth == 100 ? 50 : 100;
  UIComponent(bar.parent).invalidateSize();
  UIComponent(bar.parent).validateNow();
  trace(bar.width);
  }
  ]]
  /mx:Script
  mx:Box id=foo width=100% height=50 borderColor=red
  borderThickness=1 borderStyle=solid
  mx:Box id=bar width=100% height=100% borderColor=blue
  borderThickness=1 borderStyle=solid /
  /mx:Box
  mx:Button click=clicked() label=click me /
  /mx:WindowedApplication
 
 
  Run that and click the button to see the trace output.
 
 
  HTH,
 
  Beau
 
 
 
 
  On Wed, Aug 26, 2009 at 10:04 AM, jmfillman jmfill...@... wrote:
 
  
  
   If you trace the width and measuredWidth immediately after setting the
   percentWidth, both width and measuredWidth show the original width
 instead
   of the updated width.
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
   valdhor valdhorlists@ wrote:
   
What does canvas.measuredWidth give when the user clicks the button?
   
   
--- In flexcoders@yahoogroups.com 

Re: [flexcoders] Re: Find Actual Width After Setting Percent Width

2009-08-28 Thread Wesley Acheson
Or if you want your origional code to work call this.validateNow() not
foo.validateNow().  Its the parents job to size the child not the childs job
to size itself.  This was stated in Beau Scott's email but may have passed
you by.

On Fri, Aug 28, 2009 at 10:06 PM, Wesley Acheson
wesley.ache...@gmail.comwrote:

 This may help or not.  Its a bit of a hack. but if your always resizing
 children when the size of the container changes I may just leave it in as a
 permenant event listener.

 Regards,

 Wesley

 ?xml version=1.0 encoding=utf-8?
 mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=init(); initialize=maximize();
 verticalScrollPolicy=off horizontalScrollPolicy=off
mx:Script
![CDATA[
import mx.controls.Alert;
import mx.events.ResizeEvent;

private function clicked():void
{
foo.percentWidth = 50;
foo.invalidateSize();
foo.validateNow();
txtWidth.text = foo.width.toString();
foo.addEventListener(ResizeEvent.RESIZE, handleResize);
trace (foo.width);
}

private function handleResize(event:ResizeEvent):void{
  Alert.show(event.target.width);
  foo.removeEventListener(ResizeEvent.RESIZE, handleResize);
}
]]
/mx:Script
mx:HBox height=24 top=0 left=0 right=0
mx:Button click=clicked() label=click me/
/mx:HBox
mx:Canvas id=foo width=100% left=182 top=63 bottom=0
 borderColor=red borderThickness=1 borderStyle=solid

/mx:Canvas

mx:Text x=0 y=32 width=76 id=txtWidth/
mx:Text x=0 y=60 text={foo.width} width=76/
 /mx:WindowedApplication




 On Wed, Aug 26, 2009 at 9:45 PM, jmfillman jmfill...@verizon.net wrote:

 The code below should demonstrate the issue more specifically.

 What you get when the clicked() function is called, shows that there is a
 slight delay in getting the width of the container. You'll note that the
 trace statement returns the original width as does the txtWidth field.

 You will note, however, that if you bind to the width of the container,
 you do get the correct width of the canvas. What I infer from this is that
 there is a delay in FlashPlayer/Air in having the width value set.

 If, however, you use the previous example, posted Beau, this works,
 presumably because the item you are re-sizing is within a container and the
 LayoutManager deals with nested items first, as I recall.

 Why the validateNow() function doesn't complete before moving on to the
 other two elements in the clicked() function, wasn't what I expected. This
 is probably a speed thing in the function so as to not hold up other items
 while the item is being validated???

 ?xml version=1.0 encoding=utf-8?
 mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=init(); initialize=maximize();
 verticalScrollPolicy=off horizontalScrollPolicy=off
mx:Script
![CDATA[

private function clicked():void
{
foo.percentWidth = 50;
foo.invalidateSize();
foo.validateNow();
txtWidth.text = foo.width.toString();
trace (foo.width);
}
]]
/mx:Script
mx:HBox height=24 top=0 left=0 right=0
 mx:Button click=clicked() label=click me/
 /mx:HBox
mx:Canvas id=foo width=100% left=182 top=63 bottom=0
 borderColor=red borderThickness=1 borderStyle=solid

/mx:Canvas

mx:Text x=0 y=32 width=76 id=txtWidth/
mx:Text x=0 y=60 text={foo.width} width=76/
 /mx:WindowedApplication

 --- In flexcoders@yahoogroups.com, Beau Scott beau.sc...@... wrote:
 
  You'll need to invalidate the component's parent's size and revalidate
 it
  before your target's size is computed:
 
  ?xml version=1.0 encoding=utf-8?
  mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=vertical
  mx:Script
  ![CDATA[
  import mx.core.UIComponent;
  private function clicked():void
  {
  trace(bar.width);
  bar.percentWidth = bar.percentWidth == 100 ? 50 : 100;
  UIComponent(bar.parent).invalidateSize();
  UIComponent(bar.parent).validateNow();
  trace(bar.width);
  }
  ]]
  /mx:Script
  mx:Box id=foo width=100% height=50 borderColor=red
  borderThickness=1 borderStyle=solid
  mx:Box id=bar width=100% height=100% borderColor=blue
  borderThickness=1 borderStyle=solid /
  /mx:Box
  mx:Button click=clicked() label=click me /
  /mx:WindowedApplication
 
 
  Run that and click the button to see the trace output.
 
 
  HTH,
 
  Beau
 
 
 
 
  On Wed, Aug 26, 2009 at 10:04 AM, jmfillman jmfill...@... wrote:
 
  
  
   If you trace the width and measuredWidth immediately after setting the
  

Re: [flexcoders] Html template for Flex appli.

2009-08-28 Thread Wesley Acheson
What exactly do you want 1 html with two flash files. OR something styled?

1 html with two flash files should be easy enough. If you need designs thats
more complicated.

Regards,

Wesley


On Thu, Aug 27, 2009 at 12:46 PM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:

 Hello,

 I am searching an html website template that launch 2 flex applications.

 Thank you,
 Christopher,




 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






RE: [flexcoders] Re: Race conditions when event handlers triggered from different targets

2009-08-28 Thread Gordon Smith
Yes, the Player has multiple threads. But the ActionScript Virtual Machine 
executes in only one of them. And the AVM executes one event handler before 
starting another event handler. You're not actually claiming to have proof to 
the contrary, are you?

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mike_slinn
Sent: Friday, August 28, 2009 9:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Race conditions when event handlers triggered from 
different targets



 Because actionscript is single-threaded, your scenario cannot happen.

Alex,

That statement is often repeated, but I believe that it is incorrect. The main 
thread is responsible for rendering and AMF deserialization. URLLoader runs in 
its own thread. Pixel Bender runs in its own thread 
(http://www.jamesward.com/blog/2009/04/29/announcing-pbjas-an-actionscript-3-pixel-bender-shader-library/)

I have asked for AMF deserialization be moved to another thread 
(http://bugs.adobe.com/jira/browse/FP-2398)

It would be great if better documentation on the Flash player's threads was 
available.

Mike



[flexcoders] Access system color/style scheme from AIR app?

2009-08-28 Thread Beau Scott
Anyone know if this is yet possible in AIR?

Beau


Re: [flexcoders] Re: Show ProgressBar upon loading Modules

2009-08-28 Thread Yesaya handoyo
Ok,thanks..I'll try it out valdhor...

On 8/29/09, Vivian Richard kanps...@gmail.com wrote:
Can I use moduleloader with httpservice? I have like 3 pods and they
get populated by httpservice calls. I do want to show different loaders
on each pod when the httpservice are being processed. What is the
solution for me? Any idea?





 On Fri, Aug 28, 2009 at 8:30 AM, valdhorvaldhorli...@embarqmail.com wrote:


 The easy way:

 private function readyEventHandler(e:ModuleEvent):void
 {
        pb.visible = false;
        pb.includeInLayout = false;
 }

 --- In flexcoders@yahoogroups.com, yonghan79 yongha...@... wrote:

 Hi all , i need help please..I've suceeded to show progressbar upon
 loading modules within FlexMDI Window,but i haven't figured out how to
 hide the progressbar upon ModuleEvent.READY.. I pu the codes here my
 codes http://www.pastebin.org/12640 ..Thanks a lot...





[flexcoders] Invitation to connect on LinkedIn

2009-08-28 Thread vajrala venkat
LinkedIn




   
I'd like to add you to my professional network on LinkedIn.

- vajrala

Learn more:
https://www.linkedin.com/e/isd/707090699/4eHaftp7/


 
--
(c) 2009, LinkedIn Corporation