AS3 Flip效果留下痕迹?
我正在尝试使用 tutplus 的翻转效果教程创建一些东西 - http ://active.tutsplus.com/tutorials/effects/iphone-page-transition-flash/
但是我的翻转区域比教程大得多,它有 900px 宽。一切工作正常,除了当宽度那么大时它会留下痕迹。翻转几次就可以看到了。
去年有人在评论中提出了同样的问题,但没有人回复。
有谁知道这个问题的解决方案吗?
编辑:
这是一个屏幕截图:http://imageshack.us /f/823/unled2lo.jpg/(点击放大)
正面紫色,背面白色。
正如您所看到的,当页面翻转为白色时,它留下了一点紫色。
我无法获得它转动的屏幕截图,但当页面实际上正在翻转时,这一点更加明显,因为宽度变窄,这揭示了页面上留下的更多内容。
I'm trying to create something with a flip effect tutorial from tutplus - http://active.tutsplus.com/tutorials/effects/iphone-page-transition-flash/
However my flip area is much bigger than the tutorial, it's 900px wide. Everything works fine except that it leaves a trail when the width is that big. You'll see it when you flip it a few times.
Someone else posted the same problem in the comments from last year, but no one replied.
Does anyone know a solution to this?
Edit:
Here is a screen shot: http://imageshack.us/f/823/unled2lo.jpg/ (click to enlarge)
The front is purple and the back is white.
As you can see it left a bit of the purple as the page flipped to white.
I couldn't get a screen shot of it turning, but it's even more obvious as the page is actually flipping because the width become narrow which reveals a whole lot more that's left behind on the page.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在使用的教程使用 flash 补间类中的构建来创建翻转效果,它们绝对是垃圾,如果与其他第三方补间类相比,它们非常慢。这可能是造成痕迹的原因! Lee Brimelow 有一个很棒的视频教程,介绍如何准确完成您需要的操作:http://gotoandlearn.com /play.php?id=91 他正在使用 caurina,但我强烈建议您将其替换为 tweenLight ,这是迄今为止我用过的最好的补间。
好的,这就是演练:
1- 从 Lee Brimelow 教程下载文件 http://gotoandlearn.com/files /3dflip.zip
2- 在此处下载 tweenLight AS3 类: http://www.greensock.com/ tweenlite/
3- 复制 greensock-as3 中的 com 文件夹并将其粘贴到 3dflip 文件夹中。现在您已拥有翻转所需的所有补间类!
4- 打开 Flash 文件 3dflip.fla 并将原始代码(位于第一帧中)替换为:
就是这样。现在发布并查看结果。现在您所要做的就是用您想要的内容替换视频播放器!
The tutorial you are using create the flip effect using the build in flash tween classes, they are absolute rubbish, and very slow if you compare to other third part tween classes. That may be causing the trail! Lee Brimelow has a great video tutorial about how to do exact what you need: http://gotoandlearn.com/play.php?id=91 he is using caurina, but I highly recommend you to replace it with tweenLight so far the best tween I ever used.
Ok, thats the walkthrough:
1- Download the files from Lee Brimelow tutorial here http://gotoandlearn.com/files/3dflip.zip
2- Download tweenLight AS3 classes here: http://www.greensock.com/tweenlite/
3- copy the com folder inside greensock-as3 and past it inside 3dflip folder. Now you have all the tween classes you need for your flip!
4- open the flash file 3dflip.fla and replace the original code (located in the first frame) with this:
Thats it. Now publish and see the result. Now all you have to do is replace the video player with the content that you want!
我会检查第一方的状态 - 当“另一方”介入时,它似乎被遗忘在舞台上。
I would check the state of first side - it seems that it's forgotten on stage when "the other side" kicks in.