# Some variables in HTML string not getting to flash

**URL:** <https://forum.kirupa.com/t/some-variables-in-html-string-not-getting-to-flash/71787>\
**Category:** Uncategorized\
**Created:** [November 29, 2004, 5:12pm UTC](https://forum.kirupa.com/t/some-variables-in-html-string-not-getting-to-flash/71787 "2004-11-29T17:12:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsears](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jsears](https://forum.kirupa.com/u/jsears)\
**Post date:** [November 29, 2004, 5:12pm UTC](https://forum.kirupa.com/t/some-variables-in-html-string-not-getting-to-flash/71787/1 "2004-11-29T17:12:59Z")

</div>

Hi. I’m building a map that pulls in a location destination via the HTML string. Like this:

\<object type=“application/x-shockwave-flash” data=“loader.swf?path=admin\_map.swf?xCoords=324&yCoords=197”\>

the variables xCoord and yCoord are pulled in by the admin\_map.swf and assigned to a dot representing a city on a map.

xCoord works fine. The variable gets into the swf, the dot adjusts its position, everything works great. yCoord does not. I have no idea why. I used a dynamic text box to see what was getting to flash and all it spat out was \_level0.

I’ve tried changing the variable name, adding extra variables to the end of the string, changing where the dot\_mc is in the swf, everything I can think of. I’m out of ideas. Does anybody know what could be wrong?

The full flash code:

function initialize () {  
\_root.mapMotherMC.attachMovie(“worldmap”, map, 1);  
\_root.mapMotherMC.\_x=-175;  
\_root.mapMotherMC.\_y=-50;

//if (xCoords\>0 && yCoords\>0) {  
\_root.placerDot.\_x=xCoords;  
\_root.placerDot.\_y=yCoords;  
//}  
};  
initialize();

and the full HTML string:  
\<object type=“application/x-shockwave-flash” data=“loader.swf?path=admin\_map.swf?xCoords=324&yCoords=197” width=“500” height=“250”\>  
\<param name=“movie” value=“loader.swf?path=admin\_map.swf?xCoords=324&yCoords=197” /\>

Thanks
