AS3.0重播整部影片(* SWF文件) [英] AS3.0 Replay the whole movie (*SWF file)

查看:243
本文介绍了AS3.0重播整部影片(* SWF文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ActionScript 3.0和Flash做了一个小游戏。

I made a small game in Actionscript 3.0 and flash.

当玩家赢得游戏或者是游戏结束的玩家应该有一个选项,以重播比赛。

When the player wins the game or is 'game over' the player should have a option to replay the game.

所以我的问题是:有没有办法来回放整个电影用的Actionscript?我知道,我可以重新设置时间表回0,并重新实例化的所有类,影片剪辑,VAR的等...但我不知道是否有人知道一个简单的解决方案。

So my question is: Is there a way to replay the whole movie with Actionscript? I know, i could reset the timeline back to 0, and re-instantiate all the classes, movieclips, var's ect... but i was wondering if anyone knows a easier solution.

推荐答案

您可以删除SwfObject的,然后重新添加。看看这里。这是SWFObject的参考

You can remove the swfObject and add it again. Look here. This is the swfObject reference.

这篇关于AS3.0重播整部影片(* SWF文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