[flexcoders] Deserializing .NET web service

2012-04-04 Thread Angelo Anolin
Anyone here has code sample of flex application consuming a .NET webservice 
that is a DataSet serialized to bytearray?

Appreciate any input.

Thanks.

Angelo

Re: [flexcoders] Rendering Freezes

2012-04-04 Thread Alex Harui
Did you check bugbase.adobe.com to see if this is a known issue?

If you set enterFrame and exitFrame event handlers, do they get called?  If so, 
how often?  How about mouse or keyboard event?  Does the profiler continue to 
work?  What does it say is running?


On 4/4/12 7:17 PM, "Jake Churchill"  wrote:






Windows for now.  I haven't been able to duplicate issue on a mac but it 
doesn't mean it's not there.  I have not altered the renderMode so it should be 
running auto.  CPU runs between 0 and about 8% depending on how much data is 
coming down the line (socket connection).  Memory spikes as high as 180MB but 
runs consistent around 25MB in the profiler.  In task manager, I usually see 
around 120MB.  If I leave the chart open all day then there's a ton of data and 
I'll see it up around 180MB.  But, that's equal or less than a single tab in 
firefox so it should be fine.

The nativeWindow I'm working with still responds. I can maximize/minimize, but 
can't resize it.  The nativeMenu, however, is dead as well as all content 
inside the window.

As I said, I have a global error handler which traces out stuff in Monster 
Debugger as well as logs stuff to a file on my desktop and I don't get any info 
either way.  I'm tracing out every data object that I get over the socket as 
well as every chart update event and the main content area's update event.  
They continue to respond.  It's like everything is there, but there's a block 
on the app visually.

Thanks for your help!

-Jake

On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui  wrote:





Mac and Win?  Different GPU configs?  What does memory and CPU for the process 
look like?


On 4/4/12 2:37 PM, "Jake Churchill" http://reyna...@gmail.com> > wrote:






Alex,

It's intermittent, but routinely happens after the app has been open for 10-15 
minutes.  But, it's not EVERY time.  I've tied in Monster Debugger and I can 
see after the freeze that updates, data and certain component lifecycle events 
that I'm looking at are still firing, just no visual.  About half the time, I 
just get a snapshot frozen where the last update happened, and sometimes the 
screen is completely white.

-Jake

On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui http://aha...@adobe.com> > wrote:





Is it intermittent or can you reproduce it at will?




On 4/4/12 12:32 PM, "Jake Churchill" http://reyna...@gmail.com>   > wrote:






Coders:

I posted an issue regarding the update to AIR 3.2 recently but I now have more 
information.  The app appears to freeze but I've plugged in some debugging 
tools and network monitors and I have been able to find out that the rendering 
of the app freezes, but the app itself continues to run.  Data continues to fly 
in, update and render events continue to fire on the components in question.  
Focus appears to be acknowledged as well.  I've messed with a global error 
handler but I'm not seeing any errors being thrown.

The basic app structure is this:  Main app opens a login screen, after 
successful login, the main app hides itself and opens up 1-3 windows, all of 
which manage their own data/events, etc.  I've been debugging events at the 
main app level as well as windows and I'm getting feedback from both at the 
appropriate times.

I've seen an issue on an ipad app that freezes mid animation and the workaround 
was to add something else to the display list.  I coded in a workaround like 
that which adds a small transparent image to the display list of components as 
well as the window's stage and still nothing.

I REALLY REALLY need some kind of help here.  I've been searching for 3 days 
without any luck of the problem even being acknowledged other than the one ipad 
game source.  Here's that blog post again:  
http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/

Please please help me out if you can.

Thanks!

-Jake Churchill





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


Re: [flexcoders] Colors in FB 4.6 - Hi lights all Identifiers

2012-04-04 Thread Peter Ginneberge
> Select "Occurrences" in the Annotation types list and change the color to 
> your liking.

It's actually "Actionscript Occurrences" in the list.
Guess "Occurrences" is for none flex (.as, .mxml) files.

regards,
Peter

- Original Message - 
From: "Peter Ginneberge" 
To: 
Sent: Thursday, April 05, 2012 4:11 AM
Subject: Re: [flexcoders] Colors in FB 4.6 - Hi lights all Identifiers


