View Mode: Normal | Article List
Flash Stagemanager
[ 2007-04-22 11:17:34 | Author: liuhuan ]
Stagemanager allows you to align thing on Stage easily. By Denis Kolyako.
http://dev.etcs.ru/blog/as2/ru/etcs/utils/stagemanager/
demo: http://etcs.ru/pre/StageManagerDemo/
download: http://dev.etcs.ru/framework.zip
http://dev.etcs.ru/blog/as2/ru/etcs/utils/stagemanager/
demo: http://etcs.ru/pre/StageManagerDemo/
download: http://dev.etcs.ru/framework.zip
Magic hat light effect in Photoshop
[ 2007-04-18 08:59:02 | Author: liuhuan ]
window.history.back in flash using ExternalInterface
[ 2007-04-17 22:58:45 | Author: liuhuan ]
head:usage:
Quote
import flash.external.*;
Quote
if (Key.isDown(Key.BACKSPACE)) {
flash.external.ExternalInterface.call("window.history.back");
}
if (Key.isDown(116)) {
flash.external.ExternalInterface.call("location.reload", true);
}
flash.external.ExternalInterface.call("window.history.back");
}
if (Key.isDown(116)) {
flash.external.ExternalInterface.call("location.reload", true);
}
flash中简单的动态创建遮罩方法
[ 2007-04-14 22:24:17 | Author: liuhuan ]
Quote
this.mask = this.createMask(this.maxWidth, this.mcText1._height, 100);
this.mcText.setMask(this.mask1);
function createMask(w, h, level) {
var mask = this.createEmptyMovieClip("mask"+level, level);
with (mask) {
moveTo(0, 0);
beginFill(0);
lineTo(w, 0);
lineTo(w, h);
lineTo(0, h);
lineTo(0, 0);
endFill();
}
return (mask);
}
this.mcText.setMask(this.mask1);
function createMask(w, h, level) {
var mask = this.createEmptyMovieClip("mask"+level, level);
with (mask) {
moveTo(0, 0);
beginFill(0);
lineTo(w, 0);
lineTo(w, h);
lineTo(0, h);
lineTo(0, 0);
endFill();
}
return (mask);
}