# Playing movie clip in timeline

**URL:** <https://forum.kirupa.com/t/playing-movie-clip-in-timeline/149931>\
**Category:** Uncategorized\
**Created:** [June 2, 2005, 10:21am UTC](https://forum.kirupa.com/t/playing-movie-clip-in-timeline/149931 "2005-06-02T10:21:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixelmage](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@pixelmage](https://forum.kirupa.com/u/pixelmage)\
**Post date:** [June 2, 2005, 10:21am UTC](https://forum.kirupa.com/t/playing-movie-clip-in-timeline/149931/1 "2005-06-02T10:21:12Z")

</div>

beginner here: i’m having difficulty playing a movie clip in my timeline.

basically, I need the movie clip to play while the timeline plays, but with the action script that I have, it only plays the action in one frame and doesn’t play the rest of the movie while that movie clip is playing. It’s a movie clip of a flame and I need the flame to flicker while everything else is happening in the timeline.

Would anyone be able to help me on this one? I’m sure it’s something very simple that I just can’t figure out.

On my actions layer I have three frames with the following code:

frame #1  
r = 0;  
setProperty (“flare”, \_visible, 0);  
xx = getProperty(“flare”,\_x);

frame#2  
if(r \< 80)  
{  
duplicateMovieClip ("/flare", “flare” add r, r);  
setProperty ( “flare” add r, \_alpha,r\*5);  
setProperty ( “flare” add r, \_x,random(40) + xx);  
r = r + 1;  
}

frame #3  
\_root.gotoAndPlay(2);

my movie is 120 frames long with various tweens, etc.

Thanks…