>
> Window > Preferences
>
> In the Preferences window type: "annotations" in the filter box at the top or 
> go to:
> General > Editors > Text Editors > Annotations
>
> Select "Occurrences" in the Annotation types list and change the color to 
> your liking.
> Enjoy.
>
> - Original Message - 
> From: "hawkcode2" 
> To: 
> Sent: Wednesday, April 04, 2012 8:58 PM
> Subject: [flexcoders] Colors in FB 4.6 - Hi lights all Identifiers
>
>
>> Hi,
>>
>> I can not find where the setting is to chang the color for when you put the 
>> curser on an identifier, it hilights every where it 
>> is
>> used.
>>
>> I love the feature, just want to change the color as its to close to other 
>> colors.
>>
>> Thanks
>>
>> Rich
>
>
>
> 
>
> --
> 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] Rendering Freezes

2012-04-04 Thread Jake Churchill
Windows for now.  I haven't been able to duplicate issue on a mac but it
doesn't mean it's not there.  I have not altered the renderMode so it
should be running auto.  CPU runs between 0 and about 8% depending on how
much data is coming down the line (socket connection).  Memory spikes as
high as 180MB but runs consistent around 25MB in the profiler.  In task
manager, I usually see around 120MB.  If I leave the chart open all day
then there's a ton of data and I'll see it up around 180MB.  But, that's
equal or less than a single tab in firefox so it should be fine.

The nativeWindow I'm working with still responds. I can maximize/minimize,
but can't resize it.  The nativeMenu, however, is dead as well as all
content inside the window.

As I said, I have a global error handler which traces out stuff in Monster
Debugger as well as logs stuff to a file on my desktop and I don't get any
info either way.  I'm tracing out every data object that I get over the
socket as well as every chart update event and the main content area's
update event.  They continue to respond.  It's like everything is there,
but there's a block on the app visually.

Thanks for your help!

-Jake

On Wed, Apr 4, 2012 at 7:36 PM, Alex Harui  wrote:

> **
>
>
> Mac and Win?  Different GPU configs?  What does memory and CPU for the
> process look like?
>
>
> On 4/4/12 2:37 PM, "Jake Churchill"  wrote:
>
>
>
>
>
>
> Alex,
>
> It's intermittent, but routinely happens after the app has been open for
> 10-15 minutes.  But, it's not EVERY time.  I've tied in Monster Debugger
> and I can see after the freeze that updates, data and certain component
> lifecycle events that I'm looking at are still firing, just no visual.
>  About half the time, I just get a snapshot frozen where the last update
> happened, and sometimes the screen is completely white.
>
> -Jake
>
> On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui  wrote:
>
>
>
>
>
>
> Is it intermittent or can you reproduce it at will?
>
>
>
>
> On 4/4/12 12:32 PM, "Jake Churchill"  http://reyna...@gmail.com> > wrote:
>
>
>
>
>
>
> Coders:
>
> I posted an issue regarding the update to AIR 3.2 recently but I now have
> more information.  The app appears to freeze but I've plugged in some
> debugging tools and network monitors and I have been able to find out that
> the rendering of the app freezes, but the app itself continues to run.
>  Data continues to fly in, update and render events continue to fire on the
> components in question.  Focus appears to be acknowledged as well.  I've
> messed with a global error handler but I'm not seeing any errors being
> thrown.
>
> The basic app structure is this:  Main app opens a login screen, after
> successful login, the main app hides itself and opens up 1-3 windows, all
> of which manage their own data/events, etc.  I've been debugging events at
> the main app level as well as windows and I'm getting feedback from both at
> the appropriate times.
>
> I've seen an issue on an ipad app that freezes mid animation and the
> workaround was to add something else to the display list.  I coded in a
> workaround like that which adds a small transparent image to the display
> list of components as well as the window's stage and still nothing.
>
> I REALLY REALLY need some kind of help here.  I've been searching for 3
> days without any luck of the problem even being acknowledged other than the
> one ipad game source.  Here's that blog post again:
> http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/
>
> Please please help me out if you can.
>
> Thanks!
>
> -Jake Churchill
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>  
>


Re: [flexcoders] Colors in FB 4.6 - Hi lights all Identifiers

