# Infinite Menu Flickering

**URL:** https://forum.kirupa.com/t/infinite-menu-flickering/184233
**Category:** flash
**Created:** [April 3, 2006, 3:58pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233 "2006-04-03T15:58:39Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![MaggieBroon](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@MaggieBroon](https://forum.kirupa.com/u/MaggieBroon)
#### Post date: [April 3, 2006, 3:58pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/1 "2006-04-03T15:58:39Z")

</div>

Hi guys,

Hope you can help me.

I used the infinite menu tutorial to create the swf for [this](http://freespace.virgin.net/stuart.lawson/johnlaidlaw/) site.

Does anyone know of a way to stop the images from flickering because the client likes it but wants me to stop it from flickering.

Cheers

---

<div class="post-metadata">

### Author: ![JoshuaJonah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/joshuajonah/32/1775_2.png) [@JoshuaJonah](https://forum.kirupa.com/u/JoshuaJonah)
#### Post date: [April 3, 2006, 4:03pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/2 "2006-04-03T16:03:45Z")

</div>

Flickering? I’ve made a pile of these things but never had a flickering issue.

---

<div class="post-metadata">

### Author: ![gvozden](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gvozden/32/1084_2.png) [@gvozden](https://forum.kirupa.com/u/gvozden)
#### Post date: [April 3, 2006, 4:15pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/3 "2006-04-03T16:15:06Z")

</div>

this number of movieclip shouldn’f flicker

it would be nice when you post a question to post code about it too …

---

<div class="post-metadata">

### Author: ![MaggieBroon](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@MaggieBroon](https://forum.kirupa.com/u/MaggieBroon)
#### Post date: [April 3, 2006, 4:34pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/4 "2006-04-03T16:34:13Z")

</div>

```auto
onClipEvent (load)
{
   xcenter=375;
   speed=1/40;
}
onClipEvent (enterFrame)
{
   var distance=_root._xmouse-xcenter;
   _x-=(distance*speed);
   if (_x > 0) _x=-750;
   if (_x < -750) _x=0;
}

```

Sorry, thanks for the replies. Im kinda new to this. Do you see what I mean about the images flickering? V wierd!

---

<div class="post-metadata">

### Author: ![B\_L\_U\_E](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@B\_L\_U\_E](https://forum.kirupa.com/u/B_L_U_E)
#### Post date: [April 3, 2006, 4:40pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/5 "2006-04-03T16:40:39Z")

</div>

I see no flickering, and I’m on a very slow machine right now. Perhaps try increasing the speed to get your desired result?

---

<div class="post-metadata">

### Author: ![hexadecimal](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@hexadecimal](https://forum.kirupa.com/u/hexadecimal)
#### Post date: [April 3, 2006, 4:41pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/6 "2006-04-03T16:41:24Z")

</div>

I suppose you mean that you have images in the movieclip that look like crap when you move them around? in that case use:

[COLOR=Blue]yourMovieClip\_mc.cacheAsBitmap = true;[/COLOR]

> [@MaggieBroon](#):
>
> ```auto
> onClipEvent (load)
> {
> xcenter=375;
> speed=1/40;
> }
> onClipEvent (enterFrame)
> {
> var distance=_root._xmouse-xcenter;
> _x-=(distance*speed);
> if (_x > 0) _x=-750;
> if (_x < -750) _x=0;
> }
> 
> ```
> 
> Sorry, thanks for the replies. Im kinda new to this. Do you see what I mean about the images flickering? V wierd!

---

<div class="post-metadata">

### Author: ![gvozden](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gvozden/32/1084_2.png) [@gvozden](https://forum.kirupa.com/u/gvozden)
#### Post date: [April 3, 2006, 4:54pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/7 "2006-04-03T16:54:12Z")

</div>

it would be better to use all the small pictures and move them instead of moving large one

I made it that way and it worked really fine

---

<div class="post-metadata">

### Author: ![MaggieBroon](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@MaggieBroon](https://forum.kirupa.com/u/MaggieBroon)
#### Post date: [April 3, 2006, 4:54pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/8 "2006-04-03T16:54:56Z")

</div>

> [@hexadecimal](#):
>
> I suppose you mean that you have images in the movieclip that look like crap when you move them around? in that case use:
> 
> [COLOR=Blue]yourMovieClip\_mc.cacheAsBitmap = true;[/COLOR]

Yes, thats what I mean! The actual images look, well, flickery if you look at them too long. It doesnt bother me but the client wants it fixed. Its similar to the way fine lines look on tv screens. I thought it might help if it stopped when you rolled over the images but am not sure how to alter the code.

Where should I place that cache code? Just in root of the timeline? Thanks!

---

<div class="post-metadata">

### Author: ![MaggieBroon](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@MaggieBroon](https://forum.kirupa.com/u/MaggieBroon)
#### Post date: [April 3, 2006, 4:56pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/9 "2006-04-03T16:56:37Z")

</div>

> [@gvozden](#):
>
> it would be better to use all the small pictures and move them instead of moving large one
> 
> I made it that way and it worked really fine

I have used small pics and grouped them into a movieclip. I dont know enough actionscript to move each image individualy.

---

<div class="post-metadata">

### Author: ![gvozden](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gvozden/32/1084_2.png) [@gvozden](https://forum.kirupa.com/u/gvozden)
#### Post date: [April 3, 2006, 5:26pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/10 "2006-04-03T17:26:39Z")

</div>

> [@gvozden](#):
>
> this number of movieclip shouldn’f flicker
> 
> it would be nice when you post a question to post code about it too …

I made wrong translation with flicker  
sorry

cacheAsBitmap is solution, hexa is right 😉

---

<div class="post-metadata">

### Author: ![hexadecimal](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@hexadecimal](https://forum.kirupa.com/u/hexadecimal)
#### Post date: [April 3, 2006, 6:28pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/11 "2006-04-03T18:28:18Z")

</div>

it depends, it should be in the root timeline where your MC is…

> [@MaggieBroon](#):
>
> I have used small pics and grouped them into a movieclip. I dont know enough actionscript to move each image individualy.

---

<div class="post-metadata">

### Author: ![hexadecimal](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@hexadecimal](https://forum.kirupa.com/u/hexadecimal)
#### Post date: [April 3, 2006, 6:29pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/12 "2006-04-03T18:29:35Z")

</div>

It depends on where you have your mc… if its in the root, place it in the root… i can take a look at it if i can get the file somewhere

> [@MaggieBroon](#):
>
> Yes, thats what I mean! The actual images look, well, flickery if you look at them too long. It doesnt bother me but the client wants it fixed. Its similar to the way fine lines look on tv screens. I thought it might help if it stopped when you rolled over the images but am not sure how to alter the code.
> 
> Where should I place that cache code? Just in root of the timeline? Thanks!

---

<div class="post-metadata">

### Author: ![MaggieBroon](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@MaggieBroon](https://forum.kirupa.com/u/MaggieBroon)
#### Post date: [April 3, 2006, 7:57pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/13 "2006-04-03T19:57:01Z")

</div>

> [@hexadecimal](#):
>
> It depends on where you have your mc… if its in the root, place it in the root… i can take a look at it if i can get the file somewhere

Aw thanks, you’re an angel! I just realised that the text is flickering when you rollover the buttons too. Is there any way you could help me to make it stop when you roll over a button?

The file’s too big to attach so I’ve uploaded it [here](http://freespace.virgin.net/stuart.lawson/johnlaidlaw/flash.fla)

Cheers! 😃

---

<div class="post-metadata">

### Author: ![MaggieBroon](https://avatars.discourse-cdn.com/v4/letter/m/e274bd/32.png) [@MaggieBroon](https://forum.kirupa.com/u/MaggieBroon)
#### Post date: [April 4, 2006, 5:40pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/14 "2006-04-04T17:40:20Z")

</div>

Bump!

Anyone? 🙂

---

<div class="post-metadata">

### Author: ![hexadecimal](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@hexadecimal](https://forum.kirupa.com/u/hexadecimal)
#### Post date: [April 4, 2006, 6:29pm UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/15 "2006-04-04T18:29:31Z")

</div>

I looked at your file… you need to get flash 8 in order to use cacheasbitmap… if you can do that?

> [@MaggieBroon](#):
>
> Bump!
> 
> Anyone? 🙂

---

<div class="post-metadata">

### Author: ![Axios](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Axios](https://forum.kirupa.com/u/Axios)
#### Post date: [April 5, 2006, 8:12am UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/16 "2006-04-05T08:12:59Z")

</div>

Possibly. Will that stop the text from doing it too?

---

<div class="post-metadata">

### Author: ![hexadecimal](https://avatars.discourse-cdn.com/v4/letter/h/9fc348/32.png) [@hexadecimal](https://forum.kirupa.com/u/hexadecimal)
#### Post date: [April 5, 2006, 9:30am UTC](https://forum.kirupa.com/t/infinite-menu-flickering/184233/17 "2006-04-05T09:30:36Z")

</div>

In flash 8 you can set the text to antialias for animation, that should do the trick, also if i set the frame rate to 34, which it should be, it looks much better…

> [@Axios](#):
>
> Possibly. Will that stop the text from doing it too?
