# How do I load a different JPG into a SWF based on the HTML file playing it? \[renamed\]

**URL:** <https://forum.kirupa.com/t/how-do-i-load-a-different-jpg-into-a-swf-based-on-the-html-file-playing-it-renamed/85679>\
**Category:** flash\
**Created:** [April 6, 2005, 4:34pm UTC](https://forum.kirupa.com/t/how-do-i-load-a-different-jpg-into-a-swf-based-on-the-html-file-playing-it-renamed/85679 "2005-04-06T16:34:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![retaks](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@retaks](https://forum.kirupa.com/u/retaks)\
**Post date:** [April 6, 2005, 4:34pm UTC](https://forum.kirupa.com/t/how-do-i-load-a-different-jpg-into-a-swf-based-on-the-html-file-playing-it-renamed/85679/1 "2005-04-06T16:34:18Z")

</div>

Hi, I would like to load a different image inside a flash movie depending upon what .html filename my wesite is displaying. So, for example if im on index.html I would like an index image to load in a movieclip and when I’m on a (anything).html i want (anything).jpg to load. I know I can do this with loadmovie and however is there a way to detect what .html page the user is on or is there a better way of going about this? Thanks in advance
