# Loadmovie question

**URL:** <https://forum.kirupa.com/t/loadmovie-question/63418>\
**Category:** Uncategorized\
**Created:** [September 6, 2004, 4:52pm UTC](https://forum.kirupa.com/t/loadmovie-question/63418 "2004-09-06T16:52:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SlowRoasted](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SlowRoasted](https://forum.kirupa.com/u/SlowRoasted)\
**Post date:** [September 6, 2004, 4:52pm UTC](https://forum.kirupa.com/t/loadmovie-question/63418/1 "2004-09-06T16:52:14Z")

</div>

Ok I have the code in my main movie in a keyframe:

\_root.logostart.loadMovie(“logo.swf”);

to load another swf to it. My problem is that once logo.swf plays all the way through I want to only play the last couple of frames in it over and over. I cant seem to get this to work. I have tried putting this code in a keyframe right after the loadmovie code:

logo.gotoAndPlay(‘cloudstart’);

Ive also tried putting a gotoandplay in the actual logo.swf and that only works when i play the logo.swf by itself, not in the main movie. Anyone know whats up, any help would be greatly appreciated.

Thanks

SR :tb:

---

<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:** [September 6, 2004, 6:41pm UTC](https://forum.kirupa.com/t/loadmovie-question/63418/2 "2004-09-06T18:41:51Z")

</div>

> Ive also tried putting a gotoandplay in the actual logo.swf and that only works when i play the logo.swf by itself, not in the main movie. Anyone know whats up, any help would be greatly appreciated.

This is the best way todo it, remember if you load a .swf into a another, \_root is now the root of the clip its being loaded into.  
So when you use gotoAndPlay make sure its relative to the clip you want to replay the same with most other procedures

This shouldnt be a probem here depending on the nature of the animation, simply add  
gotoAndPlay(5); // 5 is the start of the bit you want to replay

If this doesnt help, please give me some more info or post the fla

---

<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:** [September 6, 2004, 9:10pm UTC](https://forum.kirupa.com/t/loadmovie-question/63418/3 "2004-09-06T21:10:42Z")

</div>

> I have tried putting this code in a keyframe right after the loadmovie code:

**logo**.gotoAndPlay(‘cloudstart’);

And you won’t get it to work this way.  
You loaded your logo.swf into an MC named logostart, remember (\_root. **logostart**.loadMovie(“logo.swf”);)?  
So you should addres it as  
_logostart_.gotoAndPlay(“cloudstart”);

Is that right ;)?

---

<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:** [September 6, 2004, 9:46pm UTC](https://forum.kirupa.com/t/loadmovie-question/63418/4 "2004-09-06T21:46:45Z")

</div>

ok, ill try that thanks
