# Using Query String to Maximize Code Reuse

**URL:** <https://forum.kirupa.com/t/using-query-string-to-maximize-code-reuse/302001>\
**Category:** flash\
**Created:** [December 19, 2009, 5:27am UTC](https://forum.kirupa.com/t/using-query-string-to-maximize-code-reuse/302001 "2009-12-19T05:27:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayusuits](https://avatars.discourse-cdn.com/v4/letter/a/c2a13f/32.png) [@ayusuits](https://forum.kirupa.com/u/ayusuits)\
**Post date:** [December 19, 2009, 5:27am UTC](https://forum.kirupa.com/t/using-query-string-to-maximize-code-reuse/302001/1 "2009-12-19T05:27:18Z")

</div>

Ok, i’ve read a tutorial about passing variables to HTML. But this tutorial isnt clear for me…

> **[Flash: Passing Variables to Flash from HTML via Query String](https://www.permadi.com/tutorial/flashQueryString/)**
>
> Flash programming, Passing Query Strings Into SWF

EXAMPLE 1  
Using Query String to Maximize Code Reuse

I really dont have an idea what to do inside flash, bec the author only said:

> Assuming the image filename is image1.jpg, located at a folder named images. And assuming that the Flash movie will use a variable named imageFilename to refer to the file, then we can do this

How do I do that? Like having a empty movie clip and giving an instance name of imageFilename?

Pls help. TT\_\_\_\_\_TT

Im at my wits end… Thank you in advance.
