# Loadmovie: first time not working, second time does

**URL:** <https://forum.kirupa.com/t/loadmovie-first-time-not-working-second-time-does/47633>\
**Category:** flash\
**Created:** [April 5, 2004, 11:19pm UTC](https://forum.kirupa.com/t/loadmovie-first-time-not-working-second-time-does/47633 "2004-04-05T23:19:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CrE3pZ](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@CrE3pZ](https://forum.kirupa.com/u/CrE3pZ)\
**Post date:** [April 5, 2004, 11:19pm UTC](https://forum.kirupa.com/t/loadmovie-first-time-not-working-second-time-does/47633/1 "2004-04-05T23:19:07Z")

</div>

Hi

I want to load a external movie (swf) into my current movie. My syntax:

loadMovie(“movies/”+itemName+".swf","\_root.popup.popup\_bg.movieName");  
loadVariables(“content/”+itemName+".txt","\_root");  
\_root.popup.gotoAndPlay(2);  
trace(\_root.popup.popup\_bg.movieName.\_y);

First line: Loading the movie into the instance  
Second line: Loading some vars into my scene  
third line: make the popup appear with an alpha tween  
fourth line: proving the itemName is correct.

Problem:  
First time running this script results in not showing my movieclip  
Second time running this script everything works perfect.

Has anybody got any idea why my movie is not loading?  
greetz, Tim
