Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

refresh page giving headache

Working on map related project with flash and modest map. So far so good. Works great...Except for one little problem. Basically I draw a map and then based on what mode user selects draws data in 2 ways over it(putting in markers around the map). Problem comes when user refresh window by either pressing F5 or browsers refresh page. What happens is that old graphic remains visible. But graphic doesn't respond to users action...Rather inconvinient to say the least!

I have determined that the swf file is started from initial function when refresh page is loaded but that's not it.I have tried:

if(route!=null)
{
route.clear();
}
if(map!=null)
{
removeChild(map);
}

at the beginning of program and doesn't work.

Totally at loss. How can I get that old graphic off the screen?

Sign In or Register to comment.