Finally, another response from the other thread directed me on something different :
Why using a timer, or a loop, when you can actually call a single direction with an array of directions ? As I'm a beginner with the API, I weren't aware that this could be achieved but from now on, I concatenate all my queries in an array, and I call it just once. Thank you very much for your code though, I'll take a peek later on :) Sylvain On 17 août, 22:51, Nianwei <[email protected]> wrote: > Sylvain: > > I am not a designer and do not use CS4. I downloaded a eval copy of > CS4 and copied your script out into Flex Builder. I am not sure if > it's a CS4 thing or not but it seems many of your variables are not in > correct scope. > Anyway, I did a bunch of change and made it work, it appears you run > from Los Angeles to Grand Canyon then back. I did not see any 620 > errors. Maybe it's a language issue as you posted on another thread, I > can not verify. > > Here is the working > link:http://nl-samples.googlecode.com/svn/trunk/flexmap/directions_delay/b... > and source > codehttp://nl-samples.googlecode.com/svn/trunk/flexmap/directions_delay/b... > > I kept your timer, just did a lot of cleanup, you can compare your > code vs mine. > Increment position counter inside a callback is the alternative to > using timer, but in this case, timer seems not your problem. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. 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 -~----------~----~----~----~------~----~------~--~---
