PDA

Click to See Complete Forum and Search --> : Extracting XML Data Based on OnClipEvent



wyldstyle
04-24-2001, 10:57 AM
I have have loaded an XML Data set and I want to extract portions of it for display as map markers, based on an OnClipEvent (i.e., the menu Smart Clip)

I figured I could use an XML attribute as a filter but don't seem to be able to get the conditional set up.

A pictures worth a thousand words, so here's the URL: http://www.mindspring.com/~ebs/markers8.swf

The if statement below is the place I think it would go: (I've created the "itsRegion" variable first...)


// Check its "REGION=" attribute (for use as a filter)
var itsRegion = testNode.attributes.REGION;
trace ("now I'll show the region '" + itsRegion + "'");


if ( itsYear <= _root.currentYear and itsRegion == " ) {
etc., etc.

Any help in specifying a conditional that filters by year for the slider and by REGION attribute would be greatly appreciated!!

Thanks,

Rick