XMLList-E4X Filterung [Flash 9]
| Beiträge: 42 Registriert: Dec 2004
| 05.11.2010, 16:58
Hallo Forum,
ich habe ein Problem, das ich nicht selbst gelöst bekomme. Vielleicht hat ja einer von Euch ne Idee, wie man das realisieren könnte.
Dieser Code filtert Standorte auf einer Googleflashmap - das funktioniert auch:
ActionScript:1 2 3 4 5 6 7 | liste_h = new XMLList(myXML.continent.country.(hasOwnProperty('standort')).standort.(
@status.indexOf("2") >= 0 &&
@lat != "" &&
@long >= southWest.lng() &&
@long <= northEast.lng() &&
@lat >= southWest.lat() &&
@lat <= northEast.lat()));
|
Doch wie finde ich nun einfach die Überknoten der Standorte mit den gleichen Bedingungen?
Einer meiner Versuche klappt nicht. Auch nicht, wenn ich das @ durch attribute ersetze.
ActionScript:1 2 3 4 5 6 7 | liste_l = new XMLList(myXML.continent.country.(hasOwnProperty('standort') && standort.(
@status.indexOf("2") >= 0 &&
@lat != "" &&
@long >= southWest.lng() &&
@long <= northEast.lng() &&
@lat >= southWest.lat() &&
@lat <= northEast.lat())));
|
Gibt es eine Möglichkeit so etwas zu realisieren? Also so in etwa?
ActionScript:1 2 3 4 5 6 7 | liste_l = new XMLList(myXML.continent.country.(elements('standort').attribute.(
status.indexOf("2") >= 0 &&
lat != "" &&
long >= southWest.lng() &&
long <= northEast.lng() &&
lat >= southWest.lat() &&
lat <= northEast.lat())));
|
Bin über jede Idee dankbar.
Grüße | |
| Ähnliche Beiträge zum Thema | |
|
Flashhilfe.de Flash Platform Tipps & Tutorials Flash Platform Andere Programmiersprachen Jobangebote Diskussionen
Flashhilfe News
Regeln & Bedingungen
|