# Variables from SWF/HTML source problem!

**URL:** https://forum.kirupa.com/t/variables-from-swf-html-source-problem/23815
**Category:** flash
**Created:** [June 22, 2003, 6:19pm UTC](https://forum.kirupa.com/t/variables-from-swf-html-source-problem/23815 "2003-06-22T18:19:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mecha](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@mecha](https://forum.kirupa.com/u/mecha)
#### Post date: [June 22, 2003, 6:19pm UTC](https://forum.kirupa.com/t/variables-from-swf-html-source-problem/23815/1 "2003-06-22T18:19:44Z")

</div>

Hey All,

I am having a bit of problem with variables tagged onto the SWF source code in webpages. eg.

param name=“movie” value="navi.swf?header=home  
embed src="navi.swf?header=home

using this technique I have managed to get Dynamic Text Boxes to display “home” and even mamaged to target Frame Labels. eg.

\_root.pageheader.gotoAndplay(/:header);

What I am trying to do now though is pass the “header” variable into the following simple code in order to control the location of movie clips, but it will not work.

header.\_x = 10;  
header.\_y = 290;

As you can see, and probably guess, I have movieclips hidden in the work area - which will be moved it place depending on the value of “header”.

Iknow I do not have any Movieclips/Buttons/etc conflicting with the words “header” or any of the vales associated with this variable “home”, “contact”, etc

Any ideas on why this is not working?

Any help would be greatly appreciated.
