refresh page giving headache - Programmers Heaven

Howdy, Stranger!

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

Categories

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.