Why do this on enter frame? That just seems a bit ridiculous to me unless you moved the framerate way down you're loading and updating every marker (conditionally updating or creating that is) once every 24th of a second, is that really necessary? How about using a Timer object and having it update every second is that not a reasonable enough rate? I don't think that what you're doing should stop the or invalidate or override the map mouse click listener registration but perhaps the UI just can't respond because the processor is choked up reloading the file constantly. Things to check for would be a peaking processor if you're in a windows environment hit ctrl+shift+esc to see task manager go to processor and sort by percentage being used and see if the process is consuming a core of your processor, if it's dual core it'll show as 50% quadcore will show as 25% if it's just a single core processor (not very popular nowadays) it'll show 100% but I imagine you would notice in this case since your whole computer would be acting super slow. If you're in a *nix type environment that is Linux or some flavor of Unix (OS X or above on Macs) you can open a terminal and type "top" to see a similar breakdown of processor usage. My guess off hand is that's your issue, check out the Timer class here if it looks like I'm right: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/utils/Timer.html the delay is in milliseconds so you'd want something like
var timer:Timer = new Timer(5000); //updates every 5 seconds timer.addEventListener(TimerEvent.TIMER, loadFile); timer.start(); I don't believe setting new options on the marker will remove the listener but I'm neither a Google nor Adobe insider so I can't say that for sure, if everything I wrote above is wrong though what about re-registering the listener in the update function as well? Good luck, Shaun -- You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-api-for-flash/-/IW5KftbXvwYJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en.