2012-04-04 Thread Peter Ginneberge

Window > Preferences

In the Preferences window type: "annotations" in the filter box at the top or 
go to:
General > Editors > Text Editors > Annotations

Select "Occurrences" in the Annotation types list and change the color to your 
liking.
Enjoy.

- Original Message - 
From: "hawkcode2" 
To: 
Sent: Wednesday, April 04, 2012 8:58 PM
Subject: [flexcoders] Colors in FB 4.6 - Hi lights all Identifiers


> Hi,
>
> I can not find where the setting is to chang the color for when you put the 
> curser on an identifier, it hilights every where it is 
> used.
>
> I love the feature, just want to change the color as its to close to other 
> colors.
>
> Thanks
>
> Rich



Re: [flexcoders] Rendering Freezes

2012-04-04 Thread Alex Harui
Mac and Win?  Different GPU configs?  What does memory and CPU for the process 
look like?


On 4/4/12 2:37 PM, "Jake Churchill"  wrote:






Alex,

It's intermittent, but routinely happens after the app has been open for 10-15 
minutes.  But, it's not EVERY time.  I've tied in Monster Debugger and I can 
see after the freeze that updates, data and certain component lifecycle events 
that I'm looking at are still firing, just no visual.  About half the time, I 
just get a snapshot frozen where the last update happened, and sometimes the 
screen is completely white.

-Jake

On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui  wrote:





Is it intermittent or can you reproduce it at will?




On 4/4/12 12:32 PM, "Jake Churchill" http://reyna...@gmail.com> > wrote:






Coders:

I posted an issue regarding the update to AIR 3.2 recently but I now have more 
information.  The app appears to freeze but I've plugged in some debugging 
tools and network monitors and I have been able to find out that the rendering 
of the app freezes, but the app itself continues to run.  Data continues to fly 
in, update and render events continue to fire on the components in question.  
Focus appears to be acknowledged as well.  I've messed with a global error 
handler but I'm not seeing any errors being thrown.

The basic app structure is this:  Main app opens a login screen, after 
successful login, the main app hides itself and opens up 1-3 windows, all of 
which manage their own data/events, etc.  I've been debugging events at the 
main app level as well as windows and I'm getting feedback from both at the 
appropriate times.

I've seen an issue on an ipad app that freezes mid animation and the workaround 
was to add something else to the display list.  I coded in a workaround like 
that which adds a small transparent image to the display list of components as 
well as the window's stage and still nothing.

I REALLY REALLY need some kind of help here.  I've been searching for 3 days 
without any luck of the problem even being acknowledged other than the one ipad 
game source.  Here's that blog post again:  
http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/

Please please help me out if you can.

Thanks!

-Jake Churchill





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


Re: [flexcoders] Rendering Freezes

2012-04-04 Thread Jake Churchill
Alex,

It's intermittent, but routinely happens after the app has been open for
10-15 minutes.  But, it's not EVERY time.  I've tied in Monster Debugger
and I can see after the freeze that updates, data and certain component
lifecycle events that I'm looking at are still firing, just no visual.
 About half the time, I just get a snapshot frozen where the last update
happened, and sometimes the screen is completely white.

-Jake

On Wed, Apr 4, 2012 at 4:12 PM, Alex Harui  wrote:

> **
>
>
> Is it intermittent or can you reproduce it at will?
>
>
>
> On 4/4/12 12:32 PM, "Jake Churchill"  wrote:
>
>
>
>
>
>
> Coders:
>
> I posted an issue regarding the update to AIR 3.2 recently but I now have
> more information.  The app appears to freeze but I've plugged in some
> debugging tools and network monitors and I have been able to find out that
> the rendering of the app freezes, but the app itself continues to run.
>  Data continues to fly in, update and render events continue to fire on the
> components in question.  Focus appears to be acknowledged as well.  I've
> messed with a global error handler but I'm not seeing any errors being
> thrown.
>
> The basic app structure is this:  Main app opens a login screen, after
> successful login, the main app hides itself and opens up 1-3 windows, all
> of which manage their own data/events, etc.  I've been debugging events at
> the main app level as well as windows and I'm getting feedback from both at
> the appropriate times.
>
> I've seen an issue on an ipad app that freezes mid animation and the
> workaround was to add something else to the display list.  I coded in a
> workaround like that which adds a small transparent image to the display
> list of components as well as the window's stage and still nothing.
>
> I REALLY REALLY need some kind of help here.  I've been searching for 3
> days without any luck of the problem even being acknowledged other than the
> one ipad game source.  Here's that blog post again:
> http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/
>
> Please please help me out if you can.
>
> Thanks!
>
> -Jake Churchill
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>
>  
>


Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-04 Thread Alex Harui
Do you have a simple test case?


