我可以在那个网站上看到网址是http://stackoverflow.com/questions/ask
.之后没有文件扩展名,如果ask是一个文件夹,并且在index.aspx内部,它看起来就像http://stackoverflow.com/questions/ask/
.
他们是怎么做到的?他们如何使扩展消失?谢谢,幻影
我正在使用For Statement
Haxe和OpenFL 的时钟,为Bitmap对象创建淡入和淡出效果(使用alpha
属性).你有没有使用其他方法?我正在使用一个For
语句,而不是Sys.sleep(0.2);
因为它使一个"加载"光标图标,程序卡住了.调用位图bmp
,定时器为tmrSplash
.
资源:
tmrSplash.run = function changeAlpha(): Void {
var f: Float = 1;
while (f <= 1 && f >= 0) {
bmp.alpha = f;
var a: Int = 0;
while (a < 500000000) {
a++;
if (a >= 500000000) {
a = 0;
}
f -= 0.0005;
trace(f);
}
tmrSplash.stop();
}
}
Run Code Online (Sandbox Code Playgroud)
谢谢.