dataProvider="{Stylesheets.instance().getCollection()}"
rowCount="{Stylesheets.instance().getCollection().length}" />
- <mx:Button label="Edit..." click="new BackgroundDialog().init('Map style',mapStyle,Stylesheets.instance());" />
+ <mx:Button label="Edit..." click="Application.application.styleButton.close(); new BackgroundDialog().init('Map style',mapStyle,Stylesheets.instance());" />
<mx:Script><![CDATA[
import net.systemeD.halcyon.*;
[Bindable(event="collection_changed")]
public function getCollection():ArrayCollection {
- return new ArrayCollection(collection);
+ var available:Array=[];
+ for each (var ss:Object in collection) {
+ if (!ss.corestyle || ss.corestyle!='no') available.push(ss);
+ }
+ return new ArrayCollection(available);
}
-
}
}
<stylesheet>
<name>GPS</name>
<url>stylesheets/gpx.css</url>
+ <corestyle>no</corestyle>
</stylesheet>
<stylesheet>
<name>Bugs</name>
<url>stylesheets/bugs.css</url>
+ <corestyle>no</corestyle>
</stylesheet>
</stylesheets>