Strict Standards: Declaration of action_plugin_blog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/blog/action.php on line 13

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/indexmenu/action.php on line 13

Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/importoldchangelog/action.php on line 8

Strict Standards: Declaration of action_plugin_importoldindex::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/importoldindex/action.php on line 8

Strict Standards: Declaration of action_plugin_include::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/lib/plugins/include/action.php on line 19

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 208

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 421

Deprecated: Assigning the return value of new by reference is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/parserutils.php on line 594

Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/cache.php on line 291

Deprecated: Function split() is deprecated in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/inc/auth.php on line 154

Strict Standards: Only variables should be passed by reference in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/doku.php on line 73
asもやってみよう [開発チーム]
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/data/cache/f/ff8eb1f5ae1e438816a7ed586e15884c.code failed
  • swfはみなみまで・・
var sq:MovieClip;
var depth:Number = 1;
var sqSize:Number = 15;
 
with (_root) {
	sq = createEmptyMovieClip("sq", getNextDepth());
	sq.beginFill(Math.floor(Math.random()*255*255*255),100);
	sq.moveTo(0,0);
	sq.lineTo(sqSize,0);
	sq.lineTo(sqSize,sqSize);
	sq.lineTo(0,sqSize);
	sq.lineTo(0,0);
	sq.endFill();
	sq.timerDefalult = 10;
	sq.timer = sq.timerDefalult;
	sq.moveSpeedDefalult = 5;
	sq.moveSpeed = sq.moveSpeedDefalult;
	sq.onEnterFrame = enterAction;
 
}
 
function enterAction():Void {
	this.moved = false;
	if (this._x<0) {
		this._x = 0;
		this.PRESS_LEFT = false;
	} else {
		this.PRESS_LEFT = Key.isDown(Key.LEFT);
	}
	if (this._x>(Stage.width-this._width)) {
		this._x = Stage.width-this._width;
		this.PRESS_RIGHT = false;
	} else {
		this.PRESS_RIGHT = Key.isDown(Key.RIGHT);
	}
 
	if (this._y<0) {
		this._y = 0;
		this.PRESS_UP = false;
	} else {
		this.PRESS_UP = Key.isDown(Key.UP);
	}
	if (this._y>(Stage.height-this._height)) {
		this._y = Stage.height-this._height;
		this.PRESS_DOWN = false;
	} else {
		this.PRESS_DOWN = Key.isDown(Key.DOWN);
	}
	if(this.PRESS_LEFT or this.PRESS_RIGHT or this.PRESS_UP or this.PRESS_DOWN){
		//this.moveSpeed++;
	}else{
		//this.moveSpeed = 	this.moveSpeedDefalult;
	}
	this.timer--;
	this.timer--;
	if (this.timer<0) {
		this.timer = this.timerDefalult;
	}
	moveAction(this);
}
 
function moveAction(target):Void {
	var old_x:Number = target._x;
	var old_y:Number = target._y;
	target.moved = false;
	var speed:Number = target.moveSpeed;
	if (target.PRESS_LEFT) {
		target._x -= speed;
		target.moved = true;
		if (target._x<0) {
			target._x = 0;
		}
	}
 
	if (target.PRESS_RIGHT) {
		target._x += speed;
		target.moved = true;
		if (target._x>(Stage.width-target._width)) {
			target._x = Stage.width-target._width;
		}
	}
	if (target.PRESS_UP) {
		target._y -= speed;
		target.moved = true;
		if (target._y<0) {
			target._y = 0;
		}
	}
 
	if (target.PRESS_DOWN) {
		target._y += speed;
		target.moved = true;
		if (target._y>(Stage.height-target._height)) {
			target._y = Stage.height-target._height;
		}
	}
	if (target.moved and target.timer == 0) {
		target.timer = 10;
		makeShadow(old_x,old_y,target);
	}
}
 
 
function makeShadow(sd_x, sd_y, target):Void {
	with (_root) {
		var pos:Number = getNextDepth();
		var sd:MovieClip = createEmptyMovieClip("sd"+pos, pos);
		sd.swapDepths(_root.sq);
		sd.beginFill(Math.floor(Math.random()*255*255*255),90);
		sd.moveTo(0,0);
		sd.lineTo(sqSize,0);
		sd.lineTo(sqSize,sqSize);
		sd.lineTo(0,sqSize);
		sd.lineTo(0,0);
		sd.endFill();
		if (target.PRESS_LEFT) {
			sd._L = true;
		} else {
			sd._L = false;
		}
 
		if (target.PRESS_RIGHT) {
			sd._R = true;
		} else {
			sd._R = false;
		}
		if (target.PRESS_UP) {
			sd._U = true;
		} else {
			sd._U = false;
		}
 
		if (target.PRESS_DOWN) {
			sd._D = true;
		} else {
			sd._D = false;
		}
 
		sd._x = sd_x;
		sd._y = sd_y;
		sd.counter = 2;
		sd.onEnterFrame = enterSdAction;
	}
}
 
function enterSdAction():Void {
	this._alpha--;
	this._alpha--;
	this._alpha--;
	this._alpha--;
	this._alpha--;
	this._alpha--;
	if (this.counter == 2) {
		this._x++;
		this._y++;
		this._height--;
		this._width--;
		this._height--;
		this._width--;
	}
	this.counter--;
	if (this.counter == 0) {
		this.counter =2;
	}
	if (this._alpha<0) {
		this.removeMovieClip();
	}
}
 
 
 
function getNextDepth():Number {
	return depth++;
}
asもやってみよう.txt · 最終更新: 2010/07/27 15:47 (外部編集)
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

Strict Standards: Only variables should be passed by reference in /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/dokuwiki/doku.php on line 81