# Passing variables to javascript

**URL:** https://forum.kirupa.com/t/passing-variables-to-javascript/171692
**Category:** Uncategorized
**Created:** [December 7, 2005, 2:32pm UTC](https://forum.kirupa.com/t/passing-variables-to-javascript/171692 "2005-12-07T14:32:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![subhababu](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@subhababu](https://forum.kirupa.com/u/subhababu)
#### Post date: [December 7, 2005, 2:32pm UTC](https://forum.kirupa.com/t/passing-variables-to-javascript/171692/1 "2005-12-07T14:32:25Z")

</div>

I want to change the variable on release event from flash.

This is my javascript code

this.SWF\_VARS = {  
// XML Location and Assets  
theXML\_location:“autos\_others.xml”,  
cssLocation:“comedy\_stylesheet.css”,  
dl\_xml\_location:“dl\_comedy.xml”  
}

I tried

on (release) {  
fscommand (“autos\_manufacturer.xml”, SWF\_VARS[theXML\_location]);  
}

Why this is not working?
