# How do I access a variable in my html / swf parameters?

**URL:** <https://forum.kirupa.com/t/how-do-i-access-a-variable-in-my-html-swf-parameters/268023>\
**Category:** Uncategorized\
**Created:** [August 8, 2008, 11:14am UTC](https://forum.kirupa.com/t/how-do-i-access-a-variable-in-my-html-swf-parameters/268023 "2008-08-08T11:14:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dtrace](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@dtrace](https://forum.kirupa.com/u/dtrace)\
**Post date:** [August 8, 2008, 11:14am UTC](https://forum.kirupa.com/t/how-do-i-access-a-variable-in-my-html-swf-parameters/268023/1 "2008-08-08T11:14:01Z")

</div>

So I’m trying to do something like this…

\<param name=“movie” value=“comp.swf?rootDomain=3” /\>

where I have a variable called ‘rootDomain’ in my html, as a parameter.

I want to be able to call that from my flash, but whenever I try it comes up as undefined.

I’m using this code in my flash…

on(release){getURL (\_root.rootDomain + ‘/news/’), “\_self”

}

I don’t know if I’m just wrong, if it’s syntax or what, but how do I reference that variable in the html with my code?

Thanks.
