AS3(闪存)网站调整大小抖动/滞后闪存、大小、网站

2023-09-08 14:27:33 作者:失去了妳的未來

你好我是新来的论坛,我在找一些帮助,目前的一个项目。

Hi i am new to the forums and i'm looking for some help with a current project.

我基本上是做一个网站名为www.noised.co.uk,随意看看,看看我的问题是,不要对我做出判断它没有被优化为尚的图像等。

i am basically making a website called www.noised.co.uk, feel free to take a look to see what my problem is and don't judge me on the images etc it has not been optimized as of yet.

但你可以看到,当我的屏幕尺寸再重绘是非常缓慢。在AS2我用的updateAfterEvent()但据我所知,你只能用这个下鼠标或定时器事件(和其他,但我不记得哪)所有三种由我不用叫我重新测量器,我使用的:

but as you will be able to see when my screen re sizes the redraw is awfully slow. in AS2 i used updateAfterEvent() but as i understand you can only use this under a mouse or timer event (and another but i cannot remember which) all three of which i am not using to call my re sizer, i am using:

stage.addEventListener(Event.RESIZE, resizer)

所以我的问题是如何使该重绘一个很好的,效果更流畅?

so my question is how can i make this redraw a nice, smoother effect?

推荐答案

什么,你遇到的是,是由flash播放器,它被调整了WebKit的渲染方式的东西。很难绕过它在AS3 code独自一人,但下面的链接显示了如何使用JS和AS3的组合,顺利拿到了阶段调整

What you're experiencing is something that is caused by the flash player and the way it gets resized by the webkit renders. It's hard to get around it in AS3 code alone, but the following link shows how you can use a combination of JS and AS3 to get a smooth stage resizing

http://www.tagtixx.com/smooth-flash -resizing功能于WebKit的浏览器/

 
精彩推荐
图片推荐