AS3透明背景
我正在为一项作业创建一个游戏,并使用 Flash CS4。我认为最好的方法是在单独的文件中创建每个房间设置并插入角色(这是第一人称,所以你一直只能看到他的背影)。我不想只为每个房间制作他的动画,因为他在每个房间中所做的动作基本上是相同的,并且在游戏开始时你可以选择是扮演男孩还是女孩......所以不要动画化这个两次我只想在播放动画时导入它。
我学习了如何将 flash 导入 HTML 文件并使背景透明,还学习了如何使用 AC3 中的 loader、URLRequest 和 addChild() 加载 .swf。但是,我不能做到后者并保持背景透明。帮助!
谢谢!
I'm creating a game for an assignment and am using Flash CS4. I'm figuring the best way to do this is to create each room setting in a separate file and insert the characters (it's first person, so you only see his back the entire time). I don't want to just animate him for every room because it's basically the same actions he does in each one and at the beginning of the game you choose whether you're playing as a guy or girl... so instead of animating this twice I just want to import the animation as it plays.
I've learned how to import flash into an HTML file and make the background transparent, and I've also learned how to load a .swf using loader, URLRequest and addChild() in AC3. However, I can't do the latter and also keep the background transparent. Help!
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只要后台没有任何内容,它就可以通过导入类来工作。原来这是一个简单的问题。
it works by just importing the class as long as there's nothing on the background. turned out to be a simple question.