Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 移动到另一帧_Actionscript_Actionscript 2 - Fatal编程技术网

Actionscript 移动到另一帧

Actionscript 移动到另一帧,actionscript,actionscript-2,Actionscript,Actionscript 2,我正在尝试使用ActionScript2.0制作一个隐藏对象游戏 当所有列出的项目都已找到时,我需要帮助移动到另一帧。任何人都可以帮忙。我真的不知道从哪里开始 stop(); _root.onEnterFrame = function() { if (objectcount == 5) { //or however many hidden objects you have play(); //goes to next frame... add the "stop();" code on the

我正在尝试使用ActionScript2.0制作一个隐藏对象游戏

当所有列出的项目都已找到时,我需要帮助移动到另一帧。任何人都可以帮忙。我真的不知道从哪里开始

stop();
_root.onEnterFrame = function() {
if (objectcount == 5) { //or however many hidden objects you have
play(); //goes to next frame... add the "stop();" code on the next frame to stop it from continuing to move onto the next frames... additionally you could use _root.goToAndStop(2);
}
}

object1.onPress = function() {
trace("object1found");
objectcount ++; //adds "1" to the number of objects found
object1._visible = false; //hides the object this was just found
}

object2.onPress = function() {
trace("object1found");
objectcount ++; //adds "1" to the number of objects found
object2._visible = false; //hides the object this was just found
}

object3.onPress = function() {
trace("object1found");
objectcount ++; //adds "1" to the number of objects found
object3._visible = false; //hides the object this was just found
}

object4.onPress = function() {
trace("object1found");
objectcount ++; //adds "1" to the number of objects found
object4._visible = false; //hides the object this was just found
}

object5.onPress = function() {
trace("object1found");
objectcount ++; //adds "1" to the number of objects found
object5._visible = false; //hides the object this was just found
}

//and so on...