Deprecated: Assigning the return value of new by reference is deprecated in /var/www/omflash.dk/public_html/wp-includes/cache.php on line 33

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/omflash.dk/public_html/wp-content/plugins/sem-subscribe-me2/sem-subscribe-me.php on line 511

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method UltimateTagWarriorActions::ultimate_query_vars() should not be called statically in /var/www/omflash.dk/public_html/wp-includes/functions.php on line 1252

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method UltimateTagWarriorActions::ultimate_posts_where() should not be called statically in /var/www/omflash.dk/public_html/wp-includes/functions.php on line 1252

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method UltimateTagWarriorActions::ultimate_posts_join() should not be called statically in /var/www/omflash.dk/public_html/wp-includes/functions.php on line 1252

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method UltimateTagWarriorActions::ultimate_tag_templates() should not be called statically in /var/www/omflash.dk/public_html/wp-includes/functions.php on line 1329
Filter - omFlash();
Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method UltimateTagWarriorActions::ultimate_add_ajax_javascript() should not be called statically in /var/www/omflash.dk/public_html/wp-includes/functions.php on line 1329

AntiAliasType.ADVANCED + Filter = Trouble

Kategori: Tips og tricks | Kommentarer (0)
Gemt: 2011-01-27 12:56



Deprecated: preg_replace() [function.preg-replace]: The /e modifier is deprecated, use preg_replace_callback instead in /var/www/omflash.dk/public_html/wp-includes/functions-formatting.php on line 83

Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method UltimateTagWarriorActions::ultimate_the_content_filter() should not be called statically in /var/www/omflash.dk/public_html/wp-includes/functions.php on line 1252

Strict Standards: Non-static method UltimateTagWarriorActions::regExEscape() should not be called statically in /var/www/omflash.dk/public_html/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-actions.php on line 638

Strict Standards: Non-static method UltimateTagWarriorActions::regExEscape() should not be called statically in /var/www/omflash.dk/public_html/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-actions.php on line 638

Strict Standards: Non-static method UltimateTagWarriorActions::regExEscape() should not be called statically in /var/www/omflash.dk/public_html/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-actions.php on line 639

Strict Standards: Non-static method UltimateTagWarriorActions::regExEscape() should not be called statically in /var/www/omflash.dk/public_html/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-actions.php on line 639

Strict Standards: Non-static method UltimateTagWarriorActions::replaceTagWithLink() should not be called statically in /var/www/omflash.dk/public_html/wp-content/plugins/UltimateTagWarrior/ultimate-tag-warrior-actions.php on line 643

Bare et hurtigt lille tip:
Hvis du bruger AntiAliasType.ADVANCED + et eller anden filter, eksempelvis DropShadowFilter, på dine tekstfelter, så vil du med stor sandsynlighed rende ind i et problem hvor noget af teksten kan hoppe vertikalt.
Hvis tekstfeltet yderligere også er sat til autosize, så er der også en risiko for at det sidste bogstav på en linie bliver beskåret.

Netop de problemer har drillet mig den sidste uges tid, men med hjælp fra en blog (som jeg desværre ikke kan huske hvad hedder) fandt jeg ud af, at det at stille værdien rightMargin umiddelbart ser ud til at kunne løse begge problemer.

Her et eksempel som jeg i hvert fald ikke har fået til at fejle endnu:

var _shadow:DropShadowFilter = new DropShadowFilter(1,
						95,
						0x000000,
						1,
						0,
						0,
						0.5,
						BitmapFilterQuality.HIGH
						);

var _tf:TextFormat = new TextFormat();
_tf.rightMargin = 3;
_tf.size = 15;
_tf.align = TextFormatAlign.LEFT;

var _txt:TextField = new TextField();
_txt.text = "En eller anden tekst";
_txt.embedFonts = true;
_txt.multiline = false;
_txt.autoSize = TextFieldAutoSize.LEFT;
_txt.antiAliasType = AntiAliasType.ADVANCED;
_txt.defaultTextFormat = _tf;
_txt.setTextFormat(_tf);
_txt.filters = [_shadow];
addChild(_txt);