On 4/4/12 8:43 AM, "Wouter Schreuders"  wrote:






spark DG

On 4 April 2012 17:28, Alex Harui  wrote:





MX or Spark DG?




On 4/4/12 12:05 AM, "Wouter Schreuders" http://wschreud...@gmail.com> > wrote:






I thought that that may be the case, so I removed all my custom itemrenderers 
but the problem remains, I've also noticed that the problem only occurs after I 
have entered a date range, if I stick with the standard date range then problem 
doesn't occur.

On 3 April 2012 22:23, Alex Harui http://aha...@adobe.com> > 
wrote:





That sounds more like an issue with custom renderers.




On 4/3/12 4:47 AM, "Wouter Schreuders" http://wschreud...@gmail.com>   > 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] Rendering Freezes

2012-04-04 Thread Alex Harui
Is it intermittent or can you reproduce it at will?


On 4/4/12 12:32 PM, "Jake Churchill"  wrote:






Coders:

I posted an issue regarding the update to AIR 3.2 recently but I now have more 
information.  The app appears to freeze but I've plugged in some debugging 
tools and network monitors and I have been able to find out that the rendering 
of the app freezes, but the app itself continues to run.  Data continues to fly 
in, update and render events continue to fire on the components in question.  
Focus appears to be acknowledged as well.  I've messed with a global error 
handler but I'm not seeing any errors being thrown.

The basic app structure is this:  Main app opens a login screen, after 
successful login, the main app hides itself and opens up 1-3 windows, all of 
which manage their own data/events, etc.  I've been debugging events at the 
main app level as well as windows and I'm getting feedback from both at the 
appropriate times.

I've seen an issue on an ipad app that freezes mid animation and the workaround 
was to add something else to the display list.  I coded in a workaround like 
that which adds a small transparent image to the display list of components as 
well as the window's stage and still nothing.

I REALLY REALLY need some kind of help here.  I've been searching for 3 days 
without any luck of the problem even being acknowledged other than the one ipad 
game source.  Here's that blog post again:  
http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/

Please please help me out if you can.

Thanks!

-Jake Churchill





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


[flexcoders] Rendering Freezes

2012-04-04 Thread Jake Churchill
Coders:

I posted an issue regarding the update to AIR 3.2 recently but I now have
more information.  The app appears to freeze but I've plugged in some
debugging tools and network monitors and I have been able to find out that
the rendering of the app freezes, but the app itself continues to run.
 Data continues to fly in, update and render events continue to fire on the
components in question.  Focus appears to be acknowledged as well.  I've
messed with a global error handler but I'm not seeing any errors being
thrown.

The basic app structure is this:  Main app opens a login screen, after
successful login, the main app hides itself and opens up 1-3 windows, all
of which manage their own data/events, etc.  I've been debugging events at
the main app level as well as windows and I'm getting feedback from both at
the appropriate times.

I've seen an issue on an ipad app that freezes mid animation and the
workaround was to add something else to the display list.  I coded in a
workaround like that which adds a small transparent image to the display
list of components as well as the window's stage and still nothing.

I REALLY REALLY need some kind of help here.  I've been searching for 3
days without any luck of the problem even being acknowledged other than the
one ipad game source.  Here's that blog post again:
http://www.blog.arnlweb.com/adobe/flash/air-3-2-rendering-freeze-bug/

Please please help me out if you can.

Thanks!

-Jake Churchill


[flexcoders] Colors in FB 4.6 - Hi lights all Identifiers

2012-04-04 Thread hawkcode2
Hi,

I can not find where the setting is to chang the color for when you put the 
curser on an identifier, it hilights every where it is used.

I love the feature, just want to change the color as its to close to other 
colors.

