纳金网

标题: [unity之flash]自定义开机画面-个性化SWF [打印本页]

作者: 驰骋的风    时间: 2013-1-17 15:32
标题: [unity之flash]自定义开机画面-个性化SWF
old title:[Flash] Custom Splash Screen - Single SWF

原文标题:[unity之flash]自定义开机画面-个性化SWF



A few people have asked if it's possible to have a custom splash screen for your Unity published Flash games, whilst keeping the output as a single SWF file. This is useful for games portals etc, where you're often only able to upload a single SWF file.
有几个人问,如果有可能为通过unity发布的Flash游戏提供一个自定义开机画面,同时保持它作为一个个性化的SWF文件进行加载。这对于游戏门户网站等非常有用,因为你往往只有一个个性化的SWF文件能够上传。

A workaround for building a single SWF was previously posted in another thread by ParaLogic. I've taken that workaround and used it with our earlier Preloader example to show how you can have a custom splash screen for your Unity content in a single SWF file.
其中一个建立个性化的SWF的解决方案是借助Para Logic张贴在另一个线程上。我已经采取了这个解决方案,并用它与我们先前的预载的例子来演示:如何实现unity内容在个性化的SWF文件中自定义开机画面。



Attached to this post is a zip file containing 2 folders:
这篇帖子附件里是一个zip文件,其中包含2个文件夹:


BuiltExample - Contains the SWF and HTML file to ***n the built example

BuiltExample - 包括SWF和HTML文件,运行内置的例子

CustomSplashScreen -The source for the wrapper to make the custom splash screen. This folder is an FDT project, so if you're using FDT it should hopefully work straight away. If you're using another IDE, the contents of the libs/src folders are all you need to build the example.

CustomSplashScreen -自定义初始屏幕的包装器源代码。该文件夹是一个FDT的项目,所以如果您使用的是FDT,它应能马上运行。如果您使用其他IDE的libs/src目录文件夹的内容,这时需要你去构建例子。


The AS3 code in this example is very similar to previous examples so hopefully it should be easy to follow. This is a quick/simple workaround and by no means represents best practices. As with the other examples/demos, since the publish to Flash feature is still in developer preview, this example is subject to change in future releases.
在这个例子中的AS3代码与前面的例子非常相似,所以它应该很容易搞定。这是一个快速而简单的解决方法,但绝不代表最佳实践。就像其它的实例或者演示,自发布Flash功能以来,它仍处于开发者预览版,这个示例将在未来的版本中发生变化。(编译 驰骋的风  更多unity3D内容分享尽在Web3D纳金网http://www.narkii.com/)


CustomSplashScreen-SingleSWF.zip请通过附件下载~

CustomSplashScreen-SingleSWF.zip

0 Bytes, 下载次数: 4






欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5