AFAIK, both are "between 0 and 1".

The default value for strength = 1, meaning 100% strength.
If strength would take a value between 0 and 255 a default of 1 would make no 
sense at all (well at least not to me).

So, yes the docs are wrong.

regards,
Muzak

----- Original Message ----- 
From: "Paul Venton" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Friday, August 24, 2007 7:45 PM
Subject: RE: [Flashcoders] DropShadowFilter rendering issue: SOLVED


> According to the documentation, the alpha property accepts a value between 0
> and 1, and strength a value between 0 and 255.
>
> So is the documentation wrong?
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Muzak
> Sent: 24 August 2007 17:58
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] DropShadowFilter rendering issue: SOLVED
>
> The same goes for alpha.
> I see you have 75 as alpha value, should be 7.5.
>
> regards,
> Muzak
>
> ----- Original Message ----- 
> From: "Alan MacDougall" <[EMAIL PROTECTED]>
> To: <flashcoders@chattyfig.figleaf.com>
> Sent: Friday, August 24, 2007 6:19 PM
> Subject: Re: [Flashcoders] DropShadowFilter rendering issue: SOLVED
>
>
>> Alan MacDougall wrote:
>>> After I create a clip with attachMovieClip, I attempt to write a
> DropShadowFilter to it using the following code:
>>>
>>> var shadow:DropShadowFilter = new DropShadowFilter(
>>>                5,            // distance
>>>                45,            // angle
>>>                0x666666,    // color
>>>                75,            // alpha
>>>                10,            // blurX
>>>                10,            // blurY
>>>                100            // strength
>>>            );
>>> myClip.filters = new Array(shadow);
>>>
>> Myth: the strength property of DropShadowFilter takes a value from 0 to
> 100.
>>
>> Fact: It's actually 0.0 to 1.0. I was trying to apply a 10,000% strength
> drop shadow.
>>
>> MYTH BUSTED.


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to