Help needed on newby and flashvars

  • Brian Walton
  • Born
  • Born
  • Brian Walton
  • Posts: 1

Post 3+ Months Ago

I have a script problem and I'm hoping to solve it regarding integrating a flash map with an asp page.

I have a map page:
http://www.brownsre.com/Details/Map...sp?PropertyID=7
which has a flash map embedded on it. I wish to load x and y coordinates for
the pointer on the map in a different place for each property. I have the
coordinates saved in a database which an asp page pulls out. My problem is
how do I put a dynamic querystring into the actionscript:
ie: at the moment i have the following code:

onload() {
loadvariablesnum("area_coordinates.asp",0);
}
onframe(1) {
if(vars_loaded=="ok") {
gotoandplay(3);
}
}
onframe(2) {
prevframeandplay();
}
onframe(3) {
map._x=eval("map_x");
map._y=eval("map_y");
map._xscale=eval("map_xscale");
map._yscale=eval("map_yscale");
}
onframe(4) {
stop();
}

This works perfectly if I load static values for the map_x and map_y
variables in the "area_coordinates.asp" page, however I need the page to be
"area_coordinates.asp?PropertyID=7" with the PropertyID value changing
depending on which property they are viewing.

What is the best way to achieve this? Should I be using Flashvars? (ie:
<param name="flashvars" value="asp=area_coordinates.asp<%=PropertyString%>")
Please note that I am a total beginner when it comes to actionscript.

with thanks

Brian
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.