flash on 2010-4-9

to cast shadows we will need dummy sprite object
that we can draw our shadows into using the ShadowCaster object
That dummy sprite will then be passed into a moviematerial
where we can project our shadows into our 3D scene
Instantiate your dummy sprite
draw a rectangle into your dummy sprite
note that if you don't want your plane to show in the scene
but you do want shadows, you can set the alpha of the
beginFill method to 0 (shadows will be drawn but the plane color fill will not)
the larger the "drawRect" shape the better the quality of your shadows
Add the dummy sprite to a MovieMaterial object
create a plane and apply your dummy sprite MovieMaterial to it
rotate and orient your plane so that it is aligned as the floor/ground
Instantiate your shadowCaster object
The parameters are as follows
ShadowCaster("name", shadow color, blend mode, shadow alpha, [filters]);
Set the light type (options are SPOTLIGHT and DIRECTIONAL)
var flatShaderMat:FlatShadeMaterial;
light
2nd would be true f