Thanks

Rich



Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-04 Thread Wouter Schreuders
spark DG

On 4 April 2012 17:28, Alex Harui  wrote:

> **
>
>
> MX or Spark DG?
>
>
>
> On 4/4/12 12:05 AM, "Wouter Schreuders"  wrote:
>
>
>
>
>
>
> I thought that that may be the case, so I removed all my custom
> itemrenderers but the problem remains, I've also noticed that the problem
> only occurs after I have entered a date range, if I stick with the standard
> date range then problem doesn't occur.
>
> On 3 April 2012 22:23, Alex Harui  wrote:
>
>
>
>
>
>
> That sounds more like an issue with custom renderers.
>
>
>
>
> On 4/3/12 4:47 AM, "Wouter Schreuders"  http://wschreud...@gmail.com> > 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
>
>  
>


[flexcoders] Combobox / DropDownList

2012-04-04 Thread hawkcode2
Hi,

I have a mobile app and I'm using the mx combobox. Adobe doesn't recomend this 
for mobile apps. I tried the spark combo and dropdown, both of which do not 
work well in a mobile app. Looked horible and didn't respond to touches.

But Abobe also says "Adobe discourages using ComboBox when targeting profiles: 
mobileDevice."

The new spinner is out, it takes up way to much real-estate.

So whats a guy to do?  :)

Thanks

Rich



Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-04 Thread Alex Harui
MX or Spark DG?


On 4/4/12 12:05 AM, "Wouter Schreuders"  wrote:






I thought that that may be the case, so I removed all my custom itemrenderers 
but the problem remains, I've also noticed that the problem only occurs after I 
have entered a date range, if I stick with the standard date range then problem 
doesn't occur.

On 3 April 2012 22:23, Alex Harui  wrote:





That sounds more like an issue with custom renderers.




On 4/3/12 4:47 AM, "Wouter Schreuders" http://wschreud...@gmail.com> > 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


[flexcoders] Re: AIR 3.2 Update Breaks My App

2012-04-04 Thread reygeek
I'm bumping this in hopes of a response from anyone.  All my debugging 
approaches have come up empty so far.

Thanks!

-Jake

--- In flexcoders@yahoogroups.com, Jake Churchill  wrote:
>
> 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
>




[flexcoders] cannot call other class where is in same folder

2012-04-04 Thread Suvd Sukhbaatar
Hello, I'm beginner. I have a problem with Flash builder (AS). This
group can help me, I think.
I was trying to create actionscript game, already had a 2 class file,
and first can call second class, it was worked.
But suddenly cannot call second class. I have any changes of two class
file, suddenly run debug, then cannot call other class.
I don't know what I must to do. Hope you guys can help me or can tell me
where can I take some help. Thanks for advance.
Regards
There is code :
import flash.display.Sprite;import flash.utils.*;import
flash.events.Event; [SWF(width = '730', height = '420', backgroundColor
= '#FF', frameRate = '30')]//worked, so I think first class is
OK,public class index extends Sprite{ private var cell_size:int = 21;
private var maptile:int = 38;//this is tiled map named other
class. map is class object private var map:tiledmap; public function
index() {  addEventListener(Event.ADDED_TO_STAGE, init); }   private
function init(e:Event = null):void { 
removeEventListener(Event.ADDED_TO_STAGE, init);   
//tiledmap constuctor method take cellsize and maptile count  map = new
tiledmap(cell_size, maptile);//then add map to sprite of
index class  addChild(map); }}
tiledmap class:
import flash.display.Sprite; import flash.events.Event; import
flash.events.MouseEvent; import flash.utils.*;   public class tiledmap
extends Sprite {  public function tiledmap(cell_size:int, maptile:int) 
{   //draw some tiled map 38x38 width and height is 21.   ...  } }


Re: [flexcoders] datagrid not rendering after dataprovider update

2012-04-04 Thread Wouter Schreuders
I thought that that may be the case, so I removed all my custom
itemrenderers but the problem remains, I've also noticed that the problem
only occurs after I have entered a date range, if I stick with the standard
date range then problem doesn't occur.

On 3 April 2012 22:23, Alex Harui  wrote:

> **
>
>
> 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
>
>  
>