Hi Erik it worked. Thanks!
________________________________ From: "Thomas, Erik" <[email protected]> To: [email protected] Sent: Monday, February 2, 2009 6:41:14 PM Subject: RE: [flexcoders] RERENDER - Is there a way to force a canvas to re-render/refresh? There are a couple stategies that may work in different circumstances. For example, calling executeBindings( true) will force all bound data to requery their sources which essentially updates your view if it's a form and/or if it's the data you really want to refresh. However, if you just want the entire layout to repaint without regard to refreshing data bindings, the sure fire way is this: invalidateDisplayLi st(); validateNow( ); The first call to invalidate the display list *might* result in the view refreshing, but it only marks the view as needing a refresh and doesn't always immediately do so. By calling validateNow( ) after invalidating your display list, you are "forcing" the UI to repaint immediately. I think that's probably what you meant when you said you wanted to "force" a refresh. You can see this pattern used all over the Flex SDK. Erik ________________________________ From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Jeffry Houser Sent: Monday, February 02, 2009 3:36 PM To: flexcod...@yahoogro ups.com Subject: Re: [flexcoders] RERENDER - Is there a way to force a canvas to re-render/refresh? invalidateDisplayLi st(); sailorsea21 wrote: > Hi everyone, is there a way to force a canvas to rerender/refresh? > > Thanks. > > David > > > ------------ --------- --------- ------ > > -- > Flexcoders Mailing List > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt > Alternative FAQ location: https://share. acrobat.com/ adc/document. do?docid= > 942dbdc8- e469-446f- b4cf-1e62079f684 7 > Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. > comYahoo! Groups Links > > > > > -- 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.com? c=104 -- http://www.theflexs how.com http://www.jeffryho user.com -- Part of the DotComIt Brain Trust

