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