I think so. But to get it to work I think you have to set the
borderStyle="solid" and borderWidth="0".

Juan
scalenine.com

--- In [email protected], "Firdosh Tangri" <[EMAIL PROTECTED]>
wrote:
>
> doesnt the Canvas have a dropShadow Style applied to it like the
Panel Class
> has a dropShadow by default
> 
> which is why I added
> aboutMe.setStyle("dropShadowEnabled",true);
> > aboutMe.setStyle("shadowDistance",3);
> > aboutMe.setStyle("shadowDirection","right");
> 
> 
> thanks
> firdosh
> 
> On 16 Mar 2007 06:57:11 -0700, peterent <[EMAIL PROTECTED]> wrote:
> >
> >   --- In [email protected]
<flexcomponents%40yahoogroups.com>,
> > "Firdosh Tangri" <ftangri@>
> >
> > wrote:
> > >
> > > Can an empty Canvas( with backgroundColor) have a dropShadow or
corner
> > > radius effect
> > >
> > > var aboutMe:Canvas=new Canvas();
> > > aboutMe.width=this.width*(2/3);
> > > aboutMe.height=this.height*(2/3);
> > > aboutMe.setStyle("backgroundColor",0x333333);
> > > aboutMe.setStyle("dropShadowEnabled",true);
> > > aboutMe.setStyle("shadowDistance",3);
> > > aboutMe.setStyle("shadowDirection","right");
> > > aboutMe.setStyle("cornerRadius",6);
> > >
> > > aboutMe.x=(this.width/2) - (aboutMe.width/2);
> > > aboutMe.y=(this.height/2) - (aboutMe.height/2);
> > > mainCnvs.addChild(aboutMe);
> > >
> > > I cannot see the shadow no matter what I do ,
> > > nor can I see the corner radius
> > >
> > >
> > >
> > >
> > > thanks
> > > cheers :)
> > > firdosh
> > >
> > You can add a DropShadowFilter to the canvas as long as it has a
> > background:
> >
> > import flash.filters.*;
> > ...
> > aboutMe.filters = [ new DropShadowFilter() ];
> >
> >  
> >
>


Reply via email to