Actually, what I tried was using an ArrayCollection instead of an ArrayList for 
the dataProvider, then refreshing that ArrayCollection. But, it didn't force a 
redraw. 

----- Original Message -----

From: [email protected] 
To: [email protected] 
Sent: Monday, October 14, 2013 12:11:45 PM 
Subject: Re: how to force redraw of custom spark buttonbar? 

Yes, I tried that as well (forgot to mention it below). 

----- Original Message -----

From: "mark goldin" <[email protected]> 
To: "users" <[email protected]> 
Sent: Monday, October 14, 2013 12:05:46 PM 
Subject: Re: how to force redraw of custom spark buttonbar? 

Did you try ArrayCollection(myBar.dataProvider).refresh() ? 


On Mon, Oct 14, 2013 at 1:58 PM, <[email protected]> wrote: 

> (using SDK 4.10) 
> 
> I've tried each of the following (independently): 
> 
> myBar.invalidateDisplayList(); 
> myBar.invalidateProperties(); 
> myBar.invalidateSize(); 
> myBar.dataProvider=myDataProvider (e.g. changing the dataProvider, an 
> ArrayList) 
> myBar.includeInLayout=false; then later, myBar.includeInLayout=true; 
> 
> I have some custom logic in the first/middle/last button-skin that I want 
> to execute to disable some buttons. I currently have it inside 
> 
> override protected function measure():void { ... } 
> 
> Any ideas I can try? Thanks in advance for any comments. 
> 


Reply via email to