# Flickering Light Bulb Effect?

**URL:** <https://forum.kirupa.com/t/flickering-light-bulb-effect/264963>\
**Category:** Uncategorized\
**Created:** [July 2, 2008, 3:38pm UTC](https://forum.kirupa.com/t/flickering-light-bulb-effect/264963 "2008-07-02T15:38:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![slimboyfatz33](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@slimboyfatz33](https://forum.kirupa.com/u/slimboyfatz33)\
**Post date:** [July 2, 2008, 3:38pm UTC](https://forum.kirupa.com/t/flickering-light-bulb-effect/264963/1 "2008-07-02T15:38:16Z")

</div>

Hi,  
Flash is not my strongest point, so some advice would me much appreciated…  
I have an image of a lamp that i would like to add a flickering effect to the bulb in Flash?? How do i do this?

thanks again

---

<div class="post-metadata">

**Author:** ![glosrfc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/glosrfc/32/8334_2.png) [@glosrfc](https://forum.kirupa.com/u/glosrfc)\
**Post date:** [July 2, 2008, 4:37pm UTC](https://forum.kirupa.com/t/flickering-light-bulb-effect/264963/2 "2008-07-02T16:37:34Z")

</div>

[http://www.pixelhivedesign.com/tutorials/Dynamic+Flickering+Effect/](http://www.pixelhivedesign.com/tutorials/Dynamic+Flickering+Effect/)

---

<div class="post-metadata">

**Author:** ![GrndMasterFlash](https://avatars.discourse-cdn.com/v4/letter/g/71c47a/32.png) [@GrndMasterFlash](https://forum.kirupa.com/u/GrndMasterFlash)\
**Post date:** [July 2, 2008, 4:49pm UTC](https://forum.kirupa.com/t/flickering-light-bulb-effect/264963/3 "2008-07-02T16:49:36Z")

</div>

or a simple solution would be to have a movie clip that has you light glowing regular and dim and use a random to switch back and forth  
say you lamp is a movie clip called “lamp” with a stop(); command on it’s first frame

function flicker(e:Event)  
{  
var ranFlick:int = random();  
if (ranFlick \> .8){  
lamp.gotoAndPlay(“dim”);  
}  
}

get the idea

---

<div class="post-metadata">

**Author:** ![slimboyfatz33](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@slimboyfatz33](https://forum.kirupa.com/u/slimboyfatz33)\
**Post date:** [July 2, 2008, 6:15pm UTC](https://forum.kirupa.com/t/flickering-light-bulb-effect/264963/4 "2008-07-02T18:15:04Z")

</div>

[quote=GrndMasterFlash;2352521]or a simple solution would be to have a movie clip that has you light glowing regular and dim and use a random to switch back and forth  
say you lamp is a movie clip called “lamp” with a stop(); command on it’s first frame

function flicker(e:Event)  
{  
var ranFlick:int = random();  
if (ranFlick \> .8){  
lamp.gotoAndPlay(“dim”);  
}  
}

get the idea[/quote]

how do i do this? do i load 2 movie clips into flash?
