You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The comment in the example gives the impression that the point of the GPXService is to allow you to parse a file asynchronously. However, it seems that the GPXService is pointless as the call to load will block the flash player and the ParseEvent.PARSE_COMPLETE will fire before the following line of code is reached. e.g.
private function onXmlLoaded(event:Event):void
{
var gpxSrv:GPXService = new GPXService();
gpxSrv.addEventListener(ParseEvent.PARSE_COMPLETE, onGpxParse);
var loadedData:String = xmlLoader.data;
gpxSrv.load(new XML(loadedData));
trace('NEXT LINE', getTimer());
}
private function onGpxParse(event:ParseEvent):void
{
var gpx:GPX = event.gpx;
trace('DONE', getTimer());
trace(gpx);
}
Will trace:
DONE 10613
[object GPX]
NEXT LINE 10613
The text was updated successfully, but these errors were encountered:
The comment in the example gives the impression that the point of the
GPXService
is to allow you to parse a file asynchronously. However, it seems that theGPXService
is pointless as the call to load will block the flash player and theParseEvent.PARSE_COMPLETE
will fire before the following line of code is reached. e.g.Will trace:
The text was updated successfully, but these errors were encountered: