[sIFR3-dev] Assorted annoyances :)

Mark Wubben mark at novemberborn.net
Sun Aug 6 19:23:39 GMT 2006


Apologies for the late reply, I need to check my "need to reply" box  
more often...

On Aug 3, 2006, at 9:23 AM, Fredrik Bränström wrote:

> I exported my v8 .swf with a dropshadow, at around 70% strength.  
> This makes sIFR display the text with a faint dropshadow by  
> default, as intended. However, it doesn't allow adjusting it with  
> settings in the kwargs objects. It reacts when I set strength: 1,  
> but not when I set it to strength: 0.5 (tried .5 too) or anything  
> below 1. Even strength: 0 doesn't remove the effect.

I'm not sure if sIFR can override filters defined through the Flash  
IDE. Probably best to define through script (either in Options.as or  
on JavaScript).

> If I remove the filter from the .swf so that it does not render it  
> by default, and then try to set a dropshadow and in the kwargs  
> specify strength to < 1, I don't get any effect. It seems as though  
> the .swf doesn't understand the fractions, only 100% or nothing.

That's a bug, thanks.

>
> Ergh. While writing this mail, I discovered that if I quote the  
> fraction... it kind of works. But setting the effect in the kwargs  
> only and with a fractioned strength, produces a blurry shadow, as  
> opposed to the much sharper one you get [1] when you set the filter  
> in Flash before exporting (and then use a strength < 1 or omit the  
> filter spec in the kwargs). I don't know why this is...

I'll put out the fixed version (r120 or above), could you try again  
using the actual fraction?

> Something else: I looked at an old test case... it is quite clear  
> that the cut-off bug looks the way it does because of the .swf  
> textfield dimensions, the textfield doesn't get correctly resized  
> internally by the ActionScript, I guess...

That'd be weird, as it's always resized to the height and width of  
the text. Does this still occur with the latest revisions (r119 or  
above)?
> On yet another topic (I guess I should ideally send separate  
> mails...), wouldn't it be possible to set the width of the Flash to  
> exactly what's needed for the text to be visible, and nothing more?  
> I keep getting annoyed with the need to have 100% width <embed>  
> objects all over the place.

The reason it's 100% is that it won't cause scrollbars when you make  
the window smaller, the text should "simply" disappear. As I want to  
add reflow support when the font size and window size change, this  
might no longer be needed.

Kind regards,

--
Mark Wubben
http://novemberborn.net/





More information about the sifr3-dev mailing list