小编Cha*_*lts的帖子

如何根据开始时间和持续时间计算结束时间?

我正在构建一个事件日历并将开始时间传递给PHP,格式为2009-09-25 15:00:00.持续时间也会通过,可能是60分钟或3小时的格式.从小时转换为分钟不是问题.如何为确定的起点添加一段时间以正确格式化结束时间?

php time datetime duration

3
推荐指数
2
解决办法
3811
查看次数

如何用纯色填充actionscript 3多边形?

我正在为项目构建地图编辑器,需要绘制六边形并用纯色填充它.我的形状是正确的但是对于我的生活无法弄清楚如何填充它.我怀疑这可能是因为这个东西是Shape,Sprite还是UIComponent.这是我对多边形本身的看法:

import com.Polygon;
import mx.core.UIComponent;

public class greenFillOne extends UIComponent {
    public var hexWidth:Number = 64;
    public var hexLength:Number = 73;

    public function greenFillOne() {
        var hexPoly:Polygon = new Polygon;
        hexPoly.drawPolygon(40,6,27+(hexWidth*.25),37,0x499b0e,1,30);
        addChild(hexPoly);
    }
}
Run Code Online (Sandbox Code Playgroud)

actionscript polygon shape uicomponents fill

1
推荐指数
1
解决办法
8612
查看次数

标签 统计

actionscript ×1

datetime ×1

duration ×1

fill ×1

php ×1

polygon ×1

shape ×1

time ×1

uicomponents ×1