class WMAbout extends Sprite
Available on all platforms
About message
Instance Fields
var font_large_ratio:Float
font size ratio for large characters: stageWidth * this
value is used
as font size. Default value is 0.05. If you set this value, you must
invoke setFontSizeLargeByRatio function to set font size.
var font_size_large:Float
font size for characters such as "wm3d"; using font_large_ratio
will be
better since that value considers the window width. See it and
setFontSizeSmallByRatio function.
var font_small_ratio:Float
font size ratio for small characters: stageWidth * this
value is used
as font size. Default value is 0.03. If you set this value, you must
invoke setFontSizeSmallByRatio function to set font size.
var margin_ratio:Float
margin size ratio: stageWidth * this
value is used as the margin size.
Default value is 0.1.
function new(win:Stage):Void
Constructor. You can specify a Stage where about message will be displayed
by win
.
function resetFontSizes():Void
reset font size according to the font_large_ratio
and font_small_ratio
function setFontSizeLargeByRatio(f:Float):Void
set font_size_large
from font_large_ratio
and stage width.
If argument f
is given, f
is used as fontlargeratio.
function setFontSizeSmallByRatio(f:Float):Void
set font_size_small
from font_small_ratio
and stage width.
If argument f
is given, f
is used as fontsmallratio.
function setMarginByRatio(f:Float):Void
set margin
from margin_ratio
and stage width.
If argument f
is given, f
is used as margin_ratio.