# URL parameter... PLS HELP!

**URL:** <https://forum.kirupa.com/t/url-parameter-pls-help/317806>\
**Category:** Uncategorized\
**Created:** [January 3, 2011, 7:08pm UTC](https://forum.kirupa.com/t/url-parameter-pls-help/317806 "2011-01-03T19:08:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![outback](https://avatars.discourse-cdn.com/v4/letter/o/9f8e36/32.png) [@outback](https://forum.kirupa.com/u/outback)\
**Post date:** [January 3, 2011, 7:08pm UTC](https://forum.kirupa.com/t/url-parameter-pls-help/317806/1 "2011-01-03T19:08:16Z")

</div>

Hi All, i’m having some problems with my website.

I have a main swf that reads two smaller ones; but the thing is the URL parameter defines witch one must be read.

for exemple:

[http://mysite.com?var1=swf1?var2=swf1frame?var3=swf](http://mysite.com?var1=swf1?var2=swf1frame?var3=swf)

I have three variables that defines:

var 1 = what swf must load  
var 2 = what frame should swf go to  
var 3 = what is the second swf file to load

i made it work but inside flash I need to work via URL parameter.

```auto

//loads player
var player = new Loader; // cria moldura de carregamento
addChild (player); // puts player on the stage
player.x = 0; // defines the position of X 
player.y = 0; // defines Y position of player
player.load ( new URLRequest ("one.swf")); // loads sj.swf inside of player

// loads content
var cont = new Loader;
addChild (cont);
cont.x = 0;
cont.y = 0;
cont.load ( new URLRequest ("two.swf"));

```

PLEASE HELP!!!
