※このページは書きかけです。
new Theater({
img: [
"img/sample1.gif",
"img/sample2.gif",
"img/sample3.gif"
],
scenario:[
function(){
this.work.count = 0;
this.act({
img: "img/sample1.gif",
msg: "カウント:" + this.work.count
});
},
function(){
this.work.count++;
this.act({
img: "img/sample2.gif",
msg: "カウント:" + this.work.count
});
},
function(){
this.work.count++;
this.act({
img: "img/sample3.gif",
msg: "カウント:" + this.work.count
});
}
]
});
new Theater({
img: [
"img/sample1.gif",
"img/sample2.gif",
"img/sample3.gif"
],
scenario:[
function(){
this.act({
img: "img/sample1.gif",
msg: "trueを返却・・・"
});
return true;
},
function(result){
this.act({
img: "img/sample2.gif",
msg: "前のシナリオ関数の返却値:" + result
+ "。falseを返却・・・"
});
return false;
},
function(result){
this.act({
img: "img/sample3.gif",
msg: "前のシナリオ関数の返却値:" + result
});
}
]
});
※このページは書きかけです。