PHP beginner |
|
Wie kan mij uitleggen wat volgende actionscript gaat doen?
type = "extra"
game = "mystery_game"
if (Math.round(Math.random() * 200) != 1) {
for ( i = 0; i < Math.ceil(Math.random() * 10); i++){
var questionMC = _root.attachMovie("question", "question" + i, _root.getNextHighestDepth())
questionMC._rotation = questionMC._rotation + (Math.random() * 90)
questionMC._xscale = questionMC._xscale - (Math.random() * 50)
questionMC._yscale = questionMC._xscale
questionMC._x = Math.random() * 450 + 50
questionMC._y = Math.random() * 300 + 50
}
var points = 0
var knop = new sendPointsButton (Math.random() * 400 + 50,Math.random() * 300 + 50,"Next",_root,_root.getNextHighestDepth())
} else {
var winnerMC = _root.attachMovie("winner", "winner", _root.getNextHighestDepth())
winnerMC._x = Math.random() * 350 + 100
winnerMC._y = Math.random() * 300 + 50
var clothes = "557"
var points = 1000000
var knop = new sendPointsButton (Math.random() * 400 + 50,Math.random() * 300 + 50,"Next",_root,_root.getNextHighestDepth())
}
type = "extra" game = "mystery_game" if (Math .round(Math .random () * 200) != 1) { for ( i = 0; i < Math .ceil(Math .random () * 10); i ++){ var questionMC = _root.attachMovie("question", "question" + i, _root.getNextHighestDepth()) questionMC._rotation = questionMC._rotation + (Math.random() * 90) questionMC._xscale = questionMC._xscale - (Math.random() * 50) questionMC._yscale = questionMC._xscale questionMC._x = Math.random() * 450 + 50 questionMC._y = Math.random() * 300 + 50 } var points = 0 var knop = new sendPointsButton (Math.random() * 400 + 50,Math.random() * 300 + 50,"Next",_root,_root.getNextHighestDepth()) } else { var winnerMC = _root.attachMovie("winner", "winner", _root.getNextHighestDepth()) winnerMC._x = Math.random() * 350 + 100 winnerMC._y = Math.random() * 300 + 50 var clothes = "557" var points = 1000000 var knop = new sendPointsButton (Math.random() * 400 + 50,Math.random() * 300 + 50,"Next",_root,_root.getNextHighestDepth()) }
|