如何在 Action Script 3.0 中存储帧之间的变量数据

发布于 2024-12-21 04:23:44 字数 100 浏览 2 评论 0原文

我是 ActionScript 3.0 的新手,每当单击按钮在帧之间切换时,我都面临着将数据从一帧存储到另一帧的问题。原始帧内容设置为默认值。

我们有像会话这样的类型吗?

I am new to ActionScript 3.0, I am facing a problem in storing the data from one frame to another whenever the button is clicked to switch between the frames. The original frame content is set to default.

Do we have any type(s) like session?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

扬花落满肩 2024-12-28 04:23:44

最简单的解决方案是将所有数据和功能存储在文档类中。通过将代码移出时间线,您可以获得灵活性和组织性。

这是一篇很好的介绍性文章,可以让您熟悉这个概念。
http://www.adobe.com/devnet/flash/quickstart/external_files_as3.html
它描述了如何将主时间线和库符号与外部类相关联。这是动作脚本编程的基本构建块,非常值得努力学习。

The simplest solution is to store all of your data and functionality in Document Class. By moving the code off of the timeline, you gain flexibility and organization.

Here is a good introductory article to get you familiar with the concept.
http://www.adobe.com/devnet/flash/quickstart/external_files_as3.html
It describes how to associate your main timeline and library symbols with external classes. This is a fundamental building block of actionscript programming and well worth the effort to learn it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文