PDA

View Full Version : Viewstate change flicker


Martin__
02-12-2009, 06:24 PM
Hi all,

i'm encountering this bug:
http://bugs.adobe.com/jira/browse/SDK-18735

the flickering is more heavy on more complex custom components, it also accurs in the archive.zip posted in the bug report, but is hardly noticable there.

The problem seems to be that the new state is visible before all children got created and initialized.

Setting creationpolicy='all' in the addchild tags doesn't change this behaviour (i also dont want to create all viewstates at startup since this takes some seconds)

Anybody knows a workaround for this?

thnx in advance
Martin

Martin__
02-13-2009, 02:44 PM
small update:

i traced some events relating the complex component which is flickering:

enterframe event
render event
before viewstate change
preinitialize: ...stepbox.Step3_57
initialize: ...stepbox.Step3_57
after viewstate change
enterframe event
render event
enterframe event
render event
enterframe event
creationcomplete: ...stepbox.Step3_57

'before viewstate change' is directly before currentState property changed, 'after viewstate change' directly after

the problem are the 3 frames between initialize and creationcomplete, where do they come from? i ever thought instantiation of a component is done in one frame/code block...