Is there any way change avatar asset (for example to switch its hat)
dynamically ? (or do I have to prepare swf with the figure with hat A and also
the figure with hat B) ?
Check the example provided with OpenSpace: you can change specific assets, without having to create the full figure for all the possible combinations. It is just a matter of how you build your avatar class.