# loadMovie problem

**URL:** https://forum.kirupa.com/t/loadmovie-problem/166638
**Category:** Uncategorized
**Created:** [October 21, 2005, 2:25pm UTC](https://forum.kirupa.com/t/loadmovie-problem/166638 "2005-10-21T14:25:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lewi\_p](https://avatars.discourse-cdn.com/v4/letter/l/ac91a4/32.png) [@lewi\_p](https://forum.kirupa.com/u/lewi_p)
#### Post date: [October 21, 2005, 2:25pm UTC](https://forum.kirupa.com/t/loadmovie-problem/166638/1 "2005-10-21T14:25:20Z")

</div>

Hi

Currently I have a line of code which reads…

```auto
 a1_flag.loadMovie("image.jpg");

```

This works perfectly fine but say I have a variable called ‘flag’ and I want to replace what ever is held in ‘flag’ and that would be the file name. So I’d have something like…

```auto
 a1_flag.loadMovie('flag' +".jpg");

```

But I’m not sure how to code it…any suggestions?
