# URL Variables

**URL:** https://forum.kirupa.com/t/url-variables/153927
**Category:** flash
**Created:** [July 5, 2005, 8:06pm UTC](https://forum.kirupa.com/t/url-variables/153927 "2005-07-05T20:06:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![matt\_j36](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@matt\_j36](https://forum.kirupa.com/u/matt_j36)
#### Post date: [July 5, 2005, 8:06pm UTC](https://forum.kirupa.com/t/url-variables/153927/1 "2005-07-05T20:06:02Z")

</div>

Hi

I’m hoping someone can help me with a little URL Variables problem I am having.

What I am trying to achieve is:

A page containing a swf which has navigation and images. when you click (for example) Link001 it will load a new .html page, with a certain action happening within the swf on this page which is dependent on what link has been clicked on the previous page.

I have managed to get this to work with URL Variables - but only when viewing the swf directly in my browser, but not when it is embedded within a html. For example, these work as I want

[http://junction36.com/clients/kazoo/kz\_zoomer\_final04.swf?page=about](http://junction36.com/clients/kazoo/kz_zoomer_final04.swf?page=about)  
[http://junction36.com/clients/kazoo/kz\_zoomer\_final04.swf?page=contact](http://junction36.com/clients/kazoo/kz_zoomer_final04.swf?page=contact)

whilst these dont.

[http://junction36.com/clients/kazoo/kz\_zoomer\_final04.html?page=about](http://junction36.com/clients/kazoo/kz_zoomer_final04.html?page=about)  
[http://junction36.com/clients/kazoo/kz\_zoomer\_final04.html?page=contact](http://junction36.com/clients/kazoo/kz_zoomer_final04.html?page=contact)

The actionscript I have within the swf is as follows:

if (page==“about”) {  
image.flyTo(aboutX, aboutY, 12, 1);  
}

else if (page==“clients”) {  
image.flyTo(clientsX, clientsY, 12, 1);  
}

else if (page==“campaigns”) {  
image.flyTo(campaignsX, campaignsY, 12, 1);  
}

else if (page==“contact”) {  
image.flyTo(contactX, contactY, 12, 1);  
}  
else if (page==“jobs”) {  
image.flyTo(jobsX, jobsY, 12, 1);  
}  
else {  
image.flyTo(homeX, homeY, 12, 1);  
}

If anybody can help me with this, I will be most grateful!  
Cheers  
Matt
