Flash development

Moderators: None (Apply to moderate this forum)
Number of threads: 227
Number of posts: 388

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
refresh page giving headache Posted by tneva82 on 5 Oct 2010 at 11:53 PM
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?




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.