![]() |
|
|
| Home | |
Selecting data on the map.To perform selection on a map you need to write some action script and to
understand the inside of the map you use. Type the following script. // Create a dataLayer object ! This is case sensitive!! At this moment you should be able to see you selection on the map. The next part is to capture the result when it came back from the server. You do that by the event onSelectionResult(mySelection,myObject). There are many ways to read the content out but the easiest is to just list it inside a grid. Drag a grid on the stage and name it 'my_grid' type under the previous code the following. This code will capture the selection and pass it on to the grid object. my_map.onSelectResult = function(myResult:Array,myObj:Object) { You can try the result here.
Source code : sample4.fla |