Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-03 Thread Alex Harui
That sounds more like an issue with custom renderers.


On 4/3/12 4:47 AM, "Wouter Schreuders"  wrote:






Hi All

I've run into a rendering problem with the datagrid.

I have a datagrid that a user can search using a date range, furthermore the 
user can also search using keywords. I do this by first looking at the date 
range and applying a filter to the array of objects based on the dates. Then I 
make of a copy of that arraycollection and assign the arraycollection which 
binds to my datagrid to that collection.

The problem is that when the user selects a date range and I apply the filter, 
the datagrid content disappears. The scrollbar on the side updates though and 
if I scroll down then the content appears and renders correctly. I've tried the 
following post refresh commands but none of them solve the problem.

(datagrid.dataProvider as ArrayCollection).refresh();
datagrid .invalidateSkinState();
datagrid .invalidateDisplayList();
datagrid .validateNow();

Here's the code where I get the date range.

var dateFilteredArray:Array = _transactions.source.filter(
function (item:Transaction, index:int, array:Array):Boolean
{
if(Date.parse(item.displayDate) < dateRangeComponent.startDate.valueOf() || 
Date.parse(item.displayDate) > dateRangeComponent.endDate.valueOf())
return false
else
return true //item is inside date range
}
);
_dateFilteredCollection = new ArrayCollection(dateFilteredArray);

Anyone run into this before?





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Orange Question Mark - FB 4.6 Can't see mx:ComboBox that is defined in XML

2012-04-03 Thread Richard Albrecht
Hi, 

I tried using the spark combobox but it didn't look as good as the mx one. 

Don't know how all the skinning stuff works yet. I will put back the spark and 
see if I can make it look decent somehow. 

Thanks 


Rich 

- Original Message -

From: "Alex Harui"  
To: flexcoders@yahoogroups.com 
Sent: Monday, April 2, 2012 11:32:39 PM 
Subject: Re: [flexcoders] Orange Question Mark - FB 4.6 Can't see mx:ComboBox 
that is defined in XML 





Mx components are not made available to mobile projects by default. You can add 
mx.swc to your project if you want, but you should try to use all Spark stuff. 


On 4/2/12 6:04 PM, "hawkcode2" < r...@ralbrecht.net > wrote: 








Hi, 

I am pulling my hair out. 

I have FB 4.6 and am doing a mobile project. Only using FB not using anything 
else. 



I have Several Comboboxes Defined in XML and am accessing 2 different ones 
here: 

private function test():void 
{ 

dgType.x=10; 
ddlUnits.x=10; 
} 

Next to the ddlUnits is an Orange Circle with Question Mark. (Access to 
undefined property ddlUnits) 

Yet as you see below it is defined in the xml: 


 
 
 
 
 

 



 
 
 
 
 
 

- 


I have read every post i could find on this and nothing seems to apply. I can 
see all the components in design view just fine. 

These kind of things shake my confidence in Adobe. 

Anybody have a clue? 

Thanks 

Rich 








-- 
Alex Harui 
Flex SDK Team 
Adobe Systems, Inc. 
http://blogs.adobe.com/aharui 


 


Re: [flexcoders] Orange Question Mark - FB 4.6 Can't see mx:ComboBox that is defined in XML

2012-04-03 Thread Richard Albrecht
Thansk for the responce. 

I have tried closing, the file, the project and FB all to no avail. 

Where do I report bug and post sample. I was able to re-create it so I'd be 
happy to post it. 

Thanks 

Rich 

- Original Message -

From: "Alex Harui"  
To: flexcoders@yahoogroups.com 
Sent: Monday, April 2, 2012 11:32:39 PM 
Subject: Re: [flexcoders] Orange Question Mark - FB 4.6 Can't see mx:ComboBox 
that is defined in XML 





Mx components are not made available to mobile projects by default. You can add 
mx.swc to your project if you want, but you should try to use all Spark stuff. 


On 4/2/12 6:04 PM, "hawkcode2" < r...@ralbrecht.net > wrote: 








Hi, 

I am pulling my hair out. 

I have FB 4.6 and am doing a mobile project. Only using FB not using anything 
else. 



I have Several Comboboxes Defined in XML and am accessing 2 different ones 
here: 

private function test():void 
{ 

dgType.x=10; 
ddlUnits.x=10; 
} 

Next to the ddlUnits is an Orange Circle with Question Mark. (Access to 
undefined property ddlUnits) 

Yet as you see below it is defined in the xml: 


 
 
 
 
 

 



 
 
 
 
 
 

- 


I have read every post i could find on this and nothing seems to apply. I can 
see all the components in design view just fine. 

These kind of things shake my confidence in Adobe. 

Anybody have a clue? 

Thanks 

Rich 








-- 
Alex Harui 
Flex SDK Team 
Adobe Systems, Inc. 
http://blogs.adobe.com/aharui 


 


[flexcoders] datagrid not rendering after dataprovider update

2012-04-03 Thread Wouter Schreuders
Hi All

I've run into a rendering problem with the datagrid.

I have a datagrid that a user can search using a date range, furthermore
the user can also search using keywords. I do this by first looking at the
date range and applying a filter to the array of objects based on the
dates. Then I make of a copy of that arraycollection and assign the
arraycollection which binds to my datagrid to that collection.

The problem is that when the user selects a date range and I apply the
filter, the datagrid content disappears. The scrollbar on the side updates
though and if I scroll down then the content appears and renders correctly.
I've tried the following post refresh commands but none of them solve the
problem.

(datagrid.dataProvider as ArrayCollection).refresh();
datagrid .invalidateSkinState();
 datagrid .invalidateDisplayList();
datagrid .validateNow();

Here's the code where I get the date range.

var dateFilteredArray:Array = _transactions.source.filter(
function (item:Transaction, index:int, array:Array):Boolean
{
if(Date.parse(item.displayDate) < dateRangeComponent.startDate.valueOf() ||
Date.parse(item.displayDate) > dateRangeComponent.endDate.valueOf())
 return false
else
 return true //item is inside date range
}
);
_dateFilteredCollection = new ArrayCollection(dateFilteredArray);

Anyone run into this before?


[flexcoders] AIR 3.2 Update Breaks My App

2012-04-03 Thread Jake Churchill
Good morning community,

I have an AIR app developed under the 3.1 SDK which is used for displaying
real-time charting data.  It's not overly complex, just a socket connection
receiving data and updating chart data providers.  The app has been
released for about a month and all has been great.  However, with the
update to AIR 3.2, we are now experiencing freezing issues where the
rendering just stops.  I quick google search pulled up this:

http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/

This example is in mobile, but it seems to be the same problem.

Is anyone aware of a fix for this or at the minimum, a workaround?  Or what
can I even look for event wise to watch for this problem happening so I can
try to gracefully recover?

Thanks for any help!

-Jake