# Random movement lagging up a site.. help?

**URL:** <https://forum.kirupa.com/t/random-movement-lagging-up-a-site-help/59950>\
**Category:** flash\
**Created:** [August 5, 2004, 2:30am UTC](https://forum.kirupa.com/t/random-movement-lagging-up-a-site-help/59950 "2004-08-05T02:30:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![apetrie](https://avatars.discourse-cdn.com/v4/letter/a/0ea827/32.png) [@apetrie](https://forum.kirupa.com/u/apetrie)\
**Post date:** [August 5, 2004, 2:30am UTC](https://forum.kirupa.com/t/random-movement-lagging-up-a-site-help/59950/1 "2004-08-05T02:30:35Z")

</div>

Hey, any suggestions on how to deal with this would be greatly appreciated.

I used the random movement tutorial from this site to create an effect of fireflies flying around randomly across my flash movie. The problem is that it causes the whole movie to become very laggy and slow, and the longer the movie is open the more choppy it gets. I’ve even had people testing it report to me that it started to lag their whole computers up the longer it was open.

I’m not saying the fault is the scripts, it could just be that I have too much going on in the movie. The whole look of it is greatly improved by the fireflies and I don’t want to scrap them entirely. Does anyone have any suggestions on what I can try to prevent having to get rid of them?

Thanks much!

- Adrienne 🅱 (seemed fitting)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 5, 2004, 3:11am UTC](https://forum.kirupa.com/t/random-movement-lagging-up-a-site-help/59950/2 "2004-08-05T03:11:39Z")

</div>

if you have any mc’s with alpha not equal to 100, i’d make them 100. how many fireflies do you have on there?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 5, 2004, 4:00am UTC](https://forum.kirupa.com/t/random-movement-lagging-up-a-site-help/59950/3 "2004-08-05T04:00:23Z")

</div>

I have a bunch, but I tried reducing it to just a few and the same thing happened at seemingly the same rate. Theres a lot of use of transparency in the movie, I’ll see what I can do about cutting it down but I don’t know if I can make the alpha of everything 100.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 5, 2004, 4:03am UTC](https://forum.kirupa.com/t/random-movement-lagging-up-a-site-help/59950/4 "2004-08-05T04:03:17Z")

</div>

anything that’s animated with alpha\<100 will slow your movie down, so i’d try to minimize those.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 5, 2004, 4:22pm UTC](https://forum.kirupa.com/t/random-movement-lagging-up-a-site-help/59950/5 "2004-08-05T16:22:08Z")

</div>

Thanks, that was helpful. I couldn’t really fix it 100% but I change it a bit and the lag is a lot better. I think the alpha stuff was what I was missing in trying to optimize it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 6, 2004, 8:45pm UTC](https://forum.kirupa.com/t/random-movement-lagging-up-a-site-help/59950/6 "2004-08-06T20:45:52Z")

</div>

I solved my problem through a combination of simplifying a few of the animations & symbols as well as taking some of the background elements and making them a flat jpg instead of leaving them as vector objects. This brought the file size up a bit but that was acceptable and greatly improved the lag. Just thought I’d post this in case someone else is having similar problems and ended up looking at this thread.
