PDA

View Full Version : slow light effect - maybe some actionscript will help?


dafnabru
12-24-2006, 07:35 PM
I am designing a site for a company that does lighting for events. I have created a nice light effect that goes on the background, you can see it in the fla file attached and here http://www.dafna.tv/light

I showed it to someone and he told me that the effect makes the site heavy and that it wont work on some computers. He showed me that in the CPU process (in the task manager, when pressing ctrl, alt, del), whenever the light moves the CPU goes up to 80. Actually, I put a sample online and the cpu doesnt go so high, but still the light moves very slowly and seems like its hard for it to move, like if it was very heavy.

my question: is there another way of doing the same thing using actionscript? any other ideas?
thanks!
daf

kool-Aid
12-28-2006, 04:23 PM
There is another way w/ AS. But it wil be a lot of scripting. It will be worth it though, and a great thing to learn. Animate it w/ fuse. (it's free and a good tool). go here and do the animating w/ fuse tutorials. Fix ya right up.

www.gotoAndLearn.com

sleekdigital
12-28-2006, 05:10 PM
Its very unlikely that doing this with script vs the timeline will help CPU usage. In fact would probably increase it. So Fuse is not going to help you in that respect.

The high CPU usage in your case has nothing to do with script vs the timeline. The reason your CPU usage is high is because you are using filter effects on a multiple large objects and you are animating some of those obects. I'm not sure that you will be able to take advantage of any bitmap caching in your case, except maybe the black box on top (since it is not animated). Another option you might try is to use PNG images instead of rendering all the glows and such in Flash.

When you get the CPU usage worked out, you might also want to increase your frame rate to get smoother animation.

dafnabru
01-03-2007, 08:44 AM
thanks for the frame rate tip